Forum Discussion
TrevB
Mar 17, 2022Copper Contributor
Automatically changing search or summing ranges
 Hi, I am trying to create a formula where you enter a week number, in a separate cell and then sum a given number of weeks going forwards from that point, from another separate cell. The idea is that...
- Mar 17, 2022Wow, thank you so much!! I've been fighting this one for hours and just going round in circles
Riny_van_Eekelen
Mar 17, 2022Platinum Contributor
TrevB This one should work.
=SUM(INDEX(P6:AE6,MATCH($B$2,P$2:AE$2,0)):OFFSET(INDEX(P6:AE6,MATCH(B2,P$2:AE$2,0)),0,$F$2))- TrevBMar 17, 2022Copper ContributorWow, thank you so much!! I've been fighting this one for hours and just going round in circles- Riny_van_EekelenMar 17, 2022Platinum ContributorTrevB Not a very straight-forward formula, but it's was the first that came to mind. If you have Excel for MS365 or 2021, there are (most likely) a dozen other approaches to this case.