+ Reply to Thread
Results 1 to 4 of 4

To find the no of days on which outstanding is cleared

  1. #1
    Forum Contributor rajeshturaha's Avatar
    Join Date
    08-22-2012
    Location
    Assam, India
    MS-Off Ver
    Excel 2003, 2007
    Posts
    236

    To find the no of days on which outstanding is cleared

    Hi Experts


    attached is Ledger copy of a Customer.
    What I need to find is that the no of days the outstanding is cleared.
    For Eg. The customer has a outstanding of 635580 on date 03-06-2017.
    He has made a payment of 1500 on 03-06-2017, 349000 on 06-06-2017, 2000 on 06-06-2017 & 300000 on 08-06-2017 which sumups to 652500 which is greater than the outstanding of 03-06-2017, so the no of days is 08-06-2017 (-) 03-06-2017 = 5 days.
    I need a single formula which will calculate as above against (by Sales In Col Particular), as shown in the example
    Attached Images Attached Images
    Attached Files Attached Files
    Rgd
    RT
    If my answer(s) helped you, please add me reputation by click on *

  2. #2
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: To find the no of days on which outstanding is cleared

    If I'm understanding the goal correctly, I think the following formula will work. It should be array-entered (confirm with Ctrl + Shift + Enter) in G2 and filled down (to preserve your original work, it's in H2 of my attachment):

    =INDEX($A$1:$A$61,MIN(IF(SUBTOTAL(9,OFFSET($D3,0,0,ROW(D3:D$61)-ROW(D2),1))-E2>=0,ROW(D3:D$61))))-$A2&" days"

    The formula should return the number of days before the credits exceed the current balance. The formula currently only looks through row 61, but if you want to be able to add more rows, just change all of the "61"s in the formula to something much bigger. If you only want to show the results for particular types of entries (e.g. "To Sales"), then wrap it in an IF clause (again, array-entered):

    =IF(B2="To Sales",INDEX($A$1:$A$61,MIN(IF(SUBTOTAL(9,OFFSET($D3,0,0,ROW(D3:D$61)-ROW(D2),1))-E2>=0,ROW(D3:D$61))))-$A2&" days","")

    Please take a look at the attachment to see if the solution is what you're looking for:
    Attached Files Attached Files
    If your problem has been solved, please use "Thread Tools" to mark the thread as "Solved".

    If you're grateful for this site's existence and would like to contribute to the community, please consider posting something hilarious in our joke thread:
    https://www.excelforum.com/the-water...ke-thread.html

  3. #3
    Forum Contributor rajeshturaha's Avatar
    Join Date
    08-22-2012
    Location
    Assam, India
    MS-Off Ver
    Excel 2003, 2007
    Posts
    236

    Re: To find the no of days on which outstanding is cleared

    Thank u CAantosh, for your quick support. I will check it and get back to u

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,941

    Re: To find the no of days on which outstanding is cleared

    or
    g2=IF(C2=0,"",INDEX(A3:A$61,MATCH(E2,(SUBTOTAL(9,OFFSET(D2,0,0,ROW(D2:D$61)-ROW(D2)+1,1)))))-A2&" Day(s)")
    Please Login or Register  to view this content.
    Try this and copy towards down
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

+ 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. Help calculating days outstanding with old data
    By ari79 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-31-2017, 10:24 AM
  2. [SOLVED] Averaging Customer Outstanding Days
    By arasan25 in forum Excel General
    Replies: 3
    Last Post: 04-04-2016, 11:55 PM
  3. Days Outstanding
    By hannayjlee in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-04-2015, 03:48 PM
  4. [SOLVED] Outstanding days clarification
    By initial e in forum Excel General
    Replies: 6
    Last Post: 10-30-2013, 12:42 PM
  5. days outstanding
    By lottieloo in forum Excel General
    Replies: 2
    Last Post: 03-30-2008, 02:52 PM
  6. sumproduct - many days a cases have been outstanding
    By JACKIEDANCAR in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 01-16-2008, 05:52 PM
  7. Total days outstanding formula
    By ballard in forum Excel General
    Replies: 5
    Last Post: 11-07-2007, 12:20 PM

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