ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   check for cell with numeric value (https://www.excelbanter.com/excel-programming/382751-check-cell-numeric-value.html)

SteveW

check for cell with numeric value
 

I have a function to append/alter a cell depending on it's contents
Is there an easy way to determine cell has a numeric value rather than text
....cell.Value 0 returns true even if cell has Text in it

--
Steve (3)

Tom Ogilvy

check for cell with numeric value
 
if isnumeric(cell.value) then

--
Regards,
Tom Ogilvy


"SteveW" wrote:


I have a function to append/alter a cell depending on it's contents
Is there an easy way to determine cell has a numeric value rather than text
....cell.Value 0 returns true even if cell has Text in it

--
Steve (3)


SteveW

check for cell with numeric value
 
Works in my function perfectly

Thanks

Steve

On Wed, 07 Feb 2007 16:37:01 -0000, Tom Ogilvy
wrote:

if isnumeric(cell.value) then



All times are GMT +1. The time now is 02:42 PM.

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