Please help with Colour and Cell Value :0)

will2soar

New Member
Joined
Dec 2, 2017
Messages
3
Hello,

The enter key got away from me in the last post.

I need help with this problem

12345
112345
2246810
33691215
448121620
5510152025

<tbody>
</tbody>

MY table is something like this and the background or cell fill matches the colour of the numbers. there are five different colours.


224
4312
5420

<tbody>
</tbody>


What I'd like the sheet to do is, match the third column value and background fill to the same background fill colour and value as in the table.

Can anyone please help me sort this one out.

TY

B
 

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
If the colors in the key don't change, you can setup individual conditional formatting for value ranges. If it's going to be variable, I think the only solution would be through VBA. As an example:
Code:
Sub MultColor()
    Dim x As Range
    
    Set x = Sheets("ColorKey").Range("B2:F6").Find(What:=Range("C21").Value, After:=Cells(2, 2), _
        LookIn:=xlValues, LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlPrevious, MatchCase:=True)
    
    Range("C21").Interior.Color = x.Interior.Color
    Range("C21").Font.Color = x.Font.Color
End Sub
 
Upvote 0
Hello,

This worked a charm, Thank you for your help and time. I greatly appreciate it.


Kind regards

B

:)
 
Upvote 0

Forum statistics

Threads
1,215,688
Messages
6,126,208
Members
449,299
Latest member
KatieTrev

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