Formatting cells comparing current month and existance of cell values

tlragh

New Member
Joined
Jan 1, 2014
Messages
3
Hi all,

So here is what I am trying to do in VBA (I'm not sure if this is possible to do in conditional formatting or if it's too complicated):

-For an example Row 5, compare the current month to the month listed in Column N (cell N5 in this case)
-If a value (date) is present/exists in any of cells H5:J5, skip to end (do nothing).
-If the same month, color the corresponding cells in Columns H:J yellow
-If the current month is past the month listed in cell N5, color the corresponding cells in Columns H:J red.

-same thing for formatting Columns K:M based on months listed in Column O.

this is for all rows 4 through 71.

I hope that all makes sense.
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

Forum statistics

Threads
1,202,987
Messages
6,052,939
Members
444,617
Latest member
Rush1984

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