Does anyone have experience with using LARGE in a formula to return results with latest Date Modified? I am needing to return a string that ends in the date & time a contract is marked as complete. In this instance I am looking to return a string for the 5th newest contract completion date (I am compiling the top 5 if that matters).
ISSUES:
- The formula seems to be "buggy" it works if I am just joining a string of the top 5 dates, but will not return a single value date.
- Example: =LARGE([Contract Complete]:[Contract Complete], 1) + ", " + LARGE([Contract Complete]:[Contract Complete], 9); this returns 11/04/24 11:05 AM, 11/04/24 9:11 AM; as expected
- Example: =LARGE([Contract Complete]:[Contract Complete], 1); this returns "#INVALID COLUMN VALUE, not the expected 11/04/24 11:05 AM
- If there is more than one line with the same timestamp, the formula returns the results as a blank.
This is the string I am using with the expected return of: Name of company, Request ID, Contract Complete Date & Time (Tennessee Medicine, REQID_08663, 11/04/24 11:05 AM), but the formula is returning a blank.
=JOIN(COLLECT([Name of Company Requesting Access]:[Name of Company Requesting Access], [Request Status]:[Request Status], "Contract Complete", [Contract Complete]:[Contract Complete], LARGE([Contract Complete]:[Contract Complete], 5)), ", ") + ", " + JOIN(COLLECT([Request ID]:[Request ID], [Request Status]:[Request Status], "Contract Complete", [Contract Complete]:[Contract Complete], LARGE([Contract Complete]:[Contract Complete], 5)), ", ") + ", " + JOIN(COLLECT([Contract Complete]:[Contract Complete], [Request Status]:[Request Status], "Contract Complete", [Contract Complete]:[Contract Complete], LARGE([Contract Complete]:[Contract Complete], 5)), ", ")
I use this exact same formula concept in another sheet, but instead of looking up the values IN the same sheet, I am looking them up from a REFERENCE sheet, and the formula works like a charm 100% of the time.
=JOIN(COLLECT({EHR | Company}, {EHR | Status}, "INTAKE - Processing Request", {EHR | Submitted Date}, LARGE({EHR | Submitted Date}, 1)), " - ") + "- " + JOIN(COLLECT({EHR | State}, {EHR | Status}, "INTAKE - Processing Request", {EHR | Submitted Date}, LARGE({EHR | Submitted Date}, 1)), " - ") + " - " + JOIN(COLLECT({EHR | Submitted Date}, {EHR | Status}, "INTAKE - Processing Request", {EHR | Submitted Date}, LARGE({EHR | Submitted Date}, 1)), " - ")
Any advice for this complex question?
Thanks,
Michael