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

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
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,125
Messages
6,123,193
Members
449,090
Latest member
bes000

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