LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Multiple LOOKUP in EXCEL

Here's one play to achieve the "horizontal" filter ..

Source table as posted in rows 1 & 2, data from col B across
Assume the desired activity letter will be input in A5: D (say)
Put in B5:
=IF(COLUMNS($A:A)COUNT(6:6),"",INDEX(1:1,SMALL(6: 6,COLUMNS($A:A))))

Put in B6:
=IF($A$5="","",IF(B2=$A$5,COLUMN(),""))
Leave A6 empty. Select B5:B6, copy across to IV6. In B5 across will appear
the required results from row 1, viz.: JA, EB, CJ ... with all results neatly
bunched to the left.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"drdegn" wrote:
I need to lookup multiple values in Excel, but LOOKUP only returns one value.
See my example where 3 persons perform activity "D":

Column: A B C D E F G H
Row 1: Person: JB JA OA EB AM CJ TG
Row 2: Activity: F D A D K D S

Question: Search for 'D' in row 2
Answer: Result from row 1: JA, EB, CJ

But how can I ask Excel to find these 3 persons, performing activity 'D'
I prefer the result in one cell separated by commas.

 
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
Lookup multiple values return one value corresponding value Excel DP7 Excel Worksheet Functions 1 October 23rd 06 09:52 PM
Excel lookup in multiple areas Kitbasher Excel Worksheet Functions 4 October 20th 06 06:48 PM
Multiple reference for lookup in excel Andrew Excel Worksheet Functions 0 March 17th 05 01:36 PM
Multiple reference for lookup in excel Andrew Excel Worksheet Functions 2 March 16th 05 07:19 PM
lookup multiple occurrences of a value excel ckl Excel Worksheet Functions 5 February 3rd 05 05:19 AM


All times are GMT +1. The time now is 12:25 AM.

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"