ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How can I conditional format using a range of numbers (https://www.excelbanter.com/excel-discussion-misc-queries/190678-how-can-i-conditional-format-using-range-numbers.html)

Vincent

How can I conditional format using a range of numbers
 
I am trying to do a conditional format of an entire row based off one cell
but need to use a range of numbers. Example: If cell C7 is equal to 100% the
row is green, if it is less than 100% but greater than 95% it is yellow,
anything below 95 is red. I can get it to do two of those not all three. Any
ideas?

Bernard Liengme

How can I conditional format using a range of numbers
 
Select all the row headers (numbers to the left of window) for rows to
format (I selected row 1 thru 10)
In the Conditional Formatting dialog enter three Formula IS conditions with
=$C1=1 then format
=$C1=0.95 ditto
=$C1<0.95 ditto

Of course, if you select only row 7, change formulas to fit
This assumes no number is ever over 100%; to allow for round off I would
change the first to
=$C1=1.0
Not that you do not need rule2 to have =AND($C1<1, $C1=.95) since the rule1
will tap the 1 (or above)


By the way- it would have been useful if you had told us how you got the
first two conditions to work
best wishes
--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme

..

"Vincent" wrote in message
...
I am trying to do a conditional format of an entire row based off one cell
but need to use a range of numbers. Example: If cell C7 is equal to 100%
the
row is green, if it is less than 100% but greater than 95% it is yellow,
anything below 95 is red. I can get it to do two of those not all three.
Any
ideas?




All times are GMT +1. The time now is 06:39 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com