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

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
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,223,893
Messages
6,175,242
Members
452,623
Latest member
russelllowellpercy

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