DATEDIF and Chain of Dates

dasbear3

New Member
Joined
Sep 12, 2008
Messages
22
Hi everyone! I’m working with a process chain that includes several dates. <o:p></o:p>
<o:p></o:p>
Explanation of Cells:<o:p></o:p>
A1: Date for Initial Review (Should not take more than four days to escalate)<o:p></o:p>
B1: Contains formula to determine whether timeframe of A1 is “OVER” or “WITHIN LIMITS”<o:p></o:p>
C1: Date for Financial Review (Next date in process)<o:p></o:p>
<o:p></o:p>
As it currently stands, B1 holds this formula:<o:p></o:p>
<o:p></o:p>
[highlight]=IF(ISBLANK(A1),””,IF(DATEDIF(A1,TODAY(),”d”)>4,”OVER”,”WITHIN LIMITS”))[/highlight]<o:p></o:p>
<o:p></o:p>
I wanted to add an additional part which uses C1. <o:p></o:p>
<o:p></o:p>
  • If C1 has a date occurring after A1, then B1 populates “IN PROGRESS”.
    [*]
    However, if C1 has a date occurring before A1, then B1 populates “ERROR”. <o:p></o:p>

    [*]If C1 is blank, then B1 will either show the “OVER” or “WITHIN LIMITS” like it currently does.

<o:p></o:p>
<o:p></o:p>
Any ideas? Thank you for your time!<o:p></o:p>
 

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.
You don't need DATEDIF to calculate the number of days between two dates, you can just subtract.

So, try this in B1

=IF(A1="","",IF(C1="",IF(TODAY()-A1>4,"OVER","WITHIN LIMITS"),IF(C1< A1,"ERROR","INPROGRESS")))
 
Upvote 0
Peter_SSs,

This is perfect!! Thank you for clarifying about DATEDIF; it's always better to be as simple as possible.

Thanks again!
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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