Sum column to last row with data

Shadkng

Active Member
Joined
Oct 11, 2018
Messages
365
Hi, can someone provide a formula to sum a column to the last row with data? I would like to sum column L from cell L3 down to the last cell with data. I have been using a regular sum formula but when I delete rows my range keeps getting smaller. Thanks for the help
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Hi,

If it's a simple SUM

=SUM(L:L)
 
Upvote 0
Is this what you are trying?

Excel Formula:
=IFERROR(SUM(INDIRECT("L3:L" & MAX((L:L<>"")*(ROW(L:L))))),0)

1645820270123.png


Explanation:

Excel Formula:
MAX((L:L<>"")*(ROW(L:L)))

will give the row number of the last non blank cell in that column.

Excel Formula:
"L3:L"&MAX((L:L<>"")*(ROW(L:L)))

will give something like L3:L(LastRow)

and INDIRECT() will convert the above string to cell address and SUM() will use that cell address to calculate sum.

We need IFERROR() to control any error or if Column L is empty.
 
Last edited:
Upvote 0
Yes, but I have to begin at L3

What's the reason?
SUM ignores Text and Blanks, unless you have numbers in L1:L2 you don't want included, then, just this:

=SUM(L:L)-SUM(L1:L2)

Book3.xlsx
LMNO
1Header100
2something10100010
311
422
5
6  
733
8
9ABCABC
10
1144
12
Sheet1017
Cell Formulas
RangeFormula
M2M2=SUM(L:L)
O2O2=SUM(N:N)-SUM(N1:N2)
L6,N6L6=""
 
Upvote 0

Forum statistics

Threads
1,214,875
Messages
6,122,042
Members
449,063
Latest member
ak94

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