sum if 2 conditions are met

Fawlty1

Board Regular
Joined
Aug 12, 2002
Messages
59
I am trying to make a template consisting of sheet1 (Product) Sheet2 (Product 2) and sheet3 (Return info)- Sheets(Product & Product 2) will of course be renamed by the user with the name of the product involved. -
- Sheet 'Return info' shows store #'s, Product and Units returned - Sheet 'Product'shows Invoice #'s, Store #'s, Units Returned, etc there is also a cell where the user will enter the product name. I'm trying to come up with a formula that will sum the total returns for a given store and product shown in sheet 'Return info' and put that info on sheet (Product) in the cell 'Units Returned' - - - Below is the formula I tried but it is not working correctly. Can someone see what I am doing wrong or have another formula I could use. Thanks for any suggestions----
=SUM(('RETURN INFO'!B$2:B$150=PRODUCT!A9)*('RETURN INFO'!C3:C150=PRODUCT!D$2)*'RETURN INFO'!D$2:D$150) I then pressed CTRL-SHIFT-ENTER -
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
try this:

=SUMPRODUCT(('RETURN INFO'!B$2:B$150=PRODUCT!A9)*('RETURN INFO'!C2:C150=PRODUCT!D$2)*'RETURN INFO'!D$2:D$150)

Paddy
 
Upvote 0
Thanks Paddy for your fast reply, I tried your suggestion and at 1st it seemed to work but when i copied formula down several rows it didnt work correctly. I then noticed that I was missing an $ in the formula.
 
Upvote 0

Forum statistics

Threads
1,214,971
Messages
6,122,517
Members
449,088
Latest member
RandomExceller01

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