Condiitional Formatting Key

tobermory

New Member
Joined
Jun 4, 2012
Messages
46
Bit of a long shot this... but...

I have a worksheet, called 'Key'. In column A there are around 12 cells inputted with text, each cell is coloured differently.

A1 has texted 'DS', and is yellow. A2 is 'Medical', and is red etc etc.

Would it be possible to somehow have a conditional format in Sheet2, whereby if any cell contains the text 'DS' (or any other text in Column A), it would refer back to worksheet 'Key' and return the colour of the cell in that worksheet?

At the moment I'm manually copy and pasting from the Key worksheet to Sheet2, to fill a work planner with the necessary colours. Sometimes the colours/words change which means I have to manually do it all again.

Many thanks to anyone who can help!
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
There isn't a direct way to do that if the Sheet1 cells are coloured manually. However, see if this work-around might be of use to you. I've done this with a small sample and only 3 colours but you could easily expand.

Instead of manually colouring the Sheet1 cells I have used a helper column (F) to indicate what colour I want the cells in column A to be using letters that relate to the colours (but could use full words or a number key if you want) and then used Conditional Formatting to apply those colours to column A

Excel Workbook
ABCDEF
1
2DSy
3RRr
4XY
5KYb
6LPr
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A21. / Formula is =F2="b"Abc
A22. / Formula is =F2="r"Abc
A23. / Formula is =F2="y"Abc



Now in Sheet2 I can use that same helper column to match the colours with this Conditional Formatting.

Excel Workbook
C
1
2LP
3
4HH
5KY
6DS
7KY
Sheet2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C21. / Formula is =VLOOKUP(C2,Sheet1!A$2:F$6,6,0)="b"Abc
C22. / Formula is =VLOOKUP(C2,Sheet1!A$2:F$6,6,0)="r"Abc
C23. / Formula is =VLOOKUP(C2,Sheet1!A$2:F$6,6,0)="y"Abc
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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