Excel Formula Help

Discussion in 'Programming' started by irule272, May 21, 2010.

  1. #1
    Hello!

    I'm not sure if this is the right thread but since it involves a bit of programming using excel formula I decided to put it here on this thread.

    Ok i have this table, Let's say column B is score

    [​IMG]

    What I want is, I want to show the top 10 scorer which will display the name and score beside the name. Something like this:

    [​IMG]

    You can see the top 10 on the above image.


    Anyone know how can I do this? and what formula?

    An example would be highly appreciated. Anyone?

    Thanks!
     
    irule272, May 21, 2010 IP
  2. Serious Workers

    Serious Workers Well-Known Member

    Messages:
    2,785
    Likes Received:
    65
    Best Answers:
    2
    Trophy Points:
    195
    #2
    Hello,

    It is very simple. First click on any cell of column B, then click on "Sort & Filter" tab in Excel 2007. It will show a drop down menu and in it Click on "Custom Sort...". And in it click on " Largest to smallest" in order tab and then click OK and it should be done as you want.

    Hope it helps.

    Thanks,
    Serious Workers
     
    Serious Workers, May 21, 2010 IP
  3. irule272

    irule272 Well-Known Member

    Messages:
    1,153
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    155
    #3
    Thanks for that, But the problem is I want to show the top 10 in different columns and I don't want to mess up column A and B. That's why you'll noticed on the 2nd pic that I put it on column D and E.

    Any idea how can I do that?
     
    irule272, May 21, 2010 IP
  4. Serious Workers

    Serious Workers Well-Known Member

    Messages:
    2,785
    Likes Received:
    65
    Best Answers:
    2
    Trophy Points:
    195
    #4
    I don't think there is any automated formula to do that until I know. But, I will check it and reply to you if I find any such things.
     
    Serious Workers, May 21, 2010 IP
  5. irule272

    irule272 Well-Known Member

    Messages:
    1,153
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    155
    #5
    Ok thanks

    Any other suggestions on how to solve this? Thanks
     
    irule272, May 21, 2010 IP
  6. Amator

    Amator Well-Known Member

    Messages:
    1,424
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    165
    #6
    I think the easiest thing is to create a pivot table on the same sheet.
     
    Amator, May 22, 2010 IP
  7. irule272

    irule272 Well-Known Member

    Messages:
    1,153
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    155
    #7
    any links on how can I do that? thanks
     
    irule272, May 22, 2010 IP
  8. fishmania

    fishmania Peon

    Messages:
    388
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #8
    pivot table on the same sheet is the simplest thing in this case. just google it.
     
    fishmania, May 22, 2010 IP
  9. irule272

    irule272 Well-Known Member

    Messages:
    1,153
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    155
    #9
    Pivot seems ok, but that is not exactly what I want.

    I don't want to refresh the pivot table once I am changing a value on column B.

    What I want is, the top 10 will also automatically change whenever I am changing the the value in column B
     
    irule272, May 23, 2010 IP
  10. marazas

    marazas Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    To column E1 add formula =LARGE(B:B;1) to column E2 add =LARGE(B:B;2) .... E10 add formula =LARGE(B:B;10)

    To column D1 add formula =IF(N(E1);INDEX(A:A;LARGE(IF(B:B=E1;ROW(A:A)-ROW($A$1)+1);COUNTIF($E$1:E1;E1)));"") and enter with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}. Note: Do not try and enter these manually yourself
    To column D2 add formula =IF(N(E2);INDEX(A:A;LARGE(IF(B:B=E2;ROW(A:A)-ROW($A$1)+1);COUNTIF($E$1:E2;E2)));"") and enter with Ctrl+Shift+Enter
    ...........
    To column D10 add formula =IF(N(E10);INDEX(A:A;LARGE(IF(B:B=E10;ROW(A:A)-ROW($A$1)+1);COUNTIF($E$1:E10;E10)));"") and enter with Ctrl+Shift+Enter
     
    marazas, May 25, 2010 IP
  11. aplnx

    aplnx Active Member

    Messages:
    115
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #11
    how about the file I sent to you. I sending PM for you and no answer... What happens?
     
    aplnx, Jun 3, 2010 IP
  12. marazas

    marazas Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    To witch user you are sending PM?
     
    marazas, Jun 5, 2010 IP
  13. aplnx

    aplnx Active Member

    Messages:
    115
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #13
    It's for irule272. I sent a excel file with the requirements. Before, he keeping talk to me. When I sent file, I didn't got answers anymore... I want to know what happened!
     
    aplnx, Jun 5, 2010 IP
  14. irule272

    irule272 Well-Known Member

    Messages:
    1,153
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    155
    #14
    Dude you didn't get any reply because what you sent to me is not what I needed or didn't exactly what I need and also someone's already gave me the correct formula before you sent your last e-mail to me. Sorry if I didn't notify you right away.
     
    irule272, Jun 5, 2010 IP