Total the last cell in a column

smazza

New Member
Joined
Feb 11, 2011
Messages
18
How do I make the last cell in a column whose range floats? For instance one time I may have 15 cells that I need totaled in a column & the next time I may have 25. Whatever the last cell in the column after the last filled in cell, I want it to total those cells.
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
I am not sure this is what you want, but if you are wanting to do it "manually", you can name a range of cells in the column and in a cell wherever:

=SUM(MyRangeName)

If you insert rows in the middle of the range for more numbers, these become part of the named range.
 
Upvote 0
What about something like this

Sub Macro1()
Dim myRange As Range
Set myRange = Range("C2:c500")
Range("C2").Select
Selection.End(xlDown).Select
ActiveCell.Offset(1, 0).Select
ActiveCell.Value = Application.WorksheetFunction.Sum(myRange)


End Sub
 
Upvote 0

Forum statistics

Threads
1,224,616
Messages
6,179,912
Members
452,949
Latest member
beartooth91

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