Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Sonya795
 
Posts: n/a
Default Multiple matches using LOOKUP


Hello everyone,
Here is what I am trying to accomplish.

Based on Column A or ORDER_NOTE I need to find the respective match in
column C.
It perfectly works for 1 match.
What if I have three or more matches how to force excel to look for
others?
This formula is inside of macro.
I can use count function to find out how many times 'ORDER_NOTE'
appeared.

ActiveCell.FormulaR1C1 =
"=LOOKUP(""ORDER_NOTE"",Range(""A:A""),Range(""C:C ""))"

Also, is it possible to concatenate all the finding of column C that
match 'ORDER_NOTE' in column A?


Also, is there a way to assign an address a cell?

Thank you,

Sonya


--
Sonya795
------------------------------------------------------------------------
Sonya795's Profile: http://www.excelforum.com/member.php...o&userid=26110
View this thread: http://www.excelforum.com/showthread...hreadid=394561

  #2   Report Post  
Alan Beban
 
Posts: n/a
Default

If the cell containing the lookup value (ORDER_Note in your case) is
named "luVal", the range containing the data (A:C in your case) is named
"Tbl", and the cell containing the number of the lookup column within
Tbl (3 in your case) is named "luCol",
then using built-in functions, array enter and fill down:

=IF(ROWS(A$1:A1)<=COUNTIF(INDEX(Tbl,0,1),luVal),IN DEX(INDEX(Tbl,0,luCol),SMALL(IF(INDEX(Tbl,0,1)=luV al,ROW(INDIRECT("A1:A"&ROWS(Tbl)))),ROWS(A$1:A1))) ,"")

or, if the functions in the freely downloadable file at
http://home.pacbell.net/beban are available to your workbook, enter and
fill down:

=IF(ISERROR(INDEX(vlookups(luVal,Tbl,luCol),ROW(A1 ))),"",INDEX(vlookups(luVal,Tbl,luCol),ROW(A1)))

Alan Beban

Sonya795 wrote:
Hello everyone,
Here is what I am trying to accomplish.

Based on Column A or ORDER_NOTE I need to find the respective match in
column C.
It perfectly works for 1 match.
What if I have three or more matches how to force excel to look for
others? . . .

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
Multiple matches using LOOKUP Sonya795 Excel Worksheet Functions 0 August 9th 05 10:17 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM
Multiple lookup value's rucker31 Excel Worksheet Functions 0 March 11th 05 11:17 PM
lookup multiple occurrences of a value excel ckl Excel Worksheet Functions 5 February 3rd 05 05:19 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 09:28 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"