Metavanguard
New Member
I have a SUMPRODUCT formula that isn't compatible with Documents to Go on my mobile devices. I have tried rewriting with SUMIF but I keep getting stuck on entering a cell reference into SUMIF. Maybe SUMIF can't take a cell reference with operands?
Here is the formula that I'm trying to simplify from Excel 2003:
D2 is a date
E2 is a number to calculate weeks: (7*E2-1) is E2 number of weeks minus 1 day
I4:I500 are dates
O4:O500 are dollars
=SUMPRODUCT((I4:I500>=(D2-(7*E2-1)))*(I4:I500<=D2)*(O4:O500))
What I've been trying with SUMIF is:
=SUMIF(I4:I500,"<=D2",O4:O500)-SUMIF(I4:I500,"<=D2-(7*E2-1)",O4:O500)
When I replace D2 with an actual date it works.
=SUMIF(I4:I500,"<=2012-12-12",O4:O500)-SUMIF(I4:I500,"<=2012-11-12",O4:O500)
Any help would be appreciated.
Here is the formula that I'm trying to simplify from Excel 2003:
D2 is a date
E2 is a number to calculate weeks: (7*E2-1) is E2 number of weeks minus 1 day
I4:I500 are dates
O4:O500 are dollars
=SUMPRODUCT((I4:I500>=(D2-(7*E2-1)))*(I4:I500<=D2)*(O4:O500))
What I've been trying with SUMIF is:
=SUMIF(I4:I500,"<=D2",O4:O500)-SUMIF(I4:I500,"<=D2-(7*E2-1)",O4:O500)
When I replace D2 with an actual date it works.
=SUMIF(I4:I500,"<=2012-12-12",O4:O500)-SUMIF(I4:I500,"<=2012-11-12",O4:O500)
Any help would be appreciated.