TheRobster
Dec 16th, 2004, 12:23 PM
Is there a worksheet function or formula that can check the result of a calculation to see if the result is an integer and, if so, perform an operation?
I am trying to use an IF...AND formula but only want an action to be carried out if the result of one cell divided by another is an integer. This is the code:
=IF(AND(E59=TRUE,F58/H18=ISINTEGER),J18,0)
The bit in bold (ISINTEGER) is the part I can't get to work, since there is no ISINTEGER function. But is there something similar which will actually work? I thought there might be functions such as: ISINTEGER, ISINT, ISWHOLENUMBER etc etc, but there appears to be nothing like this.
Anyone got any ideas? :confused:
I am trying to use an IF...AND formula but only want an action to be carried out if the result of one cell divided by another is an integer. This is the code:
=IF(AND(E59=TRUE,F58/H18=ISINTEGER),J18,0)
The bit in bold (ISINTEGER) is the part I can't get to work, since there is no ISINTEGER function. But is there something similar which will actually work? I thought there might be functions such as: ISINTEGER, ISINT, ISWHOLENUMBER etc etc, but there appears to be nothing like this.
Anyone got any ideas? :confused: