I need the sum of the numbers so that the "SUM function" when adding the rows above doesn't lose its check mark

Jovinchious

New Member
Joined
Oct 12, 2022
Messages
19
Office Version
  1. 2007
Platform
  1. Windows
Hello everyone,

I need the sum of data, for example, from "G57 to G110" which will be expressed in cell "G111", but if I add rows above G57 afterwards, then the formula gets messed up (lose its check mark or give me wrong checks). So, I need a formula that will SUM the data from the first cell above (that is, the last number, for example g110) and the first cell in which the number above appears (for example, g57..while in g56 is string value or blank), but if I add rows above g57, the formula must always include the same data, so that I don't always have to update the formula.

FYI...after that sum, similar tables are repeated...with a few string and blank in-between cells...then again the similar table where I need sums "from g120 to g160" in cell g161...etc.

IDK why my basic SUM formula does not work here...maybe due to old version of XCL...

Thanks in advance!
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
If Office 2007 supports INDIRECT function, maybe next formula helps you. Add above new rows with values / strings and see how it works.
Book1
AB
11
2
3aaa
411
522
633
744
855
966
1077
1188
1299
131010
141111
151212
161313
177
189199
Sheet1
Cell Formulas
RangeFormula
A18A18=SUM(INDIRECT("A1:A"&ROW()-1))
B18B18=SUM(INDIRECT("B1:B"&ROW()-1))
 
Last edited:
Upvote 0
If Office 2007 supports INDIRECT function, maybe next formula helps you. Add above new rows with values / strings and see how it works.
Book1
AB
11
2
3aaa
411
522
633
744
855
966
1077
1188
1299
131010
141111
151212
161313
177
189199
Sheet1
Cell Formulas
RangeFormula
A18A18=SUM(INDIRECT("A1:A"&ROW()-1))
B18B18=SUM(INDIRECT("B1:B"&ROW()-1))
You're welcome, and you can use "Mark as solution" functionality to indicate the right answer to other members interested for this topic.
 
Upvote 0

Forum statistics

Threads
1,223,952
Messages
6,175,594
Members
452,655
Latest member
goranzoric

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