Forum Discussion

Zed69's avatar
Zed69
Copper Contributor
Dec 20, 2021

XL Ageing Creditor formula help

Hi, I'm in desperate need of some help please as I don't really know much about formulas, so it may be a daft question?

I'm trying to create a formula for an aged creditor report however the ones I've spent hours googling aren't working and it's driving me insane 😞

I want the 'Age' cell to show how many days before its due to be paid but also, once the paid date is entered then cleared the age figure is cleared?

 

Any help would be much appreciated, thank you!

 

 Payment Summary 20/12/2021  
   Total Paid:2415  
   Aging - Current:1130  
   1 - 30:1800  
   31 - 60:-1040  
   61 - 90:250  
   > 90:2370  
   Total Outstanding:4510  
       
       
Payment Due DateINV AMT DueDate Paid Total PaidAgePayment Outstanding
01/01/202210005/05/2021No10000
13/12/202220012/05/2016No200-3580
15/12/2015300 Yes300-21970
03/10/2021400 Yes150-78250
25/11/201550015/12/2021Yes500-22170
13/11/2015600 Yes600-22290
26/12/2015700 Yes102186690
30/12/2015800 Yes10-2182790
14/12/2015900 Yes1042352890
28/11/2021100 Yes10-2290
22/02/2021500 Yes500-3010
20/11/20212521/11/2021Yes25-300
22/12/20211800 No 21800

 

4 Replies

  • Zed69 

    If you convert the data to an Excel Table any formulas will extend to match the data

    = IF(@[Total Paid] < @[INV AMT Due],
         @[Payment Due Date] - reportDate,
         "")

     

  • Martin_Weiss's avatar
    Martin_Weiss
    Bronze Contributor

    Hi Zed69 

     

    this could be one solution:

    =(A12-TODAY())*ISBLANK(C12)

    The first part counts the difference between the due date and today.

    The ISBLANK function checks, if there is something entered in column C.

    If C12 is blank, it returns true (which equals to 1), so the date difference gets multiplied by 1.

    If C12 is not blank, it returns false (which equals to 0), so the date difference gets multiplied by 0. 

    • Zed69's avatar
      Zed69
      Copper Contributor

      Martin_Weiss Omg, that's excellent, thank you so much 😄

      Shouldn't have spent weeks researching but come on here weeks ago.

      Appreciate it, thanks

       

       

      Peter, I couldn't get yours to work, as it kept coming up with a formula error. I've obviously missed something along the way?

      I entered the following, but clearly it's incorrect.  What have I done wrong please? Thank you

      =IF(@[O20]<@[L20],@[I20]-N9,"")

       

       

Resources