SOLVED

Aging Report

Copper Contributor

Good Afternoon! I'm aging sales data but need it to stop aging when an item is sold. I have start date(G5) sale date (H5) and days aged as of today columns. This is my formula but it's not working. I keep getting an excel error.  I'm trying to tell it if there is no date in H5, use today's date. Each formula works independently.  Any ideas? 

 

=DATEDIF(G5,H5,"d"),IF(H5<1(TODAY()-G5,0))

3 Replies
best response confirmed by SARAWALL007 (Copper Contributor)
Solution

@SARAWALL007 

There are other ways to do it, but I will keep your approach as adjusted below

=IF(H5<1,TODAY()-G5,DATEDIF(G5,H5,"d"))

 

Nice! Thanks. Something simpler?

@SARAWALL007 

Perhaps

=IF( H5, H5, TODAY() ) - G5
1 best response

Accepted Solutions
best response confirmed by SARAWALL007 (Copper Contributor)
Solution

@SARAWALL007 

There are other ways to do it, but I will keep your approach as adjusted below

=IF(H5<1,TODAY()-G5,DATEDIF(G5,H5,"d"))

 

View solution in original post