Help with trying to do an auto colouring of different cells

Eurekaonide

Active Member
Joined
Feb 1, 2010
Messages
422
Hi All

Not sure if you can help me here, but here goes.

I have an excel in (2007 v) which is doing "if statements" in each cell against a daily timeframe in row 1, sheet 2. Then looking up the data in a tabular form in sheet 1 to see if its a true and placing an "a" in the cel in Sheet 2 when it is returned true.

What I would now like to do is be able to colour all these different "a" depending on which set of columns they were located in, in sheet 1.

e.g.

my if formula:

=IF(OR(QE$2=Data_import!$K9,QE$2=Data_import!$L9,QE$2=Data_import!$M9,QE$2=Data_import!$N9,QE$2=Data_import!$O9,QE$2=Data_import!$P9,QE$2=Data_import!$Q9,QE$2=Data_import!$R9,QE$2=Data_import!$S9,QE$2=Data_import!$T9,QE$2=Data_import!$U9,QE$2=Data_import!$V9,QE$2=Data_import!$W9,QE$2=Data_import!$X9,QE$2=Data_import!$Y9,QE$2=Data_import!$Z9,),"a","")

But what I would like is that for example if it was true for column K=red L=green M=pink N=Yellow O=black P=blue etc etc

Is there any way of either doing a VBA case or a conditional formatting to carry out this task ??

Many thanks for your help
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Forum statistics

Threads
1,215,262
Messages
6,123,950
Members
449,134
Latest member
NickWBA

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