Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Find the Format Type of a cell
I need to find the format type of a cell in excel. I have an IF statement
that will take a numeric number and apply it to a range to see if it falls into the range or outside of the range but when the cell has a text value it bombs on me. I need to validate which format it has before I apply the condition. Thanks for you help, -Chris |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Find the Format Type of a cell
How about:
If IsNumeric(cell.value) Then rather than putzing with cell formatting? -- George Nicholson Remove 'Junk' from return address. "Chris" wrote in message ... I need to find the format type of a cell in excel. I have an IF statement that will take a numeric number and apply it to a range to see if it falls into the range or outside of the range but when the cell has a text value it bombs on me. I need to validate which format it has before I apply the condition. Thanks for you help, -Chris |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Find the Format Type of a cell
Chris
If isnumeric then your If statement else end if (if you want to do nothing if it is text) "Chris" wrote: I need to find the format type of a cell in excel. I have an IF statement that will take a numeric number and apply it to a range to see if it falls into the range or outside of the range but when the cell has a text value it bombs on me. I need to validate which format it has before I apply the condition. Thanks for you help, -Chris |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
format a cell when I type 10 it will multiply 10 by .585 | Excel Worksheet Functions | |||
How to set a conditional format that is dependent on cell type | Excel Discussion (Misc queries) | |||
Adding new 'Type' to Format->Number->Time->Type | Excel Discussion (Misc queries) | |||
Can I set the numerical type of Cell to Hex format | Excel Discussion (Misc queries) | |||
format cell type problem | Excel Programming |