Advanced Lookup Function

cainstratton

New Member
Joined
Feb 28, 2018
Messages
1
I need a way to move data from dataset 1 to dataset 2 using a formula in dataset 2 that references dataset 1 via label (quantity, price, shipping cost per unit) and item code. Does anyone have any suggestions?

https://imgur.com/a/CpVRn
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

Excel 2010
ABCDEF
1item code12345
2Quantity131233201323456769908
3Price1.51.22.32.12
4Shipping3.333.333.333.333.33
Sheet1



Excel 2010
ABCD
1item codeQuantityPriceShipping
21131231.53.33
3232011.23.33
4332342.33.33
5456762.13.33
65990823.33
Sheet2
Cell Formulas
RangeFormula
B2=INDEX(Sheet1!$B$2:$F$4,MATCH(B$1,Sheet1!$A$2:$A$4,0),MATCH($A2,Sheet1!$B$1:$F$1,0))
B3=INDEX(Sheet1!$B$2:$F$4,MATCH(B$1,Sheet1!$A$2:$A$4,0),MATCH($A3,Sheet1!$B$1:$F$1,0))
B4=INDEX(Sheet1!$B$2:$F$4,MATCH(B$1,Sheet1!$A$2:$A$4,0),MATCH($A4,Sheet1!$B$1:$F$1,0))
B5=INDEX(Sheet1!$B$2:$F$4,MATCH(B$1,Sheet1!$A$2:$A$4,0),MATCH($A5,Sheet1!$B$1:$F$1,0))
B6=INDEX(Sheet1!$B$2:$F$4,MATCH(B$1,Sheet1!$A$2:$A$4,0),MATCH($A6,Sheet1!$B$1:$F$1,0))
C2=INDEX(Sheet1!$B$2:$F$4,MATCH(C$1,Sheet1!$A$2:$A$4,0),MATCH($A2,Sheet1!$B$1:$F$1,0))
C3=INDEX(Sheet1!$B$2:$F$4,MATCH(C$1,Sheet1!$A$2:$A$4,0),MATCH($A3,Sheet1!$B$1:$F$1,0))
C4=INDEX(Sheet1!$B$2:$F$4,MATCH(C$1,Sheet1!$A$2:$A$4,0),MATCH($A4,Sheet1!$B$1:$F$1,0))
C5=INDEX(Sheet1!$B$2:$F$4,MATCH(C$1,Sheet1!$A$2:$A$4,0),MATCH($A5,Sheet1!$B$1:$F$1,0))
C6=INDEX(Sheet1!$B$2:$F$4,MATCH(C$1,Sheet1!$A$2:$A$4,0),MATCH($A6,Sheet1!$B$1:$F$1,0))
D2=INDEX(Sheet1!$B$2:$F$4,MATCH(D$1,Sheet1!$A$2:$A$4,0),MATCH($A2,Sheet1!$B$1:$F$1,0))
D3=INDEX(Sheet1!$B$2:$F$4,MATCH(D$1,Sheet1!$A$2:$A$4,0),MATCH($A3,Sheet1!$B$1:$F$1,0))
D4=INDEX(Sheet1!$B$2:$F$4,MATCH(D$1,Sheet1!$A$2:$A$4,0),MATCH($A4,Sheet1!$B$1:$F$1,0))
D5=INDEX(Sheet1!$B$2:$F$4,MATCH(D$1,Sheet1!$A$2:$A$4,0),MATCH($A5,Sheet1!$B$1:$F$1,0))
D6=INDEX(Sheet1!$B$2:$F$4,MATCH(D$1,Sheet1!$A$2:$A$4,0),MATCH($A6,Sheet1!$B$1:$F$1,0))
 
Upvote 0

Forum statistics

Threads
1,216,741
Messages
6,132,450
Members
449,729
Latest member
davelevnt

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top