Link to home
Start Free TrialLog in
Avatar of LUIS FREUND
LUIS FREUND

asked on

Getting a false from formula

I'm getting a false reading when I should be getting an actual status and I can't figure out what's causing this.  Please see attachment.

Here is the formula at S2 that's giving me the false statement:

=IF(MAX(K2:N2)<TODAY(),"PAST DUE",IF(MIN(K2:N2)>TODAY(),"ON TIME",IF(AND(MAX(K2:L2)<TODAY(),MIN(M2:N2)>TODAY()),"LATE")))
C--Users-lfreund-Desktop-DATE---FAL.xlsx
Avatar of Norie
Norie

Luis

You haven't provided a result for the FALSE part of the last IF and when that's the case Excel will return FALSE.
SOLUTION
Avatar of Shums Faruk
Shums Faruk
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of LUIS FREUND

ASKER

Ah I see that......question for row 2.  On row 2 that one should say On time since both the change_del_date and the cur_plnd_date is in the future and not blank.
Is the data correct on that line?

Planned Del Date  - 25 December 2018
Confirmed Del Date - 26 January 2018; that is 11 months earlier, maybe should be 26 January 2019.
Data os correct....with your previous formula it gives me "FALSE" results as well.....
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If still not working, can you supply a list of ALL scenarios that could occur, such as below, with their status results:

PLAN_DEL_DATE      CONF_DEL_DATE      CHANGED_DEL_DATE      CUR_PLND_DEL_DATE
PAST                              PAST                              PAST                              PAST
FUTURE                        FUTURE                        FUTURE                        FUTURE
FUTURE                        PAST                              FUTURE                        FUTURE
PAST                              PAST                              FUTURE                        FUTURE

Line 3 is your scenario in the latest sample.

Please also clarify where a Del Date that is equal to today would fall; PAST or FUTURE?
Attached is a revised criteria.....to make it easier,,,I would only need "PAST DUE" OR "ON-TIME".   No need to inlcude "LATE"

Please see atachment....
C--Users-lfreund-Desktop-DATE---FAL.xlsx
Hi Luis,

If you only need "PAST DUE" or "ON-TIME", what are the rules for "PAST DUE" and "ON-TIME"?
Also, can you justify the desired output you showed in column T based on those rules?
Attached are the new rules for each "PAST DUE" AND "ON-TIME"
C--Users-lfreund-Desktop-Past-Due.xlsx
The explanation you added in column H is like a puzzle and I am not sure if I understood it clearly. :)

If you use Office 365 or Office - 2016, try the below formula...

=IF(AND(MAXIFS(E2:F2,E2:F2,"<>")<TODAY(),MINIFS(C2:F2,C2:F2,"<>")<TODAY()),"PAST DUE","ON-TIME")

Open in new window

Thanks.  I'm getting a #NAME? error.  

Also I'm open for suggestions on how to simplify this....I'm sure I'm making it more compicated than it should really be.....
Probably the MAXIFS function. Only came with Excel 2016
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Did the the trick....works great.
Thanks Gents for all the help!
You're welcome Luis! :)