Changing cells based on dates

ammdumas

Active Member
Joined
Mar 14, 2002
Messages
469
Two things I'm horrible with...dates and macro loops.

I'm trying to go down a list and update a field based on a date(past due to be specific). IE, If the date in Column J3 is equal or older than TODAY then I want to change the field in column N3 to "PAST DUE".

I want this to cycle through the speadsheet (J4,J5,J6,etc.) every time it is opened.

Help is greatly appreciated... :ROFLMAO:
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
60,829
Office Version
  1. 365
Platform
  1. Windows
No macro or loops are necessary. Simply use an IF statment in N3:

=IF(J3<=NOW(),"Past Due","")
 

ammdumas

Active Member
Joined
Mar 14, 2002
Messages
469
Cool. It works. But I should have been a little more specific. There's some conditional formatting happening over that row when the field in question is 'PAST DUE'. The formula put 'PAST DUE' in even if there is no date in J3. How do I skip blanks?
 

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
60,829
Office Version
  1. 365
Platform
  1. Windows
Simple modification:

=IF(AND(J3>0,J3<=NOW()),"Past Due","")
 

ammdumas

Active Member
Joined
Mar 14, 2002
Messages
469
Exxxxxxcelent!

They both work. Thanks guys. Now all I need to do is send email notifications for past due items. I'm going to take 1st crack at it before I whine for help. Thanks again.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,151,876
Messages
5,766,875
Members
425,383
Latest member
IllDo

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
Top