LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Conditional Formatting a Formula Field

You're welcome!

--
Biff
Microsoft Excel MVP


"57Caddy" wrote in message
...
Ah, I see. I just removed the quotes and it was fine. Thanks

"T. Valko" wrote:

One thing you need to do is "fix" your formula.

=IF(C5=17.5%,"5",IF(C5=16.25%,"4",IF(C5=14.25%, "3",IF(C5=13%,"2",IF(C5=0,"1","N/A")))))


When you enclose numbers in quotes like you have Excel treats them as
TEXT
not numbers. So:

=IF(C5=17.5%,5,IF(C5=16.25%,4,IF(C5=14.25%,3,IF (C5=13%,2,IF(C5=0,1,"N/A")))))

Now, to apply the formatting:

Select cell D5
Goto the menu FormatConditional Formatting
Condition 1
Formula Is: =D5<3
Click the Format button
Select the Patterns tab
Select a fill color of RED
OK
Click the Add button
Condition 2
Formula Is: =AND(ISNUMBER(D5),D5=3)
Select the Patterns tab
Select a fill color of GREEN
OK out


--
Biff
Microsoft Excel MVP


"57Caddy" wrote in message
...
Rather than creating a bunch of new fields, is it possible to
conditional
format a field that has a formula in it? I've attached what I have
below
for
cell D5. We want anything 3 or greater to have the whole cell green and
anything below 3 to be red.

Thank you

=IF(C5=17.5%,"5",IF(C5=16.25%,"4",IF(C5=14.25%, "3",IF(C5=13%,"2",IF(C5=0,"1","N/A")))))






 
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
Using string in Conditional field formula Roger Excel Discussion (Misc queries) 4 March 23rd 07 04:08 AM
Conditional Formatting formula tankerman Excel Discussion (Misc queries) 2 December 22nd 06 05:34 PM
Conditional Formatting of Pivot Table Field jdanderson02 Excel Discussion (Misc queries) 2 February 9th 06 08:41 PM
Conditional Formatting Formula jgp_2 Excel Worksheet Functions 1 February 3rd 06 06:37 PM
Conditional formatting on named text field Sharon P Excel Discussion (Misc queries) 1 June 21st 05 10:30 PM


All times are GMT +1. The time now is 12:27 AM.

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

About Us

"It's about Microsoft Excel"