Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

Excel 2016 (2010) Conditional Formating Question

Status
Not open for further replies.
Replies continue below

Recommended for you

It looks like you want to highlight the maximum value in the range.
Try "Format only top or bottom ranked values", and use 1 for the ranking.
 
First select the data range in column B.

Open the CF Wizard and enter this formula & formatting spec...

=MAX(B$5:B$26)=B5

Skip,
[sub]
[glasses]Just traded in my OLD subtlety...
for a NUance![tongue][/sub]
 
Taking the responses in turn.

IRstuff
If it is not obvious then I will spell it out for you.
I want to shade the background of the column cell containing the maximum value.
Other people have certainly got the idea.

Reference The Microsoft Excel LARGE function returns the nth largest value from a set of values.
I use the function a lot and it has always given me the correct and expected result.

The text in the rule window states "Format values when this formula is true".
I see "=LARGE(B5:B26,1)" as a formula, so when it is true for the cell over the selected range of "Applies to" B5:B26, why is the cell not shaded?
Typical Microsoft unclear screen text information?

What is your understanding of the text? Something different I guess.


IFRs
You are suggesting another possible method?
I was more interested why the two methods I show do not work.
Your suggestion does work for the 1st highest value only which is what I used as my example.
Using LARGE() I have the option of the 2nd highest value, which was my final goal but was not indicated.


SkipVought
You are also suggesting another possible method?
Your suggestion does work. The dollar signs are critical and a comparison must be made.
Using "LARGE(B$5:B$26,1)" is the equivalent of "MAX(B$5:B$26)".



I think I can now see the reason why "=LARGE(B5:B26,1)" does not work as the rule child window text would suggest. It is not a comparison leading to true or false result.

I have attached a new Excel file so that you may see the results.
You have all helped me to pretty much understand what is going on.
Thank you all.
 
It was not obvious to me that you were looking for the second highest values in the range. But using =LARGE(B$5:B$26,2)=B5 will accomplish that. And the range formula must be made to fix the rows as you pointed out.

Skip,
[sub]
[glasses]Just traded in my OLD subtlety...
for a NUance![tongue][/sub]
 
Status
Not open for further replies.
Back
Top