Add DATE range in a SUMPRODUCT formula

tvagge

New Member
Joined
Nov 16, 2016
Messages
34
Hi,I have this formula:
=SUMPRODUCT(SUBTOTAL(3,OFFSET('ANALYSIS'!$E$1:$E$8865,ROW('ANALYSIS'!$E$1:$E$8865)-MIN(ROW('ANALYSIS'!$E$1:$E$8865)),,1))*('ANALYSIS'!$E$1:$E$8865=B2))
In my worksheet, I also have a column D, which contains dates.
Is it possible to add a date range (e.g Sep.01 - Sep.30) in the above formula ,so I can filter more my results ?
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
try this: =SUMPRODUCT(SUBTOTAL(3,OFFSET('ANALYSIS'!$E$1:$E$8865,ROW('ANALYSIS'!$E$1:$E$8865)-MIN(ROW('ANALYSIS'!$E$1:$E$8865)),,1))*('ANALYSIS'!$E$1:$E$8865=B2)*('ANALYSIS'!$d$1:$d$8865>=date(2016,9,1)*('ANALYSIS'!$d$1:$d$8865<=date(2016,9,30))
 
Upvote 0
Are they real dates? Sep.01 looks like text if the dot is there.

What does =ISNUMBER(A1) give you where A1 is changed to one of the cells with a date in it?
 
Last edited:
Upvote 0
Hi guys,

I am still struggling on that, no solution found by me yet... Any other ideas ? I would be gratefull...
 
Upvote 0
Looks to me theres an issue with the formula you were given with bracket placement. See if this works:

=SUMPRODUCT(SUBTOTAL(3,OFFSET(ANALYSIS!$E$1:$E$8865,ROW(ANALYSIS!$E$1:$E$8865)-MIN(ROW(ANALYSIS!$E$1:$E$8865)),,1))*(ANALYSIS!$E$1:$E$8865=B2)*(ANALYSIS!$D$1:$D$8865>=DATE(2016,9,1))*(ANALYSIS!$D$1:$D$8865<=DATE(2016,9,30)))
 
Upvote 0

Forum statistics

Threads
1,214,791
Messages
6,121,611
Members
449,038
Latest member
apwr

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