The MOD function performs the modulo operation. It takes a number and a divisor and returns the remainder after division.
In this formula, we subtract one MOD result from another.
For the first MOD, we use the number with a divisor that equals the place value we want times 10. For the second MOD, we use the number with a divisor equals to the place value we seek. The formula is solved like this:
=MOD(B8,C8*10)-MOD(B8,C8) =MOD(123456,1000*10)-MOD(123456,1000) =3456-456 =3000