Ending a running total (down a column) at a specific row.

D_Blackwell

New Member
Joined
Aug 1, 2011
Messages
7
I have a starting balance in C2 and want to carry a running balance of credits and debits in column C down column D.

This:
=SUM($C$2:C2)

does the trick, but I need to stop the calculation at C22 and I can't figure it out.

What am I missing?
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
What am I missing?
Just don't put anything in D22?
 
Upvote 0
Column C continues its way down, but I only want the running total calculation for a specified number of rows, then I want it to stop.
 
Upvote 0
Column C continues its way down, but I only want the running total calculation for a specified number of rows, then I want it to stop.
You could do something like this...

=IF(ROWS(C$2:C2)>N,"",SUM(C$2:C2))

Replace N with the number of rows you want the formula to calculate. N can also be a cell reference that holds the number.

A1 = some number

=IF(ROWS(C$2:C2)>A$1,"",SUM(C$2:C2))
 
Upvote 0
That's just what I needed. There are 'sections' in column D that are being handled separately, but I was able to take your sample and make it workable. I have to ignore the warning for 'Inconsistent Calculation Column Formula' but everything is working correctly and I don't think that will be a problem.

Thanks.
 
Upvote 0
That's just what I needed. There are 'sections' in column D that are being handled separately, but I was able to take your sample and make it workable. I have to ignore the warning for 'Inconsistent Calculation Column Formula' but everything is working correctly and I don't think that will be a problem.

Thanks.
You're welcome. Thanks for the feedback! :cool:
 
Upvote 0

Forum statistics

Threads
1,224,588
Messages
6,179,743
Members
452,940
Latest member
rootytrip

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