Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default conditional format formula

I need a formula that looks says any cell that does not contain a "-",
"0" or blank will now equal the number in column B.

Any takers?

Dave

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 440
Default conditional format formula

If "0" or "-" or <blank in D12, then
=IF(OR(D12="-",D12="",D12="0"),B12,"not specified")
There's probably a shorter way of doing this, but it works ok :)
--
Traa Dy Liooar

Jock


"dzelnio" wrote:

I need a formula that looks says any cell that does not contain a "-",
"0" or blank will now equal the number in column B.

Any takers?

Dave


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 427
Default conditional format formula

Here's one way:
=IF(AND(NOT(ISNUMBER(FIND("-",A1,1))),NOT(ISNUMBER(FIND("0",A1,1))),NOT(ISNUMB ER(FIND("
",A1,1)))),B1,"")

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,345
Default conditional format formula

I need a formula that looks says any cell that does *not* contain a "-",
"0" or blank will now equal the number in column B


I think that Jock may have intended:

=IF(OR(D12="-",D12="",D12="0"),"not specified",B12)

or

=IF(AND(D12<"-",D12<"",D12<"0"),B12,"not specified")

note that by puting the zero in quotes it will only match with a text zero.

This assumes that the OP intended that the cell contains *only* one of those
characters and not contains one of the characters within other text.

--
Regards,

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"Jock" wrote in message
...
If "0" or "-" or <blank in D12, then
=IF(OR(D12="-",D12="",D12="0"),B12,"not specified")
There's probably a shorter way of doing this, but it works ok :)
--
Traa Dy Liooar

Jock


"dzelnio" wrote:

I need a formula that looks says any cell that does not contain a "-",
"0" or blank will now equal the number in column B.

Any takers?

Dave





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
formula for Conditional Format TUNGANA KURMA RAJU Excel Discussion (Misc queries) 9 January 15th 07 02:27 PM
Conditional format formula Shu of AZ Excel Discussion (Misc queries) 1 November 26th 06 07:27 PM
Conditional Format & Formula Bob Excel Worksheet Functions 2 November 3rd 06 09:27 PM
Conditional format formula ron b Excel Discussion (Misc queries) 4 January 31st 06 05:11 PM
Conditional format with a formula Mike Echo Excel Worksheet Functions 6 July 19th 05 11:05 AM


All times are GMT +1. The time now is 04:09 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"