
Use the INT function with the IF function
To see if one value is a whole number and can be divided by another
value, use the IF function in combination with the INT function.
4
To see if a whole number can be divided by 4:
1. Select cells B2:B10 and type the following formula:
=IF(INT(A2/4)=A2/4,"whole number divisible by
4",FALSE).
2. Press <Ctrl+Enter>.
Or
1. Select cells C2:C10 and type the following formula:
=IF(A2/4-INT(A2/4)=0,"whole number divisible by 4",
FALSE).
2. Press <Ctrl+Enter>.
52
Chapter 2
Figure 2-13