Hi
I have 3 columns in a table, that I need to match up with in another worksheet.
For instance:
Sheet 1:
A1 = 1
B1 = 2
C1 = 3
Sheet 2:
A50 = 1
B50 = 2
C50 = 3
D50 = 6
I've tried using VLOOKUP
but this is not working and returns #VALUE! error=VLOOKUP(A1:C1,'Sheet2'!A1:D1,4,FALSE)
Any ideas?![]()
A standard VLOOKUP would not suffice I'm afraid given multi conditional test.
You could concatenate A:C on Sheet2 in a new column, say E:
ThenSheet2!E1: =A1&"@"&B1&"@"&C1 copied down for all rows
If you opt against the concatenation you'd be looking at a less efficient approach, eg:Sheet1!D1: =INDEX(Sheet2!$D:$D,MATCH(A1&"@"&B1&"@"&C1,Sheet2!$E:$E,0))
Note for the 2nd approach we restrict the ranges as much as possible given the inefficient nature of the calculation.=INDEX(Sheet2!$D$1:$D$100,MATCH(TRUE,INDEX(Sheet2!$A$1:$A$100&"@"&Sheet2!$B$1:$B$100&"@"&Sheet2!$C$1:$C$100=$A1&"@"&B1&"@"&C1,0),0))
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks