Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 788
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 170
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
format a cell when I type 10 it will multiply 10 by .585 Mikeebabe Excel Worksheet Functions 4 February 16th 12 09:34 PM
How to set a conditional format that is dependent on cell type Phil Chamberlin Excel Discussion (Misc queries) 2 August 29th 08 05:59 PM
Adding new 'Type' to Format->Number->Time->Type Chip Pearson Excel Discussion (Misc queries) 5 September 26th 05 08:45 PM
Can I set the numerical type of Cell to Hex format hon123456 Excel Discussion (Misc queries) 2 January 13th 05 01:01 PM
format cell type problem Gurmukh Excel Programming 0 August 5th 03 02:10 PM


All times are GMT +1. The time now is 06:30 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"