Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
match??
I have 2 separate worksheets with similar information. My Plant column in
worksheet 1 has some empty cells. I want to return a value for Plant from my 2nd worksheet where 2 values in a row from the 1st worksheet matches 2 values in 2 columns of the 2nd worksheet. Example: worksheet 1 a b c d e 1 code item# name SUBC plant 2 a12 1001 s1f 1 aok 3 a12 1002 s1f2 k bal 4 a12 1003 tex 1 bal 5 a14 1004 saf s aok 6 a14 1005 plc 1 7 a15 1006 wak 1 bal worksheet 2 a b c d e 1 code item# name SUBC plant 2 a12 1001 s1f 1 bal 3 a12 1007 win k aok 4 a14 1005 plc 1 aok For cell e6 in worksheet 1, I want to return the value of column e in worsheet 2 where, 1. b6 in wksht1 = value from b:b in wksht 2 and 2. d6 in wksht1 = value from d:d in wksht2 I hope this makes sense. Any ideas? |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
match??
Try this array formula** :
=INDEX(Sheet2!E2:E4,MATCH(1,IF(Sheet2!B2:B4=B6,IF( Sheet2!D2:D4=D6,1)),0)) ** array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT key then hit ENTER. -- Biff Microsoft Excel MVP "brownmre" wrote in message ... I have 2 separate worksheets with similar information. My Plant column in worksheet 1 has some empty cells. I want to return a value for Plant from my 2nd worksheet where 2 values in a row from the 1st worksheet matches 2 values in 2 columns of the 2nd worksheet. Example: worksheet 1 a b c d e 1 code item# name SUBC plant 2 a12 1001 s1f 1 aok 3 a12 1002 s1f2 k bal 4 a12 1003 tex 1 bal 5 a14 1004 saf s aok 6 a14 1005 plc 1 7 a15 1006 wak 1 bal worksheet 2 a b c d e 1 code item# name SUBC plant 2 a12 1001 s1f 1 bal 3 a12 1007 win k aok 4 a14 1005 plc 1 aok For cell e6 in worksheet 1, I want to return the value of column e in worsheet 2 where, 1. b6 in wksht1 = value from b:b in wksht 2 and 2. d6 in wksht1 = value from d:d in wksht2 I hope this makes sense. Any ideas? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Lookup Formula: Return 1st match, then 2nd match, then 3rd match | Excel Discussion (Misc queries) | |||
index(match) Wind Uplift Calculations (match four conditions) | Excel Worksheet Functions | |||
MATCH Multiple Criteria & Return Previous / Penultimate Match | Excel Worksheet Functions | |||
index match array function-returning only first match, need last. | Excel Worksheet Functions | |||
Lookup? Match? pulling rows from one spreadsheet to match a text f | Excel Worksheet Functions |