Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Ignore Text, function only for numerical values
Hi I'm using a loop function to evaluate the value in a cell and perform a
desired function, then moves on to the next row until it reaches the last row in my sheet. My evalution criteria is (but I need help fixing it): if activecell <0 Or activecell="" then Something else SomethingElse End if Here my question: How can I change my if statement to only do Something if the value in the cell is a number (ignore textual entries) and is different than 0 or is empty Thanks for the help Daniel |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Ignore Text, function only for numerical values
My evalution criteria is (but I need help fixing it):
if activecell <0 Or activecell="" then Something else if isnumeric(activeCell) then if activeCell.Text < "0" then SomethingElse end if end if End if -- Regards, Tom Ogilvy "Daniel" wrote in message ... Hi I'm using a loop function to evaluate the value in a cell and perform a desired function, then moves on to the next row until it reaches the last row in my sheet. My evalution criteria is (but I need help fixing it): if activecell <0 Or activecell="" then Something else SomethingElse End if Here my question: How can I change my if statement to only do Something if the value in the cell is a number (ignore textual entries) and is different than 0 or is empty Thanks for the help Daniel |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Ignore Text, function only for numerical values
Check out IsNumeric.
Ed "Daniel" wrote in message ... Hi I'm using a loop function to evaluate the value in a cell and perform a desired function, then moves on to the next row until it reaches the last row in my sheet. My evalution criteria is (but I need help fixing it): if activecell <0 Or activecell="" then Something else SomethingElse End if Here my question: How can I change my if statement to only do Something if the value in the cell is a number (ignore textual entries) and is different than 0 or is empty Thanks for the help Daniel |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Converting text to numerical values | New Users to Excel | |||
text and numerical values in two columns | Excel Discussion (Misc queries) | |||
text has numerical values | Excel Worksheet Functions | |||
Assign numerical values to text codes | Excel Worksheet Functions | |||
Copying Text vs. Numerical Values | Excel Programming |