Formula to add up a subtotal of a filter range between two date

EddyTheEagle

New Member
Joined
May 28, 2019
Messages
2
Hi

I need to sum up the sales in the range R56:R5044
I have a daily date range N56:N5044

and 2 date criteria in Q5 & Q6 which are using the following dates:
01-02-2019
01-03-2019.

I have a Sumif which is working (=SUMIFS(R$56:R$5044,$N$56:$N$5044,">="&$Q5,$N$56:$N$5044,"<"&$Q6))

However I want to be able to filter on various criteria between A56:A5044 and after filtering see the sum of the sales (like a subtotal).

Can anyone who is good with formulas help (If you need more clarification please let me know)


Thanks in advance
Eddy
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Try:

=SUMPRODUCT(SUBTOTAL(103,OFFSET(R$56,ROW(R$56:R$5044)-ROW(R$56),0))*($N$56:$N$5044>=$Q5)*($N$56:$N$5044<=$Q6)*R$56:R$5044)
 
Upvote 1

Forum statistics

Threads
1,215,771
Messages
6,126,799
Members
449,337
Latest member
BBV123

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