Look up DIG. It isolates single digit, as you need it, without IF...