Cell colouring

oggy3000

Board Regular
Joined
Jul 13, 2011
Messages
51
Hello,
I want to color a certain area/number of cells if one certain cell contains the current date. Lets say B40 contains todays date then I want cells B 42-51 to be coloured in blue. If C40 contains the current date, cells C 42-51 are to be coloured blue and so on. The Problem for me is, that data for each month is below the other one. So October goes from lines 40-51, November from 52-63 etc.
Is there any way (VBA or conditional formatting) to achieve this kind of colouring rule?

Thank you
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Hi,
If you have a label designating each group of 10 rows for each month, then you could use a single Conditional Formatting rule relative to that label.

This will need to be tweeked to fit your worksheet, but hopefully it will give you the idea.

Excel Workbook
ABCD
4010/17/201111/15/2011
41
42October
43
44
45
46
47
48
49
50
51
52
53
54November
55
56
57
58
59
60
61
62
63
64
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B421. / Formula is =AND(ROW()-MATCH(TEXT(A$40,"mmmm"),$A$1:$A$200,0)<10,ROW()-MATCH(TEXT(A$40,"mmmm"),$A$1:$A$200,0)>=0)Abc
 
Upvote 0

Forum statistics

Threads
1,222,149
Messages
6,164,236
Members
451,882
Latest member
Bigtop

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