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.![]()
Last edited by jessetrunk; 11-09-2009 at 08:02 PM.
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
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???
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
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
Dude, you may have just gotten me a promotion. The formula worked great. Thanks again
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks