Excel array index/match vlookup to another table and multiply results

VA3GJG

New Member
Joined
Apr 3, 2018
Messages
2
I have 2 tables:

  • Table1 - FG parts with QOH

    AB
    1FGFG_QOH
    2a1
    3b2
    4c3
    5d4
    6e5
    7f6

    <tbody>
    </tbody>
  • Table2 - BOM of Comp related to FG and CompQtyPer

DEF
1FGCompCompQtyPer
2fx2
3ey2
4dz2
5bx3
6cy3
7az3

<tbody>
</tbody>

Comp is known and want to sum table1 FG_QOH where the FG matches the Comp in Table2 multiplied against CompQtyPer


HI
1CompTotQty
2y19

<tbody>
</tbody>


Table2 cell E3 is related to FG 'e' and has CompQtyPer=2.
Table1 FG 'e' has FG_QOH=5.
So 2*5 = 10 - Table2 cell E6 is related to FG 'c' and has CompQtyPer=3. Table1 FG 'c' has FG_QOH=3. So 3*3 = 9 TotQty = 19 (10+9)
 

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.
Try:

ABCDEFGHIJ
1FGFG_QOHFGCompCompQtyPerCompTotQty
2a1fx2y19
3b2ey2
4c3dz2
5d4bx3
6e5cy3
7f6az3

<tbody>
</tbody>
Sheet1

Array Formulas
CellFormula
I2{=SUM(<fo
F2:F7*SUMIF(A2:A7,IF(E2:E7=H2,D2:D7,"xxx"),B2:B7))}</fo

<tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>


The "xxx" being some value that will never occur in column A.
 
Upvote 0

Forum statistics

Threads
1,214,542
Messages
6,120,116
Members
448,945
Latest member
Vmanchoppy

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