Need help with Date code

Javi

Active Member
Joined
May 26, 2011
Messages
440
Hi all,

I have a date in column H1 and a number in column i1. *I'm looking for a code that will change the background color of H1 when the number of days in i1 are exceeded.*

H1. * * * * * * * * ** i1.*
09-04-2011. * * * * * * *30*

On 10-5-2011. Cell H1 will now have a red background.*

This code will need to run every time the sheet is opened.*

Thank you in advance for your help.*
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
You can achieve this with Conditional Formatting

Select H1

Home > Conditional Formatting > New Rule > Use a formula to determine which cells to format

enter this formula

=TODAY()>H1+I1

Format... button
Fill > pick red
ok, ok

HTH

M.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,240
Messages
6,170,951
Members
452,368
Latest member
jayp2104

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