Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Mike Quinn, SrA, USAF
 
Posts: n/a
Default Lookup with multiple value return

I have a worksheet that has names & information in columns A-D. In the
adjacent columns it has blocks for each day of the month. Next to the names
each cell has a value of either "1", "L", or "T". I am trying to set up a
lookup formula to return all of the names in column A that have a cell value
of "L" depending on the corresponding day. Say:

A B C D E F G H I J K
Feb 2004 1 2 3 4 5 6 7
ADAMS D 3 Off 1 1 1 1 1 L L
JONHSON J 5 Sup 1 1 L L L L 1
WILLIAMS C 7 Road 1 L L L 1 1 1



I want it to tell me:

1 Feb:
2 Feb: Willaims
3 Feb: Johnson, Willaims
4 Feb: Johnson, Willaims
5 Feb: Johnson
6 Feb: Adams, Johnson
7 Feb: Adams

I am currently using this formula:

=IF('[workbook.xls]Jan 03:Dec 05'!2:2=TODAY(),LOOKUP("L",'[workbook.xls]Jan
03:Dec 05'!$2:$2,'[workbook.xls]Jan 03:Dec 05'!$A:$AK), FALSE())

Column 2 of "workbook.xls" is a hidden column with the proper date format
(2/1/05). Any suggestions?
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

You can't do that using vlookuo, there are some workarounds using a
combination of index and small but I would recommend to use a filter, either
auto (easier) or advanced. If you apply autofilter you can filter on L you
can then copy the visible
info somewhere else. To use the formula see

http://tinyurl.com/56nv4

--

Regards,

Peo Sjoblom


<Mike Quinn; <SrA; "USAF"
wrote in message ...
I have a worksheet that has names & information in columns A-D. In the
adjacent columns it has blocks for each day of the month. Next to the

names
each cell has a value of either "1", "L", or "T". I am trying to set up a
lookup formula to return all of the names in column A that have a cell

value
of "L" depending on the corresponding day. Say:

A B C D E F G H I J K
Feb 2004 1 2 3 4 5 6 7
ADAMS D 3 Off 1 1 1 1 1 L L
JONHSON J 5 Sup 1 1 L L L L 1
WILLIAMS C 7 Road 1 L L L 1 1 1



I want it to tell me:

1 Feb:
2 Feb: Willaims
3 Feb: Johnson, Willaims
4 Feb: Johnson, Willaims
5 Feb: Johnson
6 Feb: Adams, Johnson
7 Feb: Adams

I am currently using this formula:

=IF('[workbook.xls]Jan 03:Dec

05'!2:2=TODAY(),LOOKUP("L",'[workbook.xls]Jan
03:Dec 05'!$2:$2,'[workbook.xls]Jan 03:Dec 05'!$A:$AK), FALSE())

Column 2 of "workbook.xls" is a hidden column with the proper date format
(2/1/05). Any suggestions?



  #3   Report Post  
Ola
 
Posts: n/a
Default

It will work but it's a bit ... complicated:

=IF(COUNTIF(OFFSET($D$2:$D$4,0,$A9),"=L")<B$8,".", OFFSET($A$1,SMALL(IF(OFFSET($D$2:$D$4,0,$A9)="L",R OW(INDIRECT("1:"&ROWS($A$2:$A$4))),""),B$8),0))


Upper left corner of this table is A8:
1 2 3 4
1 . . . .
2 WILLIAMS C . . .
3 JONHSON J WILLIAMS C . .
4 JONHSON J WILLIAMS C . .
5 JONHSON J . . .
6 ADAMS D JONHSON J . .
7 ADAMS D . . .


Ola Sandstrom

Note !
Since this is an Array formula you Must end the formulas by holding down
Ctrl+Shift and then press Enter.

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
Return Multiple Results with Lookup Josh O. Excel Worksheet Functions 1 February 4th 05 08:07 PM
lookup multiple occurrences of a value excel ckl Excel Worksheet Functions 5 February 3rd 05 05:19 AM
Formula to return cell contents based on multiple conditions Bill Excel Worksheet Functions 3 January 19th 05 09:59 AM
Can VLOOKUP return multiple answers based on several identical lo. jddtct Excel Worksheet Functions 3 January 11th 05 07:03 AM
Lookup values in a list and return multiple rows of data Amanda L Excel Worksheet Functions 2 December 2nd 04 04:48 PM


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