Multiple look up

Johnboy28

Board Regular
Joined
Jun 22, 2013
Messages
172
Office Version
  1. 365
  2. 2019
  3. 2016
  4. 2013
  5. 2010
Platform
  1. Windows
Hi, Does anyone know what formula I can use to sum up the Qty based on code and area. Note - Qty can only include these area (CS, C1 & CC7) - Exclude all others.

Data Table
CodeProductAreaQty
24680Sample 1CS2
24931Sample 2CS47
24970Sample 3C1144
24680Sample 1CC124
24902Sample 5CC137
26562Sample 6MP0
26562Sample 7CC70
Summary
CODEPRODUCTQTY
24680Sample 1??
24931Sample 2??
24970Sample 3??
24902Sample 5
26562Sample 6
26562Sample 6
Area (Only include)
CS
C1
CC7
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
I thought of using a pivot - The raw data is not in the best layout.
 
Upvote 0
Just filter out the unneeded Areas ( use Tabular layout, it's easier )
 
Upvote 0
Just filter out the unneeded Areas ( use Tabular layout, it's easier )
Thanks for the reply. Hopefully the below makes more sense.. I was hoping to use a formula to match Product code & area (Only the 3 selected area) ignoring the rest to sum up Qty. I have included the answer for the 1st 3. Thank you

Data Table
Product CodeAreaQty
24680CS2
24931CS47
24970C1144
24680CC124
24902CC137
26562MP55
26562CS88
99888MP45
Summary
Product CODEQTYArea (Only these areas to be included in Summary)
246802CS
998880C1
2493147CC7
24902??
26562??
24902??
 
Upvote 0
How about

+Fluff New.xlsm
ABCDEFGHI
1CodeProductAreaQtyCODEPRODUCTQTY
224680Sample 1CS224680Sample 12
324931Sample 2CS4724931Sample 247
424970Sample 3C114424970Sample 3144
524680Sample 1CC12424902Sample 50
624902Sample 5CC13726562Sample 62
726562Sample 6MP11
826562Sample 7CC72
9
Main
Cell Formulas
RangeFormula
I2:I6I2=SUM(SUMIFS(D:D,A:A,G2,C:C,{"CS","C1","CC7"}))
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,583
Messages
6,120,380
Members
448,955
Latest member
BatCoder

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