davidpfitz
New Member
- Joined
- May 11, 2020
- Messages
- 2
- Office Version
- 365
- Platform
- Windows
Can anyone help me with the following problem?
I have a data structure like below, except that it's a lot wider and goes from the previous Monday to 365 days out across the width of it. There are about 1200 rows of data.
Currently, this formula searches the % data for the date in A1 and returns the sum of that column of data - 150%.
=SUM(INDEX(A3:D4,,MATCH(A1,A2:D2,0)))
However I need it so sum up the entire week (i.e. the date in A1 + the next 4 days to make a 5 day working week), so would want it to return 380%.
I know this would be simple if the exact range was known, but it's not - I want it parameterised by A1.
Or even more ideally, I would like to be able to give a start date and an end date and then be given the sum of all the data between those dates.
Anyone got experience doing something like this?
Thank you.
I have a data structure like below, except that it's a lot wider and goes from the previous Monday to 365 days out across the width of it. There are about 1200 rows of data.
11/5/2020 | ||||
11/5/2020 | 12/5/2020 | 13/5/2020 | 14/5/2020 | 15/5 |
100% | 50% | 10% | 0% | 100% |
50% | 20% | 0% | 0% | 50% |
Currently, this formula searches the % data for the date in A1 and returns the sum of that column of data - 150%.
=SUM(INDEX(A3:D4,,MATCH(A1,A2:D2,0)))
However I need it so sum up the entire week (i.e. the date in A1 + the next 4 days to make a 5 day working week), so would want it to return 380%.
I know this would be simple if the exact range was known, but it's not - I want it parameterised by A1.
Or even more ideally, I would like to be able to give a start date and an end date and then be given the sum of all the data between those dates.
Anyone got experience doing something like this?
Thank you.