Forum Discussion
Range changing in increments
Let's say the formula =SUM(DataSheet!B2:B138) is in cell D2 of the summary sheet.
Change it to
=SUM(OFFSET(DataSheet!$B$2:$B$138, 137*(ROW()-2), 0))
or
=SUM(INDEX(DataSheet!B:B,137*(ROW()-2)+2):INDEX(DataSheet!B:B,137*(ROW()-2)+138))
Then fill down.
5 Replies
- PeterBartholomew1Silver Contributor
You didn't state what version of Excel you use so I held back because all my work is specific to Excel 365 and sometime beta channel only. It is macro-enabled because it contains VBA utility to upload Lambda functions which are of interest to me but not generally usable. The LET functions work with most Excel 365 installations.
The formula that is most likely to be usable is
= LET( array, INDEX(data, SEQUENCE(10,Blocksize)), vector, SEQUENCE(Blocksize,,,0), MMULT(array, vector))and least likely
= SUMROWSλ( PIVOTλ(data, blocksize) ) Let's say the formula =SUM(DataSheet!B2:B138) is in cell D2 of the summary sheet.
Change it to
=SUM(OFFSET(DataSheet!$B$2:$B$138, 137*(ROW()-2), 0))
or
=SUM(INDEX(DataSheet!B:B,137*(ROW()-2)+2):INDEX(DataSheet!B:B,137*(ROW()-2)+138))
Then fill down.
- Tbear_beardsleyCopper ContributorPerfect. Can you explain the row situation. And would it be similar if I wanted to do the same along the columns for data going across?
- Tbear_beardsleyCopper ContributorNever mind found out I just have to take the $ off the B but leave it on the number