Conditional Format Row based on Month

kyddrivers

Board Regular
Joined
Mar 22, 2013
Messages
59
Office Version
  1. 365
Platform
  1. Windows
I think this should be easy, but I am running into a wall for some reason. Excel is blocking my XL2BB add-in, so I will try to show you what I have and need as best I can.

I have the table below:
1680106102758.png

  • The months are 1/1/2023 formatted as MMM
  • May & April are formatted as numbers
  • % Change is formatted as a percentage
I want the whole row highlighted and bolded if it's in the next 90 days. Ie rows for May, Jun & Jul should all be highlighted

The highlights above are produced by this formula in conditional formatting.
AND(MONTH(B4)>=MONTH(EOMONTH(TODAY(),2)), MONTH(B4)<=MONTH(EOMONTH(TODAY(),4)))

DataMayApril% Change
Jan40,16122,794
-43%​
Feb37,78126,988
-29%​
Mar47,89834,424
-28%​
Apr46,44937,024
-20%​
May50,75839,382
-22%​
Jun56,42843,631
-23%​
Jul61,50450,482
-18%​
Aug63,39349,823
-21%​
Sep57,99447,020
-19%​
Oct53,10542,976
-19%​
Nov49,38140,220
-19%​
Dec49,58940,731
-18%​
Grand Total614,442475,494
-23%​

Any help is greatly appreciated. And if you have a workaround for XL2BB, I would like to hear that too.

Thanks!

VBA Code:
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Hi,
You can test
Excel Formula:
=AND($A2>TODAY(),$A2<TODAY()+90)
 
Upvote 0
Solution
Wasn't that easy, it gave me a starting point.

That is currently highlighting Apr-Jun, but

1680110354709.png


If we tweak it to =AND($H6>TODAY()+30,$H6<TODAY()+120) it highlights May -Jul

1680110589416.png


Thanks for your help!!
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,394
Messages
6,119,263
Members
448,881
Latest member
Faxgirl

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