Lookup Formula?

Katich

Board Regular
Joined
Jan 22, 2008
Messages
154
Office Version
  1. 2019
Platform
  1. Windows
Hello,

I have a report which needs data populated into it from a downloaded file. My report looks a little like this. I need to pull the data from the second table into this report. I was going to do a lookup but since the Part# duplicates i knew it wasn't going to be that easy. So since Row one is what determines what each station result is, i thought maybe an IF statement with a lookup within. But then i started just getting confused. Any help would be greatly appreciated.

Thank you!

[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD][/TD]
[TD]P010[/TD]
[TD]P010A[/TD]
[TD]P010B[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Part#[/TD]
[TD]Station 1[/TD]
[TD]Station 2[/TD]
[TD]Station 3[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]12345[/TD]
[TD]430[/TD]
[TD]185[/TD]
[TD]75[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


The report my data comes from looks like this

[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Part#[/TD]
[TD]Spec#[/TD]
[TD]Description[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]12345[/TD]
[TD]P010[/TD]
[TD]430[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]12345[/TD]
[TD]P010A[/TD]
[TD]185[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]12345[/TD]
[TD]P010B[/TD]
[TD]75[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
I assume if the part number/Spec number is not found you want to return blank.


Excel 2010
ABCD
1Part#Spec#Description
212345P010430
312345P010A185
412345P010B75
577796P010A77
6
7
8
9P010P010AP010B
10Part#Station 1Station 2Station 3
111234543018575
1277796 77 
Sheet1
Cell Formulas
RangeFormula
B11{=IFERROR(INDEX($C$2:$C$5,MATCH($A11&B$9,$A$2:$A$5&$B$2:$B$5,0)),"")}
B12{=IFERROR(INDEX($C$2:$C$5,MATCH($A12&B$9,$A$2:$A$5&$B$2:$B$5,0)),"")}
C11{=IFERROR(INDEX($C$2:$C$5,MATCH($A11&C$9,$A$2:$A$5&$B$2:$B$5,0)),"")}
C12{=IFERROR(INDEX($C$2:$C$5,MATCH($A12&C$9,$A$2:$A$5&$B$2:$B$5,0)),"")}
D11{=IFERROR(INDEX($C$2:$C$5,MATCH($A11&D$9,$A$2:$A$5&$B$2:$B$5,0)),"")}
D12{=IFERROR(INDEX($C$2:$C$5,MATCH($A12&D$9,$A$2:$A$5&$B$2:$B$5,0)),"")}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
If I got it correctly, this should do it


Excel 2013/2016
ABCDEFGHI
1P010P010AP010BPart#Spec#Description
2Part#Station 1Station 2Station 312345P010430
3123454301857512345P010A185
412345P010B75
5
6
Sheet1
Cell Formulas
RangeFormula
B3=SUMIFS($I$2:$I$4,$G$2:$G$4,$A3,$H$2:$H$4,B$1)
C3=SUMIFS($I$2:$I$4,$G$2:$G$4,$A3,$H$2:$H$4,C$1)
D3=SUMIFS($I$2:$I$4,$G$2:$G$4,$A3,$H$2:$H$4,D$1)
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,304
Members
452,633
Latest member
DougMo

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