how can i use the value in one cell in a formula in another cell

bobw13205

New Member
Joined
Sep 14, 2018
Messages
2
I want to sum columns by using values that I enter in other cells.
I have a column of numbers but the number of rows will vary depending on the number of enteries. I want to enter a value is one cell, i.e. start row, and a value in a second cell, i.e. stop row in a sum statement.
I want the sum to look like =sum(value in start row:value in stop row) where the start and stop rows will vary depending on the number of rows I want to sum.
each time I want to sum the rows I will enter the start row number, one more that the previous sum formula, and the stop row number. I know that this stop row can be generated by row() since I am entering the number in the row that i want to stop summing at.

example:
I have 25 rows.
I want to sum rows 1 through 7 so i will enter start row as 1 and stop row as 7. the formula would then sum rows 1:7.
the next time I would enter the start row as 8 and and the stop row as 17 so that the formula will sum rows 8 through 17.
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Hi & welcome to MrExcel.
How about
=SUM(INDIRECT("A"&D10&":A"&D11))
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
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