+ Reply to Thread
Results 1 to 15 of 15

How to get a top 3 amount from a list that have several order

  1. #1
    Registered User
    Join Date
    04-30-2014
    Location
    england
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    63

    Question How to get a top 3 amount from a list that have several order

    Hi there,

    I need help for to get sorting out top 3 clients with the total amount.
    Please refer the table below for clearer picture.

    A B C
    1 Company Name Value
    2 Apple 2100
    3 Mango 4000
    4 Melon 1000
    5 Apple 600
    6 Melon 1200
    7 Strawberry 500

    How do I show this in top 3 like this:

    Top 3 Buyer
    Mango 4000
    Apple 2700
    Melon 2200

    I found that =LARGE only work for single cell name with single value instead of multiple cell that may contain same name but different value and add them up.
    Maybe I'm wrong, as I'm not so proficiency with Excel. Kindly advise me which way I need to do to reach the end result.

    Thank you so much for your help.
    Last edited by lazyserv; 08-11-2014 at 06:49 AM. Reason: problem solved

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How to get a top 3 amount from a list that have several order

    a pivot table would be ideal for this
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    04-30-2014
    Location
    england
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    63

    Re: How to get a top 3 amount from a list that have several order

    Quote Originally Posted by martindwilson View Post
    a pivot table would be ideal for this
    Do you mind to share some example, but I still prefer excel coding as I got many types need to sort, if pivot table.. there may be a lot of table need to display

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

    Re: How to get a top 3 amount from a list that have several order

    =INDEX($B$2:$C$7,MATCH(LARGE(INDEX(($C$2:$C$7)-ROW($C$2:$C$7)*0.1^10,0),ROWS($1:1)),INDEX(($C$2:$C$7)-ROW($C$2:$C$7)*0.1^10,0),0),COLUMNS($A:A))
    Try this and copy across
    Last edited by samba_ravi; 08-11-2014 at 03:41 AM.
    Samba

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

  5. #5
    Registered User
    Join Date
    04-30-2014
    Location
    england
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    63

    Re: How to get a top 3 amount from a list that have several order

    Quote Originally Posted by nflsales View Post
    =INDEX($B$2:$C$7,MATCH(LARGE(INDEX(($C$2:$C$7)-ROW($C$2:$C$7)*0.1^10,0),ROWS($1:1)),INDEX(($C$2:$C$7)-ROW($C$2:$C$7)*0.1^10,0),0),COLUMNS($A:A))
    Try this and copy across
    it doesn't seems to be working.. please refer attached file.

    is it I miss out any steps?

    and I just got figure but without the name on the side.

    thank you for assisting me


    sample report.xlsx
    Last edited by lazyserv; 08-11-2014 at 03:51 AM. Reason: add more details

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

    Re: How to get a top 3 amount from a list that have several order

    =INDEX($A$2:$B$7,MATCH(LARGE(INDEX(($B$2:$B$7)-ROW($B$2:$B$7)*0.1^10,0),ROWS($1:1)),INDEX(($B$2:$B$7)-ROW($B$2:$B$7)*0.1^10,0),0),COLUMNS($A:A))
    Try this formula

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

    Re: How to get a top 3 amount from a list that have several order

    =INDEX($A$2:$B$7,MATCH(LARGE(INDEX(($B$2:$B$7)-ROW($B$2:$B$7)*0.1^10,0),ROWS($1:1)),INDEX(($B$2:$B$7)-ROW($B$2:$B$7)*0.1^10,0),0),COLUMNS($A:A))
    Try this formula and copy across
    Attached Files Attached Files

  8. #8
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How to get a top 3 amount from a list that have several order

    i dont have 2003 to try and diferent pivot table options/ways of doing things are slightly different in excel versions
    Last edited by martindwilson; 08-11-2014 at 04:01 AM.

  9. #9
    Registered User
    Join Date
    04-30-2014
    Location
    england
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    63

    Re: How to get a top 3 amount from a list that have several order

    Quote Originally Posted by nflsales View Post
    =INDEX($A$2:$B$7,MATCH(LARGE(INDEX(($B$2:$B$7)-ROW($B$2:$B$7)*0.1^10,0),ROWS($1:1)),INDEX(($B$2:$B$7)-ROW($B$2:$B$7)*0.1^10,0),0),COLUMNS($A:A))
    Try this formula and copy across
    But it doesn't add up Apple which have two amount, the correct amount for Apple should be 2100 + 600 = 2700.
    Same goes to Melon. It just show top 3 highest value but doesn't add up other cells that have the same name but different value as mention above.

    Need your advise.

    Thank you.

    Quote Originally Posted by martindwilson View Post
    i dont have 2003 to try and diferent options/ways of doing things are slightly different in excel versions
    I just upgraded to Excel 2007, therefore using Excel 2007 do we able to do it without pivot table?

    Thank you.

  10. #10
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How to get a top 3 amount from a list that have several order

    why? a pivot will take up exactly the same space as a formula ,well maybe a row extra
    you can place it anywhere you want.

  11. #11
    Registered User
    Join Date
    04-30-2014
    Location
    england
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    63

    Re: How to get a top 3 amount from a list that have several order

    Quote Originally Posted by martindwilson View Post
    why? a pivot will take up exactly the same space as a formula ,well maybe a row extra
    you can place it anywhere you want.
    Do you mind to show me some example how to achieve the end result?

    Thank you.

  12. #12
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How to get a top 3 amount from a list that have several order

    ok heres how you do a basic pivot it looks complicated but once you get used to it it takes about a minute
    Attached Files Attached Files

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

    Re: How to get a top 3 amount from a list that have several order

    see the attached file
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    04-30-2014
    Location
    england
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    63

    Re: How to get a top 3 amount from a list that have several order

    Quote Originally Posted by martindwilson View Post
    ok heres how you do a basic pivot it looks complicated but once you get used to it it takes about a minute
    it's a bit confusing at first but nevertheless your detail explanation helps me out for the problem using pivot table.
    +rep for you and thank you for assisting in my problem.

    Quote Originally Posted by nflsales View Post
    see the attached file
    your solutions works great but the code makes me confusing, but nevertheless your solution solve my problem without using pivot table.
    +rep for you as well for giving me a solution and assist in my problem.

    Thank you to both of you.

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

    Re: How to get a top 3 amount from a list that have several order

    it's my pleasure and thanks for 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. Replies: 0
    Last Post: 02-15-2014, 10:30 AM
  2. Sum charge amount every time the code and the order number change
    By children in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-19-2013, 08:49 AM
  3. [SOLVED] Quantity in column D based on order amount of times the order no appears
    By djfscouse in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-19-2013, 06:48 PM
  4. [SOLVED] Probably a SUM formula for order no. to get the total amount of order
    By Konnie in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-10-2013, 04:29 AM
  5. Replies: 10
    Last Post: 09-27-2012, 03:59 PM

Tags for this Thread

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