inkserious
Technical User
- Jul 26, 2006
- 67
I have the following formula that works as expected; however, I need to modify the formula to work for a change in the first array. Currently, A1:AE1 has dates of the month (8/1/2011, 8/2/2011, etc). C1 has a specific date. So for all dates less than or equal to the date in C1, sum the product of the values in the range A2:AE2 and Sheet2!A1:A31. I need to change the dates to every other cell which changes the date range to A1:BJ1; however, the values will remain in their current ranges.
Thanks for any help anyone can provide.
Code:
{=SUMPRODUCT(--($A$1:$AE$1<=$C$1),$A$2:$AE$2,TRANSPOSE(Sheet2!$A$1:$A$31))}
Thanks for any help anyone can provide.