+ Reply to Thread
Results 1 to 5 of 5

Thread: Pivot table

  1. #1
    Registered User
    Join Date
    11-07-2009
    Location
    Pa USA
    MS-Off Ver
    Excel 2003
    Posts
    12

    Pivot table

    I've got two columns with data. The first is text, and the second is numbers. So I want to be able to enter a certain criteria that would be contained in the text, and have excel return a list of the rows of text that contain that criteria and that have the highest 3 values in the corresponding column. I can use multiple cells to do this if need be (i.e. one cell for the text with the highest value, one for the second highest value, and a third for the next highest value).

    See attachment for further explanation.
    Attached Files Attached Files
    Last edited by jessetrunk; 11-09-2009 at 08:02 PM.

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

    Re: Pivot table

    try

    =LARGE(--(ISNUMBER(SEARCH("18a",A4:A25))*(B4:B25)),1) highest

    =LARGE(--(ISNUMBER(SEARCH("18a",A4:A25))*(B4:B25)),2) 2nd
    =LARGE(--(ISNUMBER(SEARCH("18a",A4:A25))*(B4:B25)),3) 3rd
    all these are array formulas see my sig. below for how to enter arrays
    Mojito connoisseur and a dabbler in Cisco
    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
    11-07-2009
    Location
    Pa USA
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Pivot table

    Thank you, that actually solved my next step in the worksheet. For the step I was inquiring about, though, I actually need to return a list of the description text itself for the 3 highest causes. I tried to use the formula you wrote and added the "offset" function to it with a -1 in the column criteria, hoping it would return the actual text in the cell, but I got an error message. Any suggestions???

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

    Re: Pivot table

    this works(but it suprised me it did!)
    =INDEX($A$4:$A$25, MATCH("*18a*" & D4, INDEX($A$4:$A$25 & $B$4:$B$25, 0), 0)) where d4 is the result of
    {=LARGE(--(ISNUMBER(SEARCH("18a",A4:A25))*(B4:B25)),1)}
    and so on
    Attached Files Attached Files
    Mojito connoisseur and a dabbler in Cisco
    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

  5. #5
    Registered User
    Join Date
    11-07-2009
    Location
    Pa USA
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Pivot table

    Dude, you may have just gotten me a promotion. The formula worked great. Thanks again

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.2.0