Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 65
Default Top 5 values...corresponding cell text

In cells B2:B32 I have percentages. I have a formula in cells P2:P6 that
gives me the top 5 percentages in column B. I would like a formula in cells
O2:O6 that give me the text in column K that matches the percentage in column
P. My top 3 percentages are the same though so I need a formula to lookup
all three cases so I can't just use vlookup.

For example, I have 78% in cell P2. I would like O2 to have a formula that
looks for 78% in column B and gives me the corresponding text in column K.

Thanks.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Top 5 values...corresponding cell text

Put this in O2...

=INDEX(K$2:K$32,MATCH(P2,B$2:B$32,0))

and copy down to O6.

Rick


"Jambruins" wrote in message
...
In cells B2:B32 I have percentages. I have a formula in cells P2:P6 that
gives me the top 5 percentages in column B. I would like a formula in
cells
O2:O6 that give me the text in column K that matches the percentage in
column
P. My top 3 percentages are the same though so I need a formula to lookup
all three cases so I can't just use vlookup.

For example, I have 78% in cell P2. I would like O2 to have a formula
that
looks for 78% in column B and gives me the corresponding text in column K.

Thanks.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 65
Default Top 5 values...corresponding cell text

that works but if I have two of the same percentages it only finds the first
one twice. How do I get it to skip the first one and find the second one?
Thanks.

"Rick Rothstein (MVP - VB)" wrote:

Put this in O2...

=INDEX(K$2:K$32,MATCH(P2,B$2:B$32,0))

and copy down to O6.

Rick


"Jambruins" wrote in message
...
In cells B2:B32 I have percentages. I have a formula in cells P2:P6 that
gives me the top 5 percentages in column B. I would like a formula in
cells
O2:O6 that give me the text in column K that matches the percentage in
column
P. My top 3 percentages are the same though so I need a formula to lookup
all three cases so I can't just use vlookup.

For example, I have 78% in cell P2. I would like O2 to have a formula
that
looks for 78% in column B and gives me the corresponding text in column K.

Thanks.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Top 5 values...corresponding cell text

Here's a link to a sample file I posted several days ago for a similar
question:

xTopN.xls 18kb

http://cjoint.com/?elxqEIRIRX

You should be able to adapt the technique to your needs.

I've used named ranges in the formulas. The formula in column H is an array
formula. Array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)


--
Biff
Microsoft Excel MVP


"Jambruins" wrote in message
...
that works but if I have two of the same percentages it only finds the
first
one twice. How do I get it to skip the first one and find the second one?
Thanks.

"Rick Rothstein (MVP - VB)" wrote:

Put this in O2...

=INDEX(K$2:K$32,MATCH(P2,B$2:B$32,0))

and copy down to O6.

Rick


"Jambruins" wrote in message
...
In cells B2:B32 I have percentages. I have a formula in cells P2:P6
that
gives me the top 5 percentages in column B. I would like a formula in
cells
O2:O6 that give me the text in column K that matches the percentage in
column
P. My top 3 percentages are the same though so I need a formula to
lookup
all three cases so I can't just use vlookup.

For example, I have 78% in cell P2. I would like O2 to have a formula
that
looks for 78% in column B and gives me the corresponding text in column
K.

Thanks.





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Countif with multiple text values in cell Rothman Excel Discussion (Misc queries) 3 February 25th 08 03:46 AM
Values and Text in the Same Cell Sprint54 Excel Discussion (Misc queries) 5 February 12th 06 04:35 AM
Inserting two cell values into a new cell + text mmednick Excel Discussion (Misc queries) 6 December 6th 05 08:15 PM
Assign values to text within a cell Bob Excel Worksheet Functions 2 June 7th 05 09:51 PM
Append Text to Cell Values Using Replace Ngan Excel Discussion (Misc queries) 4 June 4th 05 08:30 PM


All times are GMT +1. The time now is 11:17 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"