#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jill_
 
Posts: n/a
Default look up formulas

I need a forumula that will give me mulitipal answers.

I have a constant value that is looking that value up in a chart and from
that constant value I need it to return the corresponding names.

ie #01001

Chart
01001 name 1
00001 name 2
11000 name 3
01001 name 4
01001 name 5

I am needing it to list NAME 1, NAME 4 and NAME 5

How do I write this?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Domenic
 
Posts: n/a
Default look up formulas

Assuming that A2:B6 contains the data, try the following formula, which
needs to be confirmed with CONTROL+SHIFT+ENTER, not just ENTER...

E2, copied down:

=IF(ROWS(E$2:E2)<=COUNTIF($A$2:$A$6,$D$2),INDEX($B $2:$B$6,SMALL(IF($A$2:$
A$6=$D$2,ROW($A$2:$A$6)-ROW($A$2)+1),ROWS(E$2:E2))),"")

....where D2 contains the value of interest, such as 01001.

Hope this helps!

In article ,
Jill_ wrote:

I need a forumula that will give me mulitipal answers.

I have a constant value that is looking that value up in a chart and from
that constant value I need it to return the corresponding names.

ie #01001

Chart
01001 name 1
00001 name 2
11000 name 3
01001 name 4
01001 name 5

I am needing it to list NAME 1, NAME 4 and NAME 5

How do I write this?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jill_
 
Posts: n/a
Default look up formulas

Thanks Domenic, you are awesome! That helped out a lot!

"Domenic" wrote:

Assuming that A2:B6 contains the data, try the following formula, which
needs to be confirmed with CONTROL+SHIFT+ENTER, not just ENTER...

E2, copied down:

=IF(ROWS(E$2:E2)<=COUNTIF($A$2:$A$6,$D$2),INDEX($B $2:$B$6,SMALL(IF($A$2:$
A$6=$D$2,ROW($A$2:$A$6)-ROW($A$2)+1),ROWS(E$2:E2))),"")

....where D2 contains the value of interest, such as 01001.

Hope this helps!

In article ,
Jill_ wrote:

I need a forumula that will give me mulitipal answers.

I have a constant value that is looking that value up in a chart and from
that constant value I need it to return the corresponding names.

ie #01001

Chart
01001 name 1
00001 name 2
11000 name 3
01001 name 4
01001 name 5

I am needing it to list NAME 1, NAME 4 and NAME 5

How do I write this?


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
Formulas not recognizing new data malakingaso Excel Discussion (Misc queries) 1 February 8th 06 07:27 PM
Countif formulas change after doing a sort Bob Smith Excel Worksheet Functions 3 January 3rd 06 11:17 PM
Array Formulas take waaaay too long... belly0fdesire Excel Worksheet Functions 7 August 8th 05 10:11 PM
Problem with named formula's nathan Excel Worksheet Functions 0 January 21st 05 04:07 PM
calculating formulas for all workbooks in a folder Chad Excel Worksheet Functions 3 November 13th 04 05:22 PM


All times are GMT +1. The time now is 12:56 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"