Conditrional

NeilDello

New Member
Joined
Sep 7, 2019
Messages
4
Hi all, this is probably easy for you guys
Using Excel for Mac
I have a spreadsheet, Columns A through E, many rows
Column E is called due date and has a date in it
Cell H1 is equals now command
If H1 is 1 or 2 days before the due date, I want that row from A to E to be highlighted yellow
If H1 is equal to the due date, I want that row from A to E to be highlighted Red
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Welcome to the lounge.

I assume you mean the dates in column H could be 1 or 2 days in date BEFORE the due date in E, but the date could also be exactly the date in E. Yes?

If that's the case and the MAC version has conditional formatting (I assume it must), select the range to be highlighted, click on Conditional Formatting, and et the "format values where this formula is true:" to
the following: =$E2=$H2 and pick your format fill.
 
Last edited:
Upvote 0
Hi NeilDello,

I assume Apple Excel is close enough to Windows Excel that this works... and I'm assuming you have a single date in cell H1 to trigger the color selection based on the date in any column E row.

There's a couple of ways to do it but I'll use formulae.

Highlight all cells you to change colour.

Conditional Formatting, New Rule, Use a formula to determine which cells to format, Format values where this formula is true:
=AND($H$1-$E2 > -3,$H$1-$E2 < 3)
Under Format set Fill to the yellow you want and OK.

Conditional Formatting, New Rule, Use a formula to determine which cells to format, Format values where this formula is true:
=$H$1=$E2
Under Format set Fill to the red you want and OK.
 
Upvote 0
I mis-read thinking every row in the H column was a date rather than just H1.
 
Upvote 0

Forum statistics

Threads
1,214,927
Messages
6,122,311
Members
449,080
Latest member
jmsotelo

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