ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   IF Function (https://www.excelbanter.com/excel-discussion-misc-queries/45002-if-function.html)

sgrech

IF Function
 

Hi,
I want to use an IF function to examine the contents of a cell and if
the cells contains a numeric value then do something else do something
else. How do I check if something is numeric?

Thanks
Simon


--
sgrech
------------------------------------------------------------------------
sgrech's Profile: http://www.excelforum.com/member.php...o&userid=14501
View this thread: http://www.excelforum.com/showthread...hreadid=466914


Cutter


Use the ISNUMBER() function within your IF() function.

Like this:

=IF(ISNUMBER(A1),A1,"")

This will result in the value of A1 if it's numeric but blank ("") if
it's not.


--
Cutter
------------------------------------------------------------------------
Cutter's Profile: http://www.excelforum.com/member.php...fo&userid=9848
View this thread: http://www.excelforum.com/showthread...hreadid=466914


sgrech


Thanks for that.


--
sgrech
------------------------------------------------------------------------
sgrech's Profile: http://www.excelforum.com/member.php...o&userid=14501
View this thread: http://www.excelforum.com/showthread...hreadid=466914


Cutter


You're welcome Simon.


--
Cutter
------------------------------------------------------------------------
Cutter's Profile: http://www.excelforum.com/member.php...fo&userid=9848
View this thread: http://www.excelforum.com/showthread...hreadid=466914



All times are GMT +1. The time now is 12:59 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com