Determine if a date is past due or current

halefamily104

New Member
Joined
Oct 11, 2016
Messages
31
Hello There!

I have a question. I am trying to find a formula that calculates between two dates, the "next Treatment Due" and today's date and determines if the date in the Next Treatment Due is past due or current. Here's the breakdown. I have three columns. First is named "Last Treatment Completed" (EE95), next is "Next Treatment Due" (EF95) and last is "Treatment Done" (EG95). I need to show in another column if the "Next Treatment Due" is current or past due. Currently, this formula does it:

=IF(ISBLANK(EF95),"",IF(EF95<TODAY(),"Overdue","Not due"))

Here's the problem. in the "Treatment Done" column, a date will be entered so I need to look at that date and change the status to "Current". How can I do this?

Trying this but currently its showing "Overdue" insead of "Current"

=IF(ISBLANK(EF16),"",IF(EF16<TODAY(),"Overdue",OR IF(EG16>TODAY(),"current")))


Thanks in Advance!
 

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)
Since you already checked for Blank and less than, you shouldn't need to check for the last condition, just return "current", i.e.
Excel Formula:
=IF(ISBLANK(EF16),"",IF(EF16<TODAY(),"Overdue","current"))
 
Upvote 0
Since you already checked for Blank and less than, you shouldn't need to check for the last condition, just return "current", i.e.
Excel Formula:
=IF(ISBLANK(EF16),"",IF(EF16<TODAY(),"Overdue","current"))
Thanks So Much Joe4! The only problem is the formula needs to also look in EG16, not just EF16. If there is a date in EF16, then the formula should return "Current"
 
Upvote 0
A gentle reminder:

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at:

If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0
Thanks So Much Joe4! The only problem is the formula needs to also look in EG16, not just EF16. If there is a date in EF16, then the formula should return "Current"
I am not quite clear on all your criteria, as I think may be mixing EF16 and EG16 in your statement above.

Rather than guess, please provide us with a grid of ALL the possible combinations in EF16 and EG16, and what should be returned in each instance.
 
Upvote 0
I am not quite clear on all your criteria, as I think may be mixing EF16 and EG16 in your statement above.

Rather than guess, please provide us with a grid of ALL the possible combinations in EF16 and EG16, and what should be returned in each instance.
Sure, be happy to! here is what I am currently trying (which isn't working by the way):
=IF(ISBLANK(EF16),"",IF(EF16>TODAY(),"Overdue",IF(EG16>0,"Current","")))

Essentially, look at EF16 first, if the date in that cell is less than today's date, mark it "Overdue", however, if the date in EG is greater than or equal to today's date, return "Current". Essentially, if there is a date in EG, it will make it "Current". If the cell in EG16 is blank, the returned value should be "Not Done".
 

Attachments

  • Sample.JPG
    Sample.JPG
    19.9 KB · Views: 18
Upvote 0
Not quite what I am looking for. You have left out too many details about possible scenarios.
Here is a grid I have made up showing all the possibilities (maybe - don't know if we need to compare the dates in EF16 and EG16 to each other):
Cell EF16 ValueCall EG16 ValueWhat to return?
BlankBlank
BlankPast Date
BlankFuture Date
Past DateBlank
Future DateBlank
Past DatePast Date
Past DateFuture Date
Future DatePast Date
Future DateFuture Date

Please indicate what you want to happen in each one (or if a particular combination is not possible).
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,864
Members
449,052
Latest member
Fuddy_Duddy

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