Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Whole Number Check

Status
Not open for further replies.

remeng

Technical User
Jul 27, 2006
523
US
Hi all,

I would like to check if a cell has a whole number or a decimal. I would like to combine this into an if statement, but I do not know how to check if the number in the cell is a whole number. Does anyone know how to do this in Excel?

Thanks!
 
=IF(INT(A1)=A1,"Whole","Decimal")

[Blue]Blue[/Blue] [Dragon]

If I wasn't Blue, I would just be a Dragon...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top