Sumproduct the column with criteria in a row

fayez_MrExcel

Active Member
Joined
Oct 29, 2005
Messages
444
Office Version
  1. 365
Platform
  1. Windows
How can i sumproduct a particular column that matches a criteria. i have a heading with Product Name, code1, code2, code3 in sheet1. And in sheet2 (where i will put the formula), i have a heading Code and amount. I want to sum all Product name (example all books) that is under the code1
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Perhaps something like = SUM(INDEX(A1:D100,,MATCH("code1",a1:a4,0)) where your table is A1:D100
 
Upvote 0
_______Code1 | Code2 | Code3
Books___ 5_____ 3______ 7
Pencil___ 2_____ 6______ 5
Books___ 6_____ 8______


Sheet 2
Code | Amount
Code1 11 ( that is the sum of books under code1)

Sorry for the example table
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,315
Members
452,634
Latest member
cpostell

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