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

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
"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,223,903
Messages
6,175,286
Members
452,631
Latest member
a_potato

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