Forum Discussion

RPINEDA2's avatar
RPINEDA2
Copper Contributor
Feb 09, 2024

Aging

Hi,

 

I would like to have an aging on column D. 

 

For the below data I need to add the aging in column D for every invoice. This aging is in relation to the payment date that appears first above the invoice.

 

Below is sample. Is there a formula that I can use to drag down for all the data? Thanks for any suggestion.

 

DateTransaction TypeDue DateAging
11/04/2022Payment11/04/2022 
10/26/2022Invoice11/09/2022-5
12/20/2022Payment12/20/2022 
12/06/2022Invoice12/20/20220
02/18/2022Payment02/18/2022 
01/26/2022Invoice01/26/202223
02/14/2022Invoice02/14/20224
02/02/2022Invoice02/02/202216
  • RPINEDA2 

    =IF(B2="Invoice",LOOKUP(2,1/("Payment"=$B$2:B2),$C$2:C2)-C2,"")

    This formula returns the expected results in my sheet.

  • RPINEDA2 

    =IF(B2="Invoice",LOOKUP(2,1/("Payment"=$B$2:B2),$C$2:C2)-C2,"")

    This formula returns the expected results in my sheet.

    • RPINEDA2's avatar
      RPINEDA2
      Copper Contributor
      You have saved me from a lot of manual work. Thank you!

Share