if statement

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
 
L

Lars-Åke Aspelin

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top