Hi all,
Please can someone help?
I am trying to find a tidier version of the below formula - what I am trying to do is basically add up the values in row 2 for the week before. The displayed dates are Mon-Fri (not inc Sat-Sun).
Note, the below formula would be in cell F3, so on the 2nd Dec, I am looking up the values for 25th Nov-29th Nov, and adding these up.
=SUM(INDEX(2:2,MATCH(F1-7,1:1,0)),INDEX(2:2,MATCH(F1-6,1:1,0)),INDEX(2:2,MATCH(F1-5,1:1,0)),INDEX(2:2,MATCH(F1-4,1:1,0)),INDEX(2:2,MATCH(F1-3,1:1,0)))
Thanks
Please can someone help?
I am trying to find a tidier version of the below formula - what I am trying to do is basically add up the values in row 2 for the week before. The displayed dates are Mon-Fri (not inc Sat-Sun).
Note, the below formula would be in cell F3, so on the 2nd Dec, I am looking up the values for 25th Nov-29th Nov, and adding these up.
=SUM(INDEX(2:2,MATCH(F1-7,1:1,0)),INDEX(2:2,MATCH(F1-6,1:1,0)),INDEX(2:2,MATCH(F1-5,1:1,0)),INDEX(2:2,MATCH(F1-4,1:1,0)),INDEX(2:2,MATCH(F1-3,1:1,0)))
A | B | C | D | E | F | G | H | I | J | |
1 | 25-Nov | 26-Nov | 27-Nov | 28-Nov | 29-Nov | 02-Dec | 03-Dec | 04-Dec | 05-Dec | 06-Dec |
2 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 1000 |
Thanks