+ Reply to Thread
Results 1 to 2 of 2

Count the largest

  1. #1
    Andrew Mackenzie
    Guest

    Count the largest

    I have a column of customers and an adjacent column of balances. I would
    like to count the number of customers that account for 50% of the total
    amount of the balances.

    I am looking for a formula to do this for me. Any ideas?

    Thanks in advance.



  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    As you have names in an adjacent column I will assume the amounts are in column B, from Cell B1 downwards.

    In C1 put
    =LARGE(B:B,ROW())

    In D1 put
    =IF(SUM(C$1:C1)<=0.5*SUM(C:C),SUM(C$1:C1),"")

    and formula-drag those down as far as you have data.

    In E1 put
    =COUNT(D:D)

    This should be your count of those that total 50%.

    Note that the amounts in columns C to D do not represent the names on the same row, they are in order of greatest to least.

    Hope this helps




    Quote Originally Posted by Andrew Mackenzie
    I have a column of customers and an adjacent column of balances. I would
    like to count the number of customers that account for 50% of the total
    amount of the balances.

    I am looking for a formula to do this for me. Any ideas?

    Thanks in advance.
    Last edited by Bryan Hessey; 11-24-2005 at 08:35 AM.

+ 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