+ Reply to Thread
Results 1 to 11 of 11

Working out dates between invoice date and payment date

  1. #1
    Registered User
    Join Date
    06-06-2021
    Location
    Brisbane
    MS-Off Ver
    Home and Business 2019
    Posts
    9

    Working out dates between invoice date and payment date

    Hi everyone

    I am in the processes of creating a report, I have to work out the time between the invoice date and the payment date, I am able to do this when the invoice and payment is in the same week, but having issues when it is across weeks. I have enclosed the summary page and the data that is making up the report. Is there any way of doing this, as the current system run off a running total, so the creditors total will come back to nil during the year. Thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,779

    Re: Working out dates between invoice date and payment date

    In N2 copied down:

    =IF(K2="",A2-LOOKUP(2,1/(($L$2:$L2=L2)*($F$2:$F2=H2)),$A$2:$A2),"")

    or:

    =IF(K2="",A2-LOOKUP(2,1/(($L$2:$L2=L2)*($F$2:$F2=H2)),$A$2:$A2)&" days","")
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    06-06-2021
    Location
    Brisbane
    MS-Off Ver
    Home and Business 2019
    Posts
    9

    Re: Working out dates between invoice date and payment date

    Ali

    Thanks for that, I don't quite understand how the "Lookup(2,1" works

    It works really well once I do a little bit more tidy up of the data but does not work when there are 2 or more invoices included in the payment run.

    I have attached a little bit more data into the file
    Attached Files Attached Files

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,779

    Re: Working out dates between invoice date and payment date

    Right, so you didn't present realistic data in the first place, so this is really shifting the goalposts AND you have NOT shown in the new sample file what you want the results to be.

    I have run out of time this morning, but so that others can help, please clarify what you want to happen in these cases.

  5. #5
    Registered User
    Join Date
    06-06-2021
    Location
    Brisbane
    MS-Off Ver
    Home and Business 2019
    Posts
    9

    Re: Working out dates between invoice date and payment date

    Ali

    Thanks for your help, I am currently working with 30,000 lines of data and working through the problems as I find them. Yes still need some help as your suggestion has solved 90% of the problem.

    Stay safe.
    Nikki

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,779

    Re: Working out dates between invoice date and payment date

    So please explain what you want to see as results in the second file you attached.

  7. #7
    Registered User
    Join Date
    06-06-2021
    Location
    Brisbane
    MS-Off Ver
    Home and Business 2019
    Posts
    9

    Re: Working out dates between invoice date and payment date

    In the second file that is attached (the data that is highlighted in yellow), as there is more than one invoice from the supplies, I would like to be able to pick up the the easiest date of the invoice being the 7/1/21 and work the number of days from the payment being the 11/2/21. which is 35 days. A supplies may also have more that 2 invoices as well. Thanks in advance for your help.

  8. #8
    Registered User
    Join Date
    06-06-2021
    Location
    Brisbane
    MS-Off Ver
    Home and Business 2019
    Posts
    9

    Re: Working out dates between invoice date and payment date

    Ali

    Did you get a chance to look at this, or is it impossible to do?
    Regards
    Nikki

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,779

    Re: Working out dates between invoice date and payment date

    I've been too busy at work - sorry. Someone else will have a look, I'm sure.

  10. #10
    Registered User
    Join Date
    06-06-2021
    Location
    Brisbane
    MS-Off Ver
    Home and Business 2019
    Posts
    9

    Re: Working out dates between invoice date and payment date

    Ali

    Thanks for your help Have a great day.

    Nikki

  11. #11
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Working out dates between invoice date and payment date

    In N2 copied down.

    =IF(K2="",A2-LOOKUP(2,1/(($L$1:$L1=L2)*($B$1:$B1="Inv")),$A$1:$A1)&" days","")
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Working out date for invoice payment formula
    By sirjames0_1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-28-2020, 04:26 AM
  2. Generate list of invoice dates based on start date and invoice frequency
    By yasmin89 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-14-2020, 02:31 PM
  3. Aged receivables working file - based on date days since invoice raised
    By McQLon in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-16-2016, 02:01 PM
  4. [SOLVED] Aged Receivables - Separate Invoice Date from Payment Date in Aged Summary
    By STUARTXL in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-21-2016, 10:07 AM
  5. formula to subtract payment amount on monthly payment date
    By restingdonkey in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-18-2014, 03:39 PM
  6. Replies: 4
    Last Post: 11-04-2012, 12:43 PM
  7. Replies: 4
    Last Post: 02-27-2012, 07:52 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1