MrExcel Publishing
Your One Stop for Excel Tips & Solutions

Is there a 'IsInteger' function?

Posted by Thomas Liao on July 17, 2001 11:09 AM

Hi there,
I need a function to distinguish if the result is an integer, something like the 'if' funcion.
How do I write down the code for this IsInteger function?

Thank you

Posted by Mark W. on July 17, 2001 11:29 AM


Posted by Aladin Akyurek on July 17, 2001 11:31 AM


There isn't an ISINT function in Excel, but you can embed something like the following in the formulas that you use:


It returns 1 if A1 is an integer. Or a formula that returns a logical value:


An alternative would be to sollicite for a UDF (user Defined Function) at this board.