Conditional formatting for the highest value per each column

skaffapingvin

New Member
Joined
Apr 12, 2013
Messages
49
Hi,
I have a work sheet with numeric values in cells I2:V20.
I would like to conditional format so that the cell with highest values is highlighted in each column.
I am currently using the formula: =AND(I2<>"", I2=MAX(I2:I20)) and I have also tried =I2=MAX($I$2:$I$20) but this doesn't work since there are multiple cells highlighted per column.
Would appreciate help with this.
Would also like to highlight the cell with the second and third highest value per each column as well.

Book1.xlsx
IJKLMNOPQRSTUV
1abadefegdggdfhghjyutyuttyutytyu2tugfjjjggghjghgh
2$78,700.00$3,333.00$ 6,175.00$1,476.00$ 2,493.00$ 7,183.00$7,253.00$ 5,465.00$11,299.00$ 1,883.00$ 834.00$ 2,857.00$ 234.00$ 33,217.00
3$78,722.00$3,319.00$ 6,267.00$1,489.00$ 2,489.00$ 7,244.00$7,277.00$ 5,646.00$10,847.00$ 1,908.00$ 810.00$ 2,879.00$ 234.00$ 33,063.00
4$78,262.00$3,317.00$ 6,258.00$1,520.00$ 2,496.00$ 7,238.00$7,264.00$ 5,633.00$10,791.00$ 1,900.00$ 803.00$ 2,886.00$ 233.00$ 32,662.00
5$79,069.00$3,296.00$ 6,316.00$1,500.00$ 2,489.00$ 7,413.00$7,195.00$ 5,632.00$11,346.00$ 1,948.00$ 794.00$ 2,885.00$ 234.00$ 32,662.00
6$77,600.00$3,341.00$ 6,096.00$1,497.00$ 2,499.00$ 7,379.00$7,154.00$ 5,717.00$11,193.00$ 1,990.00$ 786.00$ 2,888.00$ 233.00$ 31,721.00
7$76,339.00$3,329.00$ 5,910.00$1,455.00$ 2,469.00$ 7,350.00$6,708.00$ 5,702.00$11,218.00$ 1,992.00$ 778.00$ 2,890.00$ 233.00$ 31,420.00
8$75,238.00$3,269.00$ 5,948.00$1,451.00$ 2,439.00$ 7,439.00$6,398.00$ 5,622.00$11,060.00$ 1,971.00$ 770.00$ 2,855.00$ 233.00$ 31,178.00
9$76,342.00$3,282.00$ 5,975.00$1,444.00$ 2,470.00$ 7,488.00$6,533.00$ 5,664.00$12,124.00$ 1,981.00$ 788.00$ 2,841.00$ 233.00$ 31,016.00
10$76,126.00$3,278.00$ 5,873.00$1,401.00$ 2,443.00$ 7,364.00$6,489.00$ 5,690.00$11,878.00$ 2,013.00$ 800.00$ 2,874.00$ 233.00$ 31,354.00
11$76,425.00$3,207.00$ 5,833.00$1,396.00$ 2,447.00$ 7,481.00$6,721.00$ 5,643.00$12,080.00$ 2,046.00$ 816.00$ 2,873.00$ 233.00$ 31,155.00
12$77,252.00$3,240.00$ 5,905.00$1,412.00$ 2,494.00$ 7,592.00$6,714.00$ 5,819.00$12,334.00$ 2,097.00$ 820.00$ 2,855.00$ 234.00$ 31,383.00
13$78,069.00$3,262.00$ 5,871.00$1,413.00$ 2,550.00$ 7,386.00$6,278.00$ 5,821.00$12,274.00$ 2,116.00$ 829.00$ 2,912.00$ 234.00$ 32,213.00
14$78,879.00$3,289.00$ 5,996.00$1,417.00$ 2,552.00$ 7,310.00$6,127.00$ 5,812.00$11,964.00$ 2,104.00$ 812.00$ 2,912.00$ 234.00$ 33,086.00
15$78,593.00$3,242.00$ 5,952.00$1,369.00$ 2,550.00$ 7,267.00$6,316.00$ 5,779.00$11,773.00$ 2,171.00$ 820.00$ 2,900.00$ 233.00$ 32,935.00
16$78,466.00$3,253.00$ 5,883.00$1,403.00$ 2,575.00$ 7,194.00$6,533.00$ 5,677.00$11,974.00$ 2,114.00$ 879.00$ 2,907.00$ 233.00$ 32,935.00
17$77,104.00$3,235.00$ 5,868.00$1,405.00$ 2,674.00$ 7,182.00$6,478.00$ 5,560.00$11,566.00$ 2,082.00$ 886.00$ 2,939.00$ 233.00$ 32,165.00
18$75,137.00$3,171.00$ 5,849.00$1,394.00$ 2,518.00$ 7,064.00$6,473.00$ 5,508.00$11,107.00$ 2,088.00$ 870.00$ 2,925.00$ 233.00$ 31,326.00
19$76,849.00$3,153.00$ 5,850.00$1,369.00$ 2,527.00$ 6,985.00$6,151.00$ 5,523.00$10,864.00$ 2,041.00$ 865.00$ 2,899.00$ 233.00$ 31,161.00
20$76,024.00$3,098.00$ 7,632.00$1,340.00$ 2,533.00$ 6,867.00$5,725.00$ 5,396.00$10,794.00$ 1,997.00$ 884.00$ 2,878.00$ 233.00$ 30,652.00
Transpose (2)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
I2:AT20Expression=I2=MAX(I2:I20)textNO
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
try
=I2=MAX(I$2:I$20)

the $ will then check all the column
otherwise it checks I3 against I3:I21

and $I$2:$I$20 - means it only checks the values against that column as its fixed with the $I

for the 2nd question
Would also like to highlight the cell with the second and third highest value per each column as well.
what version of excel are you using ??

Book8
IJKLMNOPQRSTUV
1abadefegdggdfhghjyutyuttyutytyu2tugfjjjggghjghgh
2787003333617514762493718372535465112991883834285723433217
3787223319626714892489724472775646108471908810287923433063
4782623317625815202496723872645633107911900803288623332662
5790693296631615002489741371955632113461948794288523432662
6776003341609614972499737971545717111931990786288823331721
7763393329591014552469735067085702112181992778289023331420
8752383269594814512439743963985622110601971770285523331178
9763423282597514442470748865335664121241981788284123331016
10761263278587314012443736464895690118782013800287423331354
11764253207583313962447748167215643120802046816287323331155
12772523240590514122494759267145819123342097820285523431383
13780693262587114132550738662785821122742116829291223432213
14788793289599614172552731061275812119642104812291223433086
15785933242595213692550726763165779117732171820290023332935
16784663253588314032575719465335677119742114879290723332935
17771043235586814052674718264785560115662082886293923332165
18751373171584913942518706464735508111072088870292523331326
19768493153585013692527698561515523108642041865289923331161
20760243098763213402533686757255396107941997884287823330652
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
I2:V20Expression=I2=MAX(I$2:I$20)textNO
 
Upvote 1
What about if you add a couple of "$" signs like this?

23 10 17.xlsm
IJKLMNOPQRSTUV
1abadefegdggdfhghjyutyuttyutytyu2tugfjjjggghjghgh
278700.003333.006175.001476.002493.007183.007253.005465.0011299.001883.00834.002857.00234.0033217.00
378722.003319.006267.001489.002489.007244.007277.005646.0010847.001908.00810.002879.00234.0033063.00
478262.003317.006258.001520.002496.007238.007264.005633.0010791.001900.00803.002886.00233.0032662.00
579069.003296.006316.001500.002489.007413.007195.005632.0011346.001948.00794.002885.00234.0032662.00
677600.003341.006096.001497.002499.007379.007154.005717.0011193.001990.00786.002888.00233.0031721.00
776339.003329.005910.001455.002469.007350.006708.005702.0011218.001992.00778.002890.00233.0031420.00
875238.003269.005948.001451.002439.007439.006398.005622.0011060.001971.00770.002855.00233.0031178.00
976342.003282.005975.001444.002470.007488.006533.005664.0012124.001981.00788.002841.00233.0031016.00
1076126.003278.005873.001401.002443.007364.006489.005690.0011878.002013.00800.002874.00233.0031354.00
1176425.003207.005833.001396.002447.007481.006721.005643.0012080.002046.00816.002873.00233.0031155.00
1277252.003240.005905.001412.002494.007592.006714.005819.0012334.002097.00820.002855.00234.0031383.00
1378069.003262.005871.001413.002550.007386.006278.005821.0012274.002116.00829.002912.00234.0032213.00
1478879.003289.005996.001417.002552.007310.006127.005812.0011964.002104.00812.002912.00234.0033086.00
1578593.003242.005952.001369.002550.007267.006316.005779.0011773.002171.00820.002900.00233.0032935.00
1678466.003253.005883.001403.002575.007194.006533.005677.0011974.002114.00879.002907.00233.0032935.00
1777104.003235.005868.001405.002674.007182.006478.005560.0011566.002082.00886.002939.00233.0032165.00
1875137.003171.005849.001394.002518.007064.006473.005508.0011107.002088.00870.002925.00233.0031326.00
1976849.003153.005850.001369.002527.006985.006151.005523.0010864.002041.00865.002899.00233.0031161.00
2076024.003098.007632.001340.002533.006867.005725.005396.0010794.001997.00884.002878.00233.0030652.00
CF Max in Column
Cells with Conditional Formatting
CellConditionCell FormatStop If True
I2:V20Expression=I2=MAX(I$2:I$20)textNO
 
Upvote 1
Would also like to highlight the cell with the second and third highest value per each column as well.
Like this?

23 10 17.xlsm
IJKLMNOPQRSTUV
1abadefegdggdfhghjyutyuttyutytyu2tugfjjjggghjghgh
278,700.003,333.006,175.001,476.002,493.007,183.007,253.005,465.0011,299.001,883.00834.002,857.00234.0033,217.00
378,722.003,319.006,267.001,489.002,489.007,244.007,277.005,646.0010,847.001,908.00810.002,879.00234.0033,063.00
478,262.003,317.006,258.001,520.002,496.007,238.007,264.005,633.0010,791.001,900.00803.002,886.00233.0032,662.00
579,069.003,296.006,316.001,500.002,489.007,413.007,195.005,632.0011,346.001,948.00794.002,885.00234.0032,662.00
677,600.003,341.006,096.001,497.002,499.007,379.007,154.005,717.0011,193.001,990.00786.002,888.00233.0031,721.00
776,339.003,329.005,910.001,455.002,469.007,350.006,708.005,702.0011,218.001,992.00778.002,890.00233.0031,420.00
875,238.003,269.005,948.001,451.002,439.007,439.006,398.005,622.0011,060.001,971.00770.002,855.00233.0031,178.00
976,342.003,282.005,975.001,444.002,470.007,488.006,533.005,664.0012,124.001,981.00788.002,841.00233.0031,016.00
1076,126.003,278.005,873.001,401.002,443.007,364.006,489.005,690.0011,878.002,013.00800.002,874.00233.0031,354.00
1176,425.003,207.005,833.001,396.002,447.007,481.006,721.005,643.0012,080.002,046.00816.002,873.00233.0031,155.00
1277,252.003,240.005,905.001,412.002,494.007,592.006,714.005,819.0012,334.002,097.00820.002,855.00234.0031,383.00
1378,069.003,262.005,871.001,413.002,550.007,386.006,278.005,821.0012,274.002,116.00829.002,912.00234.0032,213.00
1478,879.003,289.005,996.001,417.002,552.007,310.006,127.005,812.0011,964.002,104.00812.002,912.00234.0033,086.00
1578,593.003,242.005,952.001,369.002,550.007,267.006,316.005,779.0011,773.002,171.00820.002,900.00233.0032,935.00
1678,466.003,253.005,883.001,403.002,575.007,194.006,533.005,677.0011,974.002,114.00879.002,907.00233.0032,935.00
1777,104.003,235.005,868.001,405.002,674.007,182.006,478.005,560.0011,566.002,082.00886.002,939.00233.0032,165.00
1875,137.003,171.005,849.001,394.002,518.007,064.006,473.005,508.0011,107.002,088.00870.002,925.00233.0031,326.00
1976,849.003,153.005,850.001,369.002,527.006,985.006,151.005,523.0010,864.002,041.00865.002,899.00233.0031,161.00
2076,024.003,098.007,632.001,340.002,533.006,867.005,725.005,396.0010,794.001,997.00884.002,878.00233.0030,652.00
CF Max in Column
Cells with Conditional Formatting
CellConditionCell FormatStop If True
I2:V20Expression=I2=LARGE(I$2:I$20,3)textNO
I2:V20Expression=I2=LARGE(I$2:I$20,2)textNO
I2:V20Expression=I2=LARGE(I$2:I$20,1)textNO
 
Upvote 0
Solution
Book2
IJKLMNOPQRSTUV
1abadefegdggdfhghjyutyuttyutytyu2tugfjjjggghjghgh
278,7003,3336,1751,4762,4937,1837,2535,46511,2991,8838342,85723433,217
378,7223,3196,2671,4892,4897,2447,2775,64610,8471,9088102,87923433,063
478,2623,3176,2581,5202,4967,2387,2645,63310,7911,9008032,88623332,662
579,0693,2966,3161,5002,4897,4137,1955,63211,3461,9487942,88523432,662
677,6003,3416,0961,4972,4997,3797,1545,71711,1931,9907862,88823331,721
776,3393,3295,9101,4552,4697,3506,7085,70211,2181,9927782,89023331,420
875,2383,2695,9481,4512,4397,4396,3985,62211,0601,9717702,85523331,178
976,3423,2825,9751,4442,4707,4886,5335,66412,1241,9817882,84123331,016
1076,1263,2785,8731,4012,4437,3646,4895,69011,8782,0138002,87423331,354
1176,4253,2075,8331,3962,4477,4816,7215,64312,0802,0468162,87323331,155
1277,2523,2405,9051,4122,4947,5926,7145,81912,3342,0978202,85523431,383
1378,0693,2625,8711,4132,5507,3866,2785,82112,2742,1168292,91223432,213
1478,8793,2895,9961,4172,5527,3106,1275,81211,9642,1048122,91223433,086
1578,5933,2425,9521,3692,5507,2676,3165,77911,7732,1718202,90023332,935
1678,4663,2535,8831,4032,5757,1946,5335,67711,9742,1148792,90723332,935
1777,1043,2355,8681,4052,6747,1826,4785,56011,5662,0828862,93923332,165
1875,1373,1715,8491,3942,5187,0646,4735,50811,1072,0888702,92523331,326
1976,8493,1535,8501,3692,5276,9856,1515,52310,8642,0418652,89923331,161
2076,0243,0987,6321,3402,5336,8675,7255,39610,7941,9978842,87823330,652
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
I2:V20Expression=I2>=LARGE(I$2:I$20,3)textYES
 
Upvote 1
It is unclear what would be required in column U with the sample data. Perhaps a re-ordering of the CF rules is required and/or further explanation from the OP as to what they want in that column.

23 10 17.xlsm
IJKLMNOPQRSTUV
1abadefegdggdfhghjyutyuttyutytyu2tugfjjjggghjghgh
278,700.003,333.006,175.001,476.002,493.007,183.007,253.005,465.0011,299.001,883.00834.002,857.00234.0033,217.00
378,722.003,319.006,267.001,489.002,489.007,244.007,277.005,646.0010,847.001,908.00810.002,879.00234.0033,063.00
478,262.003,317.006,258.001,520.002,496.007,238.007,264.005,633.0010,791.001,900.00803.002,886.00233.0032,662.00
579,069.003,296.006,316.001,500.002,489.007,413.007,195.005,632.0011,346.001,948.00794.002,885.00234.0032,662.00
677,600.003,341.006,096.001,497.002,499.007,379.007,154.005,717.0011,193.001,990.00786.002,888.00233.0031,721.00
776,339.003,329.005,910.001,455.002,469.007,350.006,708.005,702.0011,218.001,992.00778.002,890.00233.0031,420.00
875,238.003,269.005,948.001,451.002,439.007,439.006,398.005,622.0011,060.001,971.00770.002,855.00233.0031,178.00
976,342.003,282.005,975.001,444.002,470.007,488.006,533.005,664.0012,124.001,981.00788.002,841.00233.0031,016.00
1076,126.003,278.005,873.001,401.002,443.007,364.006,489.005,690.0011,878.002,013.00800.002,874.00233.0031,354.00
1176,425.003,207.005,833.001,396.002,447.007,481.006,721.005,643.0012,080.002,046.00816.002,873.00233.0031,155.00
1277,252.003,240.005,905.001,412.002,494.007,592.006,714.005,819.0012,334.002,097.00820.002,855.00234.0031,383.00
1378,069.003,262.005,871.001,413.002,550.007,386.006,278.005,821.0012,274.002,116.00829.002,912.00234.0032,213.00
1478,879.003,289.005,996.001,417.002,552.007,310.006,127.005,812.0011,964.002,104.00812.002,912.00234.0033,086.00
1578,593.003,242.005,952.001,369.002,550.007,267.006,316.005,779.0011,773.002,171.00820.002,900.00233.0032,935.00
1678,466.003,253.005,883.001,403.002,575.007,194.006,533.005,677.0011,974.002,114.00879.002,907.00233.0032,935.00
1777,104.003,235.005,868.001,405.002,674.007,182.006,478.005,560.0011,566.002,082.00886.002,939.00233.0032,165.00
1875,137.003,171.005,849.001,394.002,518.007,064.006,473.005,508.0011,107.002,088.00870.002,925.00233.0031,326.00
1976,849.003,153.005,850.001,369.002,527.006,985.006,151.005,523.0010,864.002,041.00865.002,899.00233.0031,161.00
2076,024.003,098.007,632.001,340.002,533.006,867.005,725.005,396.0010,794.001,997.00884.002,878.00233.0030,652.00
CF Max in Column
Cells with Conditional Formatting
CellConditionCell FormatStop If True
I2:V20Expression=I2=LARGE(I$2:I$20,1)textNO
I2:V20Expression=I2=LARGE(I$2:I$20,2)textNO
I2:V20Expression=I2=LARGE(I$2:I$20,3)textNO
 
Upvote 1
Here is yet another interpretation of what may be required (& depends on the Excel version)

@skaffapingvin
I suggest that you update your Account details (click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

23 10 17.xlsm
IJKLMNOPQRSTUV
1abadefegdggdfhghjyutyuttyutytyu2tugfjjjggghjghgh
278,700.003,333.006,175.001,476.002,493.007,183.007,253.005,465.0011,299.001,883.00834.002,857.00234.0033,217.00
378,722.003,319.006,267.001,489.002,489.007,244.007,277.005,646.0010,847.001,908.00810.002,879.00234.0033,063.00
478,262.003,317.006,258.001,520.002,496.007,238.007,264.005,633.0010,791.001,900.00803.002,886.00233.0032,662.00
579,069.003,296.006,316.001,500.002,489.007,413.007,195.005,632.0011,346.001,948.00794.002,885.00234.0032,662.00
677,600.003,341.006,096.001,497.002,499.007,379.007,154.005,717.0011,193.001,990.00786.002,888.00233.0031,721.00
776,339.003,329.005,910.001,455.002,469.007,350.006,708.005,702.0011,218.001,992.00778.002,890.00233.0031,420.00
875,238.003,269.005,948.001,451.002,439.007,439.006,398.005,622.0011,060.001,971.00770.002,855.00233.0031,178.00
976,342.003,282.005,975.001,444.002,470.007,488.006,533.005,664.0012,124.001,981.00788.002,841.00233.0031,016.00
1076,126.003,278.005,873.001,401.002,443.007,364.006,489.005,690.0011,878.002,013.00800.002,874.00233.0031,354.00
1176,425.003,207.005,833.001,396.002,447.007,481.006,721.005,643.0012,080.002,046.00816.002,873.00233.0031,155.00
1277,252.003,240.005,905.001,412.002,494.007,592.006,714.005,819.0012,334.002,097.00820.002,855.00234.0031,383.00
1378,069.003,262.005,871.001,413.002,550.007,386.006,278.005,821.0012,274.002,116.00829.002,912.00234.0032,213.00
1478,879.003,289.005,996.001,417.002,552.007,310.006,127.005,812.0011,964.002,104.00812.002,912.00234.0033,086.00
1578,593.003,242.005,952.001,369.002,550.007,267.006,316.005,779.0011,773.002,171.00820.002,900.00233.0032,935.00
1678,466.003,253.005,883.001,403.002,575.007,194.006,533.005,677.0011,974.002,114.00879.002,907.00233.0032,935.00
1777,104.003,235.005,868.001,405.002,674.007,182.006,478.005,560.0011,566.002,082.00886.002,939.00233.0032,165.00
1875,137.003,171.005,849.001,394.002,518.007,064.006,473.005,508.0011,107.002,088.00870.002,925.00233.0031,326.00
1976,849.003,153.005,850.001,369.002,527.006,985.006,151.005,523.0010,864.002,041.00865.002,899.00233.0031,161.00
2076,024.003,098.007,632.001,340.002,533.006,867.005,725.005,396.0010,794.001,997.00884.002,878.00233.0030,652.00
CF Max in Column
Cells with Conditional Formatting
CellConditionCell FormatStop If True
I2:V20Expression=I2=INDEX(SORT(UNIQUE(I$2:I$20),,-1),1)textNO
I2:V20Expression=I2=INDEX(SORT(UNIQUE(I$2:I$20),,-1),2)textNO
I2:V20Expression=I2=INDEX(SORT(UNIQUE(I$2:I$20),,-1),3)textNO
 
Upvote 0
This works great on my Excel 2019
As Peter has already suggested,please update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,885
Members
452,364
Latest member
springate

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top