Subtotal Ifs

sstilwell

New Member
Joined
Jan 19, 2012
Messages
6
I have tried the multiple solutions on this forum and can not get it to work.

Use-Case: I want to sum a total amount of cells on the IF statement that they are considered a "Renewal" and that they are within the dates of 2/1-2/28/2012. So 2 if clauses, or 3 if I have to specify the 2/1/2012 & < 2/28/2012 separately.

I have tried the Sumproduct(Sumtotal and couldnt get it to work.u

I also have created a SumIFS Statement that is based off of dates. Looks like this =SUMIFS(C5:C305,L:L,"Renewal",I:I,">="&G386,I:I,"<="&H386)

Where the amounts I want to "sum" is in C5:C305, with the clause of being "Renewal" text in column L, also with the clause of being b/t the dates 2/1/2012-2/28/2012 (which I have designated as G386=2/1/2012 & H386=2/28/2012)....

Please help me out to learn and/or create a formula using the sumproduct(sumtotal) formula using my cells data. Also what does the "--" text do in a formula?
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
I have tried the multiple solutions on this forum and can not get it to work.

Use-Case: I want to sum a total amount of cells on the IF statement that they are considered a "Renewal" and that they are within the dates of Where the amounts I want to "sum" is in C5:C305, with the clause of 2/1-2/28/2012. So 2 if clauses, or 3 if I have to specify the 2/1/2012 & < 2/28/2012 separately.

I have tried the Sumproduct(Sumtotal and couldnt get it to work.u

I also have created a SumIFS Statement that is based off of dates. Looks like this =SUMIFS(C5:C305,L:L,"Renewal",I:I,">="&G386,I:I,"<="&H386)

being "Renewal" text in column L, also with the clause of being b/t the dates 2/1/2012-2/28/2012 (which I have designated as G386=2/1/2012 & H386=2/28/2012)....

Please help me out to learn and/or create a formula using the sumproduct(sumtotal) formula using my cells data. Also what does the "--" text do in a formula?
Try this...

=SUMPRODUCT(SUBTOTAL(9,OFFSET(C5,ROW(C5:C305)-ROW(C5),0)),--(I5:I305>=G386),--(I5:I305<=H386),--(L5:L305="renewal"))
 
Upvote 0
Are you asking this because the sumifs isn't working?

If so it is because your array ranges are different. Either sum column has to be C:C or the other ones need to be rows 5 to 305.

Sumproduct would be the following, change ranges 5-305 if that is what you want

=SUMPRODUCT(C:C*(I:I>=G386)*(I:I<=H386)*(L:L="Renewal"))
 
Upvote 0
Thank You all for your responses. The SumProduct formulas did not work but I was able to do it using Sumifs. Not sure why I couldn't before. Must have just not had a comma in the right place.

Thank You all for your help.

I have a hyper linking/Data Validation question as well I need help with. I created a new topic for it though.

http://www.mrexcel.com/forum/showthread.php?t=609775

Thanks Again!
 
Upvote 0
another solution.
1 each data row in the table or spreadsheet contains the following counting formula applied to any populated cell in that row. I will yield 1 if the row is visible
subtotal(103,[some populated cell or column reference])
2 instead of a top level subtotal function, use a normal sumifs function that checks, among other criteria, for the above value to equal 1
 
Upvote 0

Forum statistics

Threads
1,223,248
Messages
6,171,011
Members
452,374
Latest member
keccles

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