Changing SUM Range using formula

Tobsa

New Member
Joined
Dec 16, 2019
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi all, Novice here

Am currently using SUM to sum a group of numbers in cells below the Result Cell. This is shown in pic 1 and 2.
I have sections divided by the yellow strip, each section having varying amounts of lines to SUM.
After entering the SUM for the first section, I would copy and paste into the yellow cell for the next section and then manually change the range of the SUM to suit the section.
This becomes time consuming with many 30 or more sections.
I would like to be able to easily control the range to sum, but retain the ability to copy and paste the formula down to each section.
All I could think of was to have a letter x below the numbers to use as an end marker for the range. So if I could some how get the cell address of the x into the sum range, then I would have fairly easy control of the range.
What I have so far is in pic 5.
It does return the cell address for the x, and updates if I move the x, but I am having no luck getting it into the SUM formula to affect the range( see pic 6).

Would love to get some help either to find a solution or some advice on which direction to maybe go in.

Open to alternatives, but being able to move the x to suit would have many advantages.

Hope this is clear enough, and Thanks in advance
 

Attachments

  • Tobsa 1.png
    Tobsa 1.png
    18.3 KB · Views: 6
  • Tobsa 2.png
    Tobsa 2.png
    19.7 KB · Views: 6
  • Tobsa 3.png
    Tobsa 3.png
    20.8 KB · Views: 4
  • Tobsa 5.png
    Tobsa 5.png
    20.6 KB · Views: 6
  • Tobsa 6.png
    Tobsa 6.png
    21.3 KB · Views: 6

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
I'd suggest in future that you use the xl2bb add-in for posting tables of your data.

Anyway, you don't need the CELL function there - just =SUM(G6:INDEX(...)) will do it. (too lazy to type out the rest ;))
 
Upvote 0
Thanks very much for the help, much appreciated.
Will look at XL2BB for future posts.
 
Upvote 0

Forum statistics

Threads
1,214,787
Messages
6,121,558
Members
449,038
Latest member
Guest1337

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