Conditional Formatting on Random Numbers

Danbrix

New Member
Joined
Nov 14, 2013
Messages
33
Hi

Apologies if this is really straightforward but I just couldn't get my head around it.

I have a range of random numbers in B2:D20. All values in column B are red, in column C are amber and in column D are green.

When the random range is sorted into a single column A, how do I make sure that I get colours of the sorted range to match that of the original range B2:B20?

I have also put a picture of the desired output here ... http://tinypic.com/r/2rpzfxk/9

Thank you for your help.
 

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
Use three conditional formats, each with a COUNTIF formula that tests whether the cell value exists in col B, C, or D.
 
Upvote 0
I have tried countif but unable to get what is on the attached pic. It would be great if you could share an example.
 
Upvote 0
Select A1:Awhatever,

CF, use a formula, formula: =countif(A1, B:B) and format as the color of col B

CF, use a formula, formula: =countif(A1, C:C) and format as the color of col C

...
 
Upvote 0

Forum statistics

Threads
1,214,987
Messages
6,122,613
Members
449,090
Latest member
vivek chauhan

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