dispelthemyth
Well-known Member
- Joined
- Mar 16, 2006
- Messages
- 664
- Office Version
- 365
- Platform
- Windows
I am trying to sum 3 periods of time,
1) This month only
2) This month and last month
3) This month and the last 2 months
As can be seen in June, i am trying to get an array of 30, 61 and 91 so i can use for a comparison
I have tried many formulas but nothing seems to work; an example For March, in D4 I have used
(Used the sum so it doesnt spill for now, but i get 90, if i let it spill i get 3 #Value errors
Is it possible to get an array of sums with 3 cells, 2 cells and 1 cell?
EDIT:
I have also updated the formula to change the height to 3 rows, 2 rows and 1 rows as i mistakenly left it at 3 but it still gives a #value error with no sum wrapper and 90 with the sum wrapper
1) This month only
2) This month and last month
3) This month and the last 2 months
As can be seen in June, i am trying to get an array of 30, 61 and 91 so i can use for a comparison
I have tried many formulas but nothing seems to work; an example For March, in D4 I have used
Excel Formula:
= SUM(OFFSET(B4, -{2;1;0}, 0, 3, 1))
Is it possible to get an array of sums with 3 cells, 2 cells and 1 cell?
EDIT:
I have also updated the formula to change the height to 3 rows, 2 rows and 1 rows as i mistakenly left it at 3 but it still gives a #value error with no sum wrapper and 90 with the sum wrapper
Excel Formula:
= SUM(OFFSET(B4, -{2;1;0}, 0, {3;2;1}, 1))
Last edited: