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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
66,509
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","")
 
Upvote 0

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?
 
Upvote 0

Joe4

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

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

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.
 
Upvote 0

Forum statistics

Threads
1,186,363
Messages
5,957,425
Members
438,305
Latest member
farmerje

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