Forum Discussion
hrincon775
Dec 21, 2022Copper Contributor
Formulas and Functions
I have the following information on a log sheet and I need to calculate the amount of days a report is Past Due based on a few criteria. I have the date information was SENT in one column (I). ...
HansVogelaar
Dec 21, 2022MVP
hrincon775
Dec 21, 2022Copper Contributor
I actually figured it out, but I think your formula is cleaner, except I'd like it to be blank if there's no date in K. Can you tell me how to add that?
Also, if it's not too much trouble, could you type out what the function means and is doing to help me learn?
Thanks SO MUCH for your help!
- HansVogelaarDec 21, 2022MVP
=IF(K2="","",MAX(IF(J2="", TODAY(), J2)-K2, 0))
The formula subtracts K2 from J2, unless J2 is blank, then it subtracts K2 from today's date.
- hrincon775Dec 22, 2022Copper Contributor
Hi! I guess after my boss reviewed it he'd like one more change that I don't know how to make.
Right now, it's calculating the Days Past Due even after the report has been completed. Is there a way to NOT calculate this or display a "0" if there is a date in column J?
I appreciate your help.
- HansVogelaarDec 22, 2022MVP
- hrincon775Dec 21, 2022Copper ContributorThis is perfect - thank you!