sumif() ?

photologue

New Member
Joined
Jun 12, 2014
Messages
13
I have the following spreadsheet ...

ABCDEFGH
1DateStageProductScrap costDateProductMaterial WasteProcess Waste
202/07/2014PrintedWhiteMug11oz£1.2002/07/2014LuggageTags
302/07/2014PrintedWhiteMug11oz£1.20FridgeMagnets
402/07/2014PrintedWhiteMug11oz£1.20Keyring
502/07/2014MaterialWhiteMug11oz£0.95Coaster
602/07/2014PrintedLuggageTags£1.21ToteBag
702/07/2014PrintedLuggageTags£1.21MouseMat
802/07/2014MaterialPhotopanel10x8£4.95Jigsaw
902/07/2014MaterialPhotopanel10x8£4.95WhiteMug11oz
#N/ABlackMug11oz
#N/AWhiteMug15oz
#N/APhotopanel7x5
#N/APhotopanel10x8

<colgroup><col><col><col><col><col><col span="3"><col></colgroup><tbody>
</tbody>


AS this spreadsheet will be recording product scrap over time and will have many entries over time, I wanted to do a quick table to show a summary of material and process waste for any given date, my table E1 to H14 above.
Have been playing with sumif and product functions but cannot get a result, for instance in cell G2 :-
If the date in A:A equals the date in E2
and
if the stage in B:B equals "Material"
and
if the product in C:C equals F2
then
sum all the relevant scrap costs from D:D

Help is very much appreciated
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
I have the following spreadsheet ...

ABCDEFGH
1DateStageProductScrap costDateProductMaterial WasteProcess Waste
202/07/2014PrintedWhiteMug11oz£1.2002/07/2014LuggageTags
302/07/2014PrintedWhiteMug11oz£1.20FridgeMagnets
402/07/2014PrintedWhiteMug11oz£1.20Keyring
502/07/2014MaterialWhiteMug11oz£0.95Coaster
602/07/2014PrintedLuggageTags£1.21ToteBag
702/07/2014PrintedLuggageTags£1.21MouseMat
802/07/2014MaterialPhotopanel10x8£4.95Jigsaw
902/07/2014MaterialPhotopanel10x8£4.95WhiteMug11oz
#N/ABlackMug11oz
#N/AWhiteMug15oz
#N/APhotopanel7x5
#N/APhotopanel10x8

<tbody>
</tbody>


AS this spreadsheet will be recording product scrap over time and will have many entries over time, I wanted to do a quick table to show a summary of material and process waste for any given date, my table E1 to H14 above.
Have been playing with sumif and product functions but cannot get a result, for instance in cell G2 :-
If the date in A:A equals the date in E2
and
if the stage in B:B equals "Material"
and
if the product in C:C equals F2
then
sum all the relevant scrap costs from D:D

Help is very much appreciated

if the product in C:C equals F2

The criteria is always F2 or is all F column?
 
Upvote 0
Maybe this in G2

=SUMPRODUCT(--($A$2:$A$9=$E$2);--($B$2:$B$9="Material");--($C$2:$C$9=$F2);$D$2:$D$9)
 
Upvote 0
Maybe this in G2

=SUMPRODUCT(--($A$2:$A$9=$E$2);--($B$2:$B$9="Material");--($C$2:$C$9=$F2);$D$2:$D$9)

Almost ...
Turns out you and I were making same mistake ...
=SUMPRODUCT(--($A$2:$A$9=$E$2),--($B$2:$B$9="Material"),--($C$2:$C$9=$F2),$D$2:$D$9)
comma, not semicolon (arghh!)

Thanks for help
 
Upvote 0
:)
That was not a mistake.... i just forgot to change ; by , cause i'm using excel out of USA and my excel version(Portuguese) and all excel european version's uses the ; instead ,
 
Upvote 0

Forum statistics

Threads
1,215,048
Messages
6,122,862
Members
449,097
Latest member
dbomb1414

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