if statement

  • Thread starter Thread starter ironworker
  • Start date Start date
I

ironworker

is there a way to formulate the following.
IF A2 = whole number then enter 0 if A2 contains a decimal than enter
content of B4.

whole number = any number without a decimal ie 1, 4 ,6 ,10, 15, ect

Decimal = any number with decimal ie 1.11, 4.32, 5.5, 10.6, 33.33, ect
 
is there a way to formulate the following.
IF A2 = whole number then enter 0 if A2 contains a decimal than enter
content of B4.

whole number = any number without a decimal ie 1, 4 ,6 ,10, 15, ect

Decimal = any number with decimal ie 1.11, 4.32, 5.5, 10.6, 33.33, ect


Try this formula:

=IF(A2=INT(A2),0,B4)

Hope this helps / Lars-Åke
 
Back
Top