How to add (x) amount of rows, then add the next (x) amount of rows

Moo1987

New Member
Joined
Apr 10, 2017
Messages
9
Hi,

I have a date and time column in Column A and a value in colmun B.

I need to take the value 150 rows down e.g row 151 and minus the value in B2. I then need to repeat this for every 150 rows, so the next calculations would be (B301-B152), then (B452 - B302).

Is there a formula I can just drag down to give me the answer?
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
"I need to take the value 150 rows down...and repeat every 150 rows"
"(B301-B152), then (B452 - B302)"

The number of rows between B301 and B452 is 151 not 150.
Is that a typo?

You need to define clearly what your data is and check it before posting.

B301-B152 In what cell would this reuslt be stored?
B451-B302 In what cell would this reuslt be stored?
 
Last edited:
Upvote 0
Try this:

=INDEX(B:B,ROWS($B$1:$B1)*150+1)-INDEX(B:B,ROWS($B$1:$B1)*150-148)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top