+ Reply to Thread
Results 1 to 12 of 12

how to find top 25 Values from more than 1000 rows with their corresponding names

  1. #1
    Registered User
    Join Date
    04-30-2011
    Location
    Bangalore
    MS-Off Ver
    Excel 2003
    Posts
    6

    how to find top 25 Values from more than 1000 rows with their corresponding names

    Hi all,

    I needed help to find top 25 Values from more than 1000 rows with their corresponding names in a new sheet. I have a formula which works fine in a small data set but its not working with large data. the below is the formula which i got from a website and unfortunately i missed that link. I have a file also which i did a rough work. Maybe i need to change 10^5 value in the formula. can you please tell me what the meaning of 10^5 in this formula Any advice is greatly appreciated. Also can you please suggest how to use ISError function in this formula so that whenever #N/A ,#NUM! or something like this comes the cell shows as blank cell.

    =INDEX($B$1:$B$20,MATCH(LARGE(INDEX($C$1:$C$20+(ROWS($C$1:$C$20)-ROW($C$1:$C$20))/10^5,0),ROWS($1:1)),INDEX($C$1:$C$20+(ROWS($C$1:$C$20)-ROW($C$1:$C$20))/10^5,0),0))

    and to get corresponding amount :=LARGE($C$2:$C$21,ROWS($2:4))
    Attached Files Attached Files

  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 find top 25 Values from more than 1000 rows with their corresponding names

    just use the unique rank you already have in column a and index match against that
    see cols g:h
    Attached Files Attached Files
    "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
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,524

    Re: how to find top 25 Values from more than 1000 rows with their corresponding names

    Possibly
    Please Login or Register  to view this content.
    or in the other sheet
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    04-30-2011
    Location
    Bangalore
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: how to find top 25 Values from more than 1000 rows with their corresponding names

    Quote Originally Posted by martindwilson View Post
    just use the unique rank you already have in column a and index match against that
    see cols g:h
    Thanks Martin for the Quick and very helpful reply .If possible i have one more issue i need to list all the entire 20 names in Coloumn G but if in the corresponding amount coloumn H " #NUM! " is coming then I need that cell to show as blank cell, but the formula should be there. Is there any work around for this

  5. #5
    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 find top 25 Values from more than 1000 rows with their corresponding names

    one way is to count how many in col a
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    04-30-2011
    Location
    Bangalore
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: how to find top 25 Values from more than 1000 rows with their corresponding names

    Thanks dave for the fast reply but when i use the first formula ots showin all alpha (Coloumn I sheet 3)

    In the second formula the delta and charlie is displayed twice in the adjacent coloums (Sheet 2, E) eventhough their value is very different and also i am not able to populate the amount in the next coloumn "F" . :-)
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    04-30-2011
    Location
    Bangalore
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: how to find top 25 Values from more than 1000 rows with their corresponding names

    Quote Originally Posted by martindwilson View Post
    one way is to count how many in col a
    Hi Martin,

    Can i use iserror function in the formula you suggested "=INDEX($B$2:$C$21,MATCH(SMALL($A$2:$A$21,ROW(B1)),$A$2:$A$21,0),COLUMN(B1))"

    =IF(ISERROR (INDEX($B$2:$C$21,MATCH(SMALL($A$2:$A$21,ROW(B1)),$A$2:$A$21,0),COLUMN(B1)," ",(INDEX($B$2:$C$21,MATCH(SMALL($A$2:$A$21,ROW(B1)),$A$2:$A$21,0),COLUMN(B1))

    but when i tried its not working for me :-( Am i doing anything wrong?

  8. #8
    Forum Contributor
    Join Date
    05-04-2009
    Location
    ME
    MS-Off Ver
    Excel 2003,2007
    Posts
    157

    Re: how to find top 25 Values from more than 1000 rows with their corresponding names

    Hi,

    You can try the below formula.

    =IFERROR(INDEX($B$2:$C$21,MATCH(SMALL($A$2:$A$21,ROW(B6)),$A$2:$A$21,0),COLUMN(B6)),"")


    Thanks

  9. #9
    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 find top 25 Values from more than 1000 rows with their corresponding names

    missing and incorrect () should be
    =IF(ISERROR(INDEX($B$2:$C$21,MATCH(SMALL($A$2:$A$21,ROW(B1)),$A$2:$A$21,0),COLUMN(B1)))," ",INDEX($B$2:$C$21,MATCH(SMALL($A$2:$A$21,ROW(B1)),$A$2:$A$21,0),COLUMN(B1))

  10. #10
    Registered User
    Join Date
    04-30-2011
    Location
    Bangalore
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: how to find top 25 Values from more than 1000 rows with their corresponding names

    Quote Originally Posted by nawas View Post
    Hi,

    You can try the below formula.

    =IFERROR(INDEX($B$2:$C$21,MATCH(SMALL($A$2:$A$21,ROW(B6)),$A$2:$A$21,0),COLUMN(B6)),"")


    Thanks
    Hi Nawas,
    Thanks but when i tried its not working on the sheet

  11. #11
    Registered User
    Join Date
    04-30-2011
    Location
    Bangalore
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: how to find top 25 Values from more than 1000 rows with their corresponding names

    Quote Originally Posted by martindwilson View Post
    missing and incorrect () should be
    =IF(ISERROR(INDEX($B$2:$C$21,MATCH(SMALL($A$2:$A$21,ROW(B1)),$A$2:$A$21,0),COLUMN(B1)))," ",INDEX($B$2:$C$21,MATCH(SMALL($A$2:$A$21,ROW(B1)),$A$2:$A$21,0),COLUMN(B1))
    Thanks Martin, You are a superstar it works fine with the last formula
    just need to add one more ) at the end . Thanks again

  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 find top 25 Values from more than 1000 rows with their corresponding names

    fyi iferror will not work in excel 2003

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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