Conditional Formatting 4 Color Scale

ndiaye

New Member
Joined
Sep 25, 2018
Messages
10
Hello everyone,

I have data like this

12 23 35 44
45 6 3 9

I would like the show them:
highest one filling red
lowest one filling green
2nd highest one filling yellow
3nd highest one filling blue

is that possible? The question is shortly: IS 4 color scale conditional formatting possible in Excel?
Thank you.
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
I have found a solution,

Here i added the rules table. The important thing is you should not change the rows - which i mean is the placement must be same.

https://ibb.co/nnWbNhc
nnWbNhc

nnWbNhc


Hello everyone,

I have data like this

12 23 35 44
45 6 3 9

I would like the show them:
highest one filling red
lowest one filling green
2nd highest one filling yellow
3nd highest one filling blue

is that possible? The question is shortly: IS 4 color scale conditional formatting possible in Excel?
Thank you.
 
Last edited:
Upvote 0
How particular are you about the specific colours? have you tried a 3-color scale and then edit the top, bottom & middle colours?

Do you always have 4 values? If so you can just set up 4 CF rules to do exactly what you want:

Excel Workbook
ABCD
112233544
245639
CF 4
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A11. / Formula is =A1=LARGE($A1:$D1,4)Abc
A12. / Formula is =A1=LARGE($A1:$D1,3)Abc
A13. / Formula is =A1=LARGE($A1:$D1,2)Abc
A14. / Formula is =A1=LARGE($A1:$D1,1)Abc
 
Upvote 0
As i said before,

I solved and i added a table. Users can also fix their problem with using your rep.

Thanks. :)

How particular are you about the specific colours? have you tried a 3-color scale and then edit the top, bottom & middle colours?

Do you always have 4 values? If so you can just set up 4 CF rules to do exactly what you want:

CF 4

ABCD

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:33px;"><col style="width:33px;"><col style="width:33px;"><col style="width:33px;"></colgroup><tbody>
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]1[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=92d050]#92d050[/URL] , align: right"]12[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=00b0f0]#00b0f0[/URL] , align: right"]23[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=ffff00]#ffff00[/URL] , align: right"]35[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=ff0000]#ff0000[/URL] , align: right"]44[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=cacaca]#cacaca[/URL] , align: center"]2[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=ff0000]#ff0000[/URL] , align: right"]45[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=00b0f0]#00b0f0[/URL] , align: right"]6[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=92d050]#92d050[/URL] , align: right"]3[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=ffff00]#ffff00[/URL] , align: right"]9[/TD]

</tbody>

Conditional formatting
CellNr.: / ConditionFormat
A11. / Formula is =A1=LARGE($A1:$D1,4)

<tbody>
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=92d050]#92d050[/URL] "]Abc

<tbody>
A12. / Formula is =A1=LARGE($A1:$D1,3)
A13. / Formula is =A1=LARGE($A1:$D1,2)
A14. / Formula is =A1=LARGE($A1:$D1,1)

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=00b0f0]#00b0f0[/URL] "]Abc[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=ffff00]#ffff00[/URL] "]Abc[/TD]

[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=ff0000]#ff0000[/URL] "]Abc[/TD]

</tbody>
[/TD]

</tbody>


Excel tables to the web >> Excel Jeanie HTML 4
 
Upvote 0

Forum statistics

Threads
1,223,703
Messages
6,173,983
Members
452,540
Latest member
haasro02

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