Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default lookup without repeats

Hi!

Below is a table of data that I have:

Name1 5
Name2 10
Name3 15
Name4 20
Name5 5
Name6 5
Name7 25
Name8 30
Name9 40
Name10 50

I am then resorting the second column in descending order and then
matching (using INDEX and MATCH) the name to the number. My problem
arises where I have the same number (Name1, Name5, and Name6 all have
a value of 5). I think I need to use OFFSET here, but I'm not sure
exactly how.

Thanks in advance!

Brett
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default lookup without repeats

It depends on exactly what you're doing.

Are you wanting to lookup a name for *any* value or are you looking up *all*
the names based on the vales in descending order?

For example, you want to know who had a value of 25, so you do a lookup on
the value 25. Or, are you doing this:

lookup name for high value 1
lookup name for high value 2
lookup name for high value 3
lookup name for high value 4
lookup name for high value 5
etc
etc

--
Biff
Microsoft Excel MVP


"Brett" wrote in message
...
Hi!

Below is a table of data that I have:

Name1 5
Name2 10
Name3 15
Name4 20
Name5 5
Name6 5
Name7 25
Name8 30
Name9 40
Name10 50

I am then resorting the second column in descending order and then
matching (using INDEX and MATCH) the name to the number. My problem
arises where I have the same number (Name1, Name5, and Name6 all have
a value of 5). I think I need to use OFFSET here, but I'm not sure
exactly how.

Thanks in advance!

Brett



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default lookup without repeats

On 21 Jan, 14:29, "T. Valko" wrote:
It depends on exactly what you're doing.

Are you wanting to lookup a name for *any* value or are you looking up *all*
the names based on the vales in descending order?

For example, you want to know who had a value of 25, so you do a lookup on
the value 25. Or, are you doing this:

lookup name for high value 1
lookup name for high value 2
lookup name for high value 3
lookup name for high value 4
lookup name for high value 5
etc
etc

--
Biff
Microsoft Excel MVP

"Brett" wrote in message

...



Hi!


Below is a table of data that I have:


Name1 5
Name2 10
Name3 15
Name4 20
Name5 5
Name6 5
Name7 25
Name8 30
Name9 40
Name10 50


I am then resorting the second column in descending order and then
matching (using INDEX and MATCH) the name to the number. *My problem
arises where I have the same number (Name1, Name5, and Name6 all have
a value of 5). *I think I need to use OFFSET here, but I'm not sure
exactly how.


Thanks in advance!


Brett- Hide quoted text -


- Show quoted text -


Hi Bill,

I am doing your second example:
Name for =Large(Names,1)
Name for =Large(Names,2)
etc...

Thanks!
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default lookup without repeats

Here's one way...

Assume names are in the range A2:A11 (named Names)
Numbers in the range B2:B11 (named Nums)

D2:D11 = Nums in descending order

Enter this array formula** in E2 and copy down to E11:

=INDEX(Names,MATCH(LARGE(Nums-ROW(Nums)/10^10,ROWS(E$2:E2)),Nums-ROW(Nums)/10^10,0))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP


"Brett" wrote in message
...
On 21 Jan, 14:29, "T. Valko" wrote:
It depends on exactly what you're doing.

Are you wanting to lookup a name for *any* value or are you looking up
*all*
the names based on the vales in descending order?

For example, you want to know who had a value of 25, so you do a lookup on
the value 25. Or, are you doing this:

lookup name for high value 1
lookup name for high value 2
lookup name for high value 3
lookup name for high value 4
lookup name for high value 5
etc
etc

--
Biff
Microsoft Excel MVP

"Brett" wrote in message

...



Hi!


Below is a table of data that I have:


Name1 5
Name2 10
Name3 15
Name4 20
Name5 5
Name6 5
Name7 25
Name8 30
Name9 40
Name10 50


I am then resorting the second column in descending order and then
matching (using INDEX and MATCH) the name to the number. My problem
arises where I have the same number (Name1, Name5, and Name6 all have
a value of 5). I think I need to use OFFSET here, but I'm not sure
exactly how.


Thanks in advance!


Brett- Hide quoted text -


- Show quoted text -


Hi Bill,

I am doing your second example:
Name for =Large(Names,1)
Name for =Large(Names,2)
etc...

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
copy and paste VBA repeats and repeats Marilyn Excel Discussion (Misc queries) 4 June 7th 09 03:49 PM
lookup values vertically in a list and return the repeats April_2004 Excel Worksheet Functions 1 November 13th 08 06:48 PM
NO REPEATS HOMER Charts and Charting in Excel 3 July 11th 08 09:55 PM
No repeats of name in same colum Headworth Excel Discussion (Misc queries) 2 June 22nd 08 12:19 PM
Count repeats Daniel Bonallack Excel Worksheet Functions 7 December 10th 04 05:13 PM


All times are GMT +1. The time now is 05:59 PM.

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

About Us

"It's about Microsoft Excel"