Sumifs

David02

New Member
Joined
Jul 10, 2019
Messages
3
Hi, I am new to this forum and currently having some problems with SUMIFS. I am trying to get the formula to check if criteria 1 and 2 are met and then if they are add the sum range value to get a total. For criteria 1 I found that the formula in G3 only notices 124 if the cell contains a letter and so the value in G3 is currently 2 but the total should be 19. Does anyone know where I might be going wrong?[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[TD]F[/TD]
[TD]G[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Criteria 1 range[/TD]
[TD]Criteria 2 range[/TD]
[TD]Sum range[/TD]
[TD][/TD]
[TD][/TD]
[TD]Criteria 1[/TD]
[TD]124[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]P124[/TD]
[TD]Company A[/TD]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[TD]Criteria 2[/TD]
[TD]Company A[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]1246903[/TD]
[TD]Company A[/TD]
[TD]5[/TD]
[TD][/TD]
[TD][/TD]
[TD]Total[/TD]
[TD]=SUMIFS(C2:C5,A2:A5,"*"&G1&"*",B2:B5,G2)[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]521246[/TD]
[TD]Company A[/TD]
[TD]9[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]124[/TD]
[TD]Company A[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Would you know if it is difficult to get this to work as well for a set range of dates. For example I set a range of dates some within June and some not, within column D and then set criteria for the end of May and start of June.

[TABLE="width: 654"]
<colgroup><col span="3"><col><col span="5"><col></colgroup><tbody>[TR]
[TD]Criteria 1 range[/TD]
[TD]Criteria 2 range[/TD]
[TD]Sum range[/TD]
[TD]Date[/TD]
[TD][/TD]
[TD]Criteria 1[/TD]
[TD="align: right"]124[/TD]
[TD][/TD]
[TD]Criteria 3[/TD]
[TD="align: right"]31/05/2019[/TD]
[/TR]
[TR]
[TD]124[/TD]
[TD]Company A[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]04/06/2019[/TD]
[TD][/TD]
[TD]Criteria 2[/TD]
[TD]Company A[/TD]
[TD][/TD]
[TD]Criteria 4[/TD]
[TD="align: right"]01/07/2019[/TD]
[/TR]
[TR]
[TD]1246903[/TD]
[TD]Company A[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]20/05/2019[/TD]
[TD][/TD]
[TD]Total[/TD]
[TD="align: right"]19[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]521246[/TD]
[TD]Company A[/TD]
[TD="align: right"]9[/TD]
[TD="align: right"]09/06/2019[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]124[/TD]
[TD]Company A[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]02/07/2019[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,631
Latest member
a_potato

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