Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default lookup value if multiple matches are met


Hi all,

I have two spreadsheets. Spreadsheet 1 contains an invoice # (A:A) and Part
# (B:B). Spreadsheet 2 Contains the same information invoice # (C:C) and Part
# (E:E).

On Spreadsheet 1,each invoice contains multiple partnumbers.
ColA ColB
89853656 FS485AW#ABA
89853656 AH058AA
89853657 RA373AA#ABA
89853694 KD911A4#ABA
89853694 U4414E
89853694 CC532A
89853694 KP080AA#ABA

On spreadsheet 2, if my serial number, 89853694, exists on Sheet 1 lookup my
part number, U4414E. If my part number, U4414E is found, return U4414E -
else return "".

Thanks,


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,722
Default lookup value if multiple matches are met

Selecting a cell in row 2 of Sheet2, input this formula:

=IF(SUMPRODUCT(--('Sheet1'!A2:A200=C2),--('Sheet1'!B2:B200=E2))0,E2,"")

Adjust range sizes as necessary. Note that you can not callout entire
columns (A:A) in SUMPRODUCT, unless using XL 2007.

--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Go Bucks!!!" wrote:


Hi all,

I have two spreadsheets. Spreadsheet 1 contains an invoice # (A:A) and Part
# (B:B). Spreadsheet 2 Contains the same information invoice # (C:C) and Part
# (E:E).

On Spreadsheet 1,each invoice contains multiple partnumbers.
ColA ColB
89853656 FS485AW#ABA
89853656 AH058AA
89853657 RA373AA#ABA
89853694 KD911A4#ABA
89853694 U4414E
89853694 CC532A
89853694 KP080AA#ABA

On spreadsheet 2, if my serial number, 89853694, exists on Sheet 1 lookup my
part number, U4414E. If my part number, U4414E is found, return U4414E -
else return "".

Thanks,


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 28
Default lookup value if multiple matches are met

Thanks Luke - works great.

FYI I just found an alternate way while digging through postings ...

=INDEX($B$1:$B$100,MATCH(1,(Sheet1$A$1:$A$200=$C2) *(Sheet1$B$1:$B$200=$E2),0))


Both work. I prefer yours.

Thanks Luke for such a quick response.

-Go Bucks!!!


"Luke M" wrote:

Selecting a cell in row 2 of Sheet2, input this formula:

=IF(SUMPRODUCT(--('Sheet1'!A2:A200=C2),--('Sheet1'!B2:B200=E2))0,E2,"")

Adjust range sizes as necessary. Note that you can not callout entire
columns (A:A) in SUMPRODUCT, unless using XL 2007.

--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Go Bucks!!!" wrote:


Hi all,

I have two spreadsheets. Spreadsheet 1 contains an invoice # (A:A) and Part
# (B:B). Spreadsheet 2 Contains the same information invoice # (C:C) and Part
# (E:E).

On Spreadsheet 1,each invoice contains multiple partnumbers.
ColA ColB
89853656 FS485AW#ABA
89853656 AH058AA
89853657 RA373AA#ABA
89853694 KD911A4#ABA
89853694 U4414E
89853694 CC532A
89853694 KP080AA#ABA

On spreadsheet 2, if my serial number, 89853694, exists on Sheet 1 lookup my
part number, U4414E. If my part number, U4414E is found, return U4414E -
else return "".

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
Lookup with multiple matches Gary Excel Discussion (Misc queries) 2 March 11th 09 07:54 PM
How do I use lookup to return multiple matches and sum them? Nat Excel Discussion (Misc queries) 1 August 15th 06 06:23 PM
Multiple matches using LOOKUP Sonya795 Excel Discussion (Misc queries) 1 August 10th 05 06:13 PM
Multiple matches using LOOKUP Sonya795 Excel Worksheet Functions 0 August 9th 05 10:17 PM
Is it possible to do a vertical lookup that matches on 2 criteria lshaw Excel Worksheet Functions 4 May 16th 05 07:00 PM


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