+ Reply to Thread
Results 1 to 11 of 11

selecting and summarising random repeats

  1. #1
    Forum Contributor
    Join Date
    06-10-2004
    Posts
    121

    selecting and summarising random repeats

    Hi wizards

    I have a sales ledger which shows invoice no, customer name, invoice value, and amount paid, I wish to produce a summary that shows a one line entry for customers that have unpaid. The problem I have is if a customer has more than one invoice unpaid, I get an entry for each invoice.

    I also want to count the number of customers, on the sales ledger, which sounds easy enough but again I can't get round duplicates

    Thanks

  2. #2
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: selecting and summarising random repeats

    tghcogo,

    To get the most precise answer, it is best to upload/attach a sample workbook (sensitive data scrubbed/removed) that contains an example of your raw data on one worksheet, and on another worksheet your desired results.

    The structure and data types of the sample workbook must exactly duplicate the real workbook. Include a clear and explicit explanation of your requirements.

    To attach your workbook, scroll down and click on the Go Advanced button, then scroll down and click on the Manage Attachments button.
    Have a great day,
    Stan

    Windows 10, Excel 2007, on a PC.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved by clicking EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  3. #3
    Forum Contributor
    Join Date
    06-10-2004
    Posts
    121

    Re: selecting and summarising random repeats

    Heres a sample file
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    06-10-2004
    Posts
    121

    Re: selecting and summarising random repeats

    There's no need to enable the macros in tha attached sample, they are for the original worksheet, the summary page has a partial solution that works for each unpaid invoice by using a macro. but I'd prefer it to be done by formula to show a one line entry for each unpaid customer if that's possible.

    Thanks in advance

  5. #5
    Forum Contributor
    Join Date
    06-10-2004
    Posts
    121

    Re: selecting and summarising random repeats

    Does anybody know how to do this?

  6. #6
    Forum Contributor
    Join Date
    06-10-2004
    Posts
    121

    Re: selecting and summarising random repeats

    let's try a Bump!

  7. #7
    Forum Expert
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2007
    Posts
    2,387

    Re: selecting and summarising random repeats

    tghcogo,

    The formula in sheet Summary, cell B23:

    =SUMPRODUCT((Sales!$D$5:$D$50<>"")/COUNTIF(Sales!$D$5:$D$50,Sales!$D$5:$D$50&""))


    Click on the New Post button, and bust enter the word BUMP, then click on the Submit Reply button, and someone else will assist you.
    Last edited by stanleydgromjr; 02-01-2011 at 10:23 AM.

  8. #8
    Forum Contributor
    Join Date
    06-10-2004
    Posts
    121

    Re: selecting and summarising random repeats

    Thanks very much Stanleydgromjr

    That works really well for total number of customers and the number of unpaid customers will then just be a simple Count function if I can get the summary part sorted. What I'm trying to do is get a subtotal for each individual customer who has unpaid invoices. It's easy enough if I type the customer name in, however I'd like it to be self generating, is that too tricky?

  9. #9
    Forum Contributor
    Join Date
    06-10-2004
    Posts
    121

    Re: selecting and summarising random repeats

    bumptity bump

  10. #10
    Forum Contributor
    Join Date
    06-10-2004
    Posts
    121

    Re: selecting and summarising random repeats

    I've uploaded another sample, what I am trying to achieve is a list of debtors in the A column on the Summary page consisting of a single entry for each customer that has unpaid invoices. Some customers may have more than one invoice so the basic problem I have is to reduce the list so that a customer only appears once.
    Attached Files Attached Files

  11. #11
    Forum Contributor
    Join Date
    06-10-2004
    Posts
    121

    Re: selecting and summarising random repeats

    I seem to be hitting brickwalls and my brain is now beginning to hurt. I've attached another sample worksheet which shows exactly what I am miserably failing to achieve. I'm sure there's a simple enough solution please someone look at it before I scratch my eyes out!!!

    Thanks again in advance
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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