Coloring condition macro

mikesal57

Board Regular
Joined
Jul 6, 2011
Messages
193
Office Version
  1. 2016
Platform
  1. Windows
HI GUYs ..

Need a macro to do this.......
columns....ac.....ad.....ae.....af......bw.....bx.....by

line 4.........4........3.......2......1......6........2......1
line 5........1........4.......3......5......4........5.......1
line 6.........4........2.......1.......6.....1........2.......4

I have 2 groups (1) ac,ad,ae,af & (2) bw,bx,by

column bw is red color
column bx is green color
column by is blue color

Now if a number in group one matches a number in group 2
then I want the cell to change to that color in group 2 and keep the info inside the cell

examples:
line 4 (ae) will change to color green with the 2 in it
line 4 (af) will change to blue 1
line 5 (ad) will change to red cell with number 4 in it
line 5 (ac) will change to a blue cell with number 1 in it
line 6 (ac) will change to blue 4
line 6 (ad) will change to green 2
line 6 (ae) will change to red 1

if no matches..leave alone

I hope this is clear...and thxs

mike
 
Last edited:

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,224,525
Messages
6,179,319
Members
452,905
Latest member
deadwings

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