SOLVED

Past Due Date Calculation based upon Status

%3CLINGO-SUB%20id%3D%22lingo-sub-1538698%22%20slang%3D%22en-US%22%3EPast%20Due%20Date%20Calculation%20based%20upon%20Status%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1538698%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3EI%20thought%20this%20would%20be%20a%20pretty%20easy%20statement%20to%20write%2C%20however%20I'm%20struggling%20more%20then%20I%20thought%20I%20would%20with%20it.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20want%20to%20calculate%20Date%20Past%20Due%20days%20based%20upon%20an%20Expired%20status%20in%20a%20column%20calculated%20against%20the%20ETA%20Date.%20So%20for%20example%2C%20if%20the%20Start%20date%20is%205%2F1%2F20%20and%20the%20ETA%20is%206%2F1%2F20%20and%20today%20is%207%2F1%2F20%20how%20can%20I%20show%20that%20the%20Past%20Due%20Date%20is%2030%20days%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20Status%20changes%20to%20Closed%2C%20I%20want%20the%20Past%20Due%20Days%20(if%20any)%20to%20stay%20stagnant%20from%20the%20day%20they%20are%20Closed.%3C%2FP%3E%3CP%3EIf%20Status%20is%20set%20to%20Open%2C%20I%20don%E2%80%99t%20want%20to%20calculate%20any%20Past%20Due%20Days.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20Start%20Date%20is%20in%20(B6).%3C%2FP%3E%3CP%3EMy%20Status%20of%20Open%2C%20Expired%2C%20Closed%20is%20in%20(C6).%3C%2FP%3E%3CP%3EMy%20ETA%20Date%20is%20in%20(P6).%3C%2FP%3E%3CP%3EMy%20Date%20Closed%20is%20in%20(Q6).%3C%2FP%3E%3CP%3EMy%20Past%20Due%20Days%20is%20in%20(S6)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20tried%20doing%20a%20few%20things%20with%20Conditional%20Formatting%20and%20IF%2FAND%20statements%20but%20cannot%20get%20anywhere.%20Does%20anyone%20have%20any%20idea%20how%20to%20save%20my%20mental%20health%20and%20get%20this%20done%3F%20Or%20is%20it%20even%20possible%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1538698%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1538885%22%20slang%3D%22de-DE%22%3ESubject%3A%20Past%20Due%20Date%20Calculation%20based%20upon%20Status%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1538885%22%20slang%3D%22de-DE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F736587%22%20target%3D%22_blank%22%3E%40Aidan1700%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22tlid-translation%20translation%22%3E%3CSPAN%20class%3D%22%22%3EMaybe%20this%20could%20be%20fit.%3C%2FSPAN%3E%3CBR%20%2F%3E%20%3CSPAN%20class%3D%22%22%3EPlease%20see%20the%20attached%20file.%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22%22%3E%20If%20this%20is%20the%20answer%2C%20please%20tick%20the%20correct%20answer%20and%20a%20like%20...%20if%20not%2C%20please%20give%20a%20short%20feedback.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENikolino%3C%2FP%3E%3CP%3EI%20know%20I%20don't%20know%20anything%20(Socrates)%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1538988%22%20slang%3D%22en-US%22%3EBetreff%3A%20Past%20Due%20Date%20Calculation%20based%20upon%20Status%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1538988%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F722750%22%20target%3D%22_blank%22%3E%40Nikolino%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20Nikolino%2C%20I%20appreciate%20your%20help.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20only%20answers%20the%20question%20partially.%20I%20need%20to%20control%20it%20by%20the%20status%20%22expired%22%20and%20if%20the%20status%20%22closed%22%20I%20don't%20want%20it%20to%20recalculate.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1539045%22%20slang%3D%22de-DE%22%3ESubject%3A%20Past%20Due%20Date%20Calculation%20based%20upon%20Status%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1539045%22%20slang%3D%22de-DE%22%3Ein%20a%20small%20sheet%20with%20the%20desired%20values%20and%20the%20output%20would%20be%20an%20advantage%20...%20Especially%20for%20those%20who%20can't%20handle%20english%20as%20well%20as%20some%20ignorant%20like%20me%20%3CLI-EMOJI%20id%3D%22lia_slightly-smiling-face%22%20title%3D%22%3Aslightly_smiling_face%3A%22%3E%3C%2FLI-EMOJI%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1539112%22%20slang%3D%22en-US%22%3EBetreff%3A%20Past%20Due%20Date%20Calculation%20based%20upon%20Status%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1539112%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F736587%22%20target%3D%22_blank%22%3E%40Aidan1700%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPerhaps%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20643px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F207212i68BDC7CF208D3CF7%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22image.png%22%20alt%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3Ewith%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-excel%22%3E%3CCODE%3E%3DIF(C6%3D%22Closed%22%2CMAX(0%2CQ6-P6)%2CIF(C6%3D%22Expired%22%2CMAX(0%2CTODAY()-P6)%2C%22%22))%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1539545%22%20slang%3D%22en-US%22%3EBetreff%3A%20Past%20Due%20Date%20Calculation%20based%20upon%20Status%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1539545%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F521%22%20target%3D%22_blank%22%3E%40Sergei%20Baklan%3C%2FA%3E%26nbsp%3BThanks%20so%20very%20much%2C%20you%20are%20like%20a%20magician!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1539555%22%20slang%3D%22en-US%22%3EBetreff%3A%20Past%20Due%20Date%20Calculation%20based%20upon%20Status%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1539555%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F736587%22%20target%3D%22_blank%22%3E%40Aidan1700%3C%2FA%3E%26nbsp%3B%2C%20you%20are%20welcome%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

I thought this would be a pretty easy statement to write, however I'm struggling more then I thought I would with it. 

 

I want to calculate Date Past Due days based upon an Expired status in a column calculated against the ETA Date. So for example, if the Start date is 5/1/20 and the ETA is 6/1/20 and today is 7/1/20 how can I show that the Past Due Date is 30 days?

 

If Status changes to Closed, I want the Past Due Days (if any) to stay stagnant from the day they are Closed.

If Status is set to Open, I don’t want to calculate any Past Due Days.

 

My Start Date is in (B6).

My Status of Open, Expired, Closed is in (C6).

My ETA Date is in (P6).

My Date Closed is in (Q6).

My Past Due Days is in (S6)

 

I have tried doing a few things with Conditional Formatting and IF/AND statements but cannot get anywhere. Does anyone have any idea how to save my mental health and get this done? Or is it even possible?

6 Replies

@Aidan1700 

 

Maybe this could fit.
Please see the attached file.

If this is the answer, please tick the correct answer and a like ... if not, please give a short feedback.

 

Nikolino

I know I don't know anything (Socrates)

@Nikolino 

Thank you Nikolino, I appreciate your help.

 

It only answers the question partially. I need to control it by the status "expired" and if the status "closed" I don't want it to recalculate.

in a small sheet with the desired values and the output would be an advantage ... especially for those who can not handle english as well as some ignorant like me
best response confirmed by Aidan1700 (New Contributor)
Solution

@Aidan1700 

Perhaps

image.png

with

=IF(C6="Closed",MAX(0,Q6-P6),IF(C6="Expired",MAX(0,TODAY()-P6),""))

@Sergei Baklan Thanks so very much, you are like a magician!

@Aidan1700 , you are welcome