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!

ABCD
1P010P010AP010B
2Part#Station 1Station 2Station 3
31234543018575
4
5

<tbody>
</tbody>


The report my data comes from looks like this

ABCD
1Part#Spec#Description
212345P010430
312345P010A185
412345P010B75

<tbody>
</tbody>
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
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,215,019
Messages
6,122,707
Members
449,093
Latest member
Mnur

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