Conditional Formatting of maximum value in each row of many
Asked Answered
G

2

8

I have a spreadsheet with 250+ rows of data and need to find the largest value in each row. I tried to use Conditional Formatting, however I need the same rule for each row so can't highlight all the data, and trying to copy and paste it would be too cumbersome.

Is there a faster way of applying the same rule to each row separately?

Goldfilled answered 27/11, 2015 at 17:7 Comment(0)
C
12

Please select he relevant columns (say A:H) and HOME > Styles - Conditional Formatting, New Rule..., Use a formula to determine which cells to format and Format values where this formula is true::

=A1=MAX($A1:$H1)

Format..., select your choice of formatting, OK, OK.

If you want the formatting to stop when there are no values in the row adjust to:

 =AND(COUNT($A1:$H1)<>0,A1=MAX($A1:$H1))
Chert answered 27/11, 2015 at 17:19 Comment(0)
P
1

Formula: =A1=MAX(A:A) (don’t use $)

Applies To: =$A:$D

enter image description here

To shift columns, change the starting point of the formula AND the “Applies To” range.

Formula: =C1=MAX(C:C) (don’t use $)

Applies To: =$C:$F

enter image description here

Formula: =A2=MAX(2:2) (don’t use $)

Applies To: =$2:$11

*Shift first row down to adjust for header row

enter image description here

Finally, as pnuts shows in the post above, to correct for cell overflow into blanks cells/rows/columns (shown here)

enter image description here

Use the following variation:

(the same for rows/columns and MIN/MAX)

Formula: =AND(COUNT(C:C)<>0,C1=MAX(C:C)) (don’t use $)

Applies To: =$C:$F

Preview answered 9/2, 2020 at 0:59 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.