SUM OFFSET

buh149

New Member
Joined
Jun 21, 2022
Messages
6
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I would like a formula which sums up all cells starting at a defined cell and ending based on 1 row beneath the result. I have two screenshots showing a simple table using a normal SUM formula. The second screenshot shows that where I have inserted in two new rows (1 at the top and 1 at the bottom), the sum formula doesn't automatically pick this up.

I'm sure there is a way to do this as I've done it before, just don't have those files with me anymore. If I remember correctly it was a SUM(OFFSET) formula.

So in this case I'd want the starting point to be cell B2 (and I'd ensure not to insert any new rows above that), and the last point in the SUM formula would always be 1 row above cell B8. This way it ensures to pick up anything above cell B8.

Thank you
 

Attachments

  • Screenshot 2022-08-05 162941.jpg
    Screenshot 2022-08-05 162941.jpg
    16.3 KB · Views: 13
  • Screenshot 2022-08-05 163010.jpg
    Screenshot 2022-08-05 163010.jpg
    23.9 KB · Views: 13

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
How about in B8
Excel Formula:
=SUM(B1:INDEX(B:B,ROW(B8)-1))
 
Upvote 0
Solution
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,797
Messages
6,121,629
Members
449,041
Latest member
Postman24

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