Sum Column If It Is Bottom Row Or Do Math

snapfade

New Member
Joined
Dec 6, 2011
Messages
20
I am building a spreadsheet for a client to use. The client will add rows as needed but would like to see totals as the bottom row. Is it possible to write a formula that would determine if it was the last row and then insert totals. If not the last row, perform lookups or other math as it does in all other rows?

Something like this: =if(ThisIsLastRow,SumThisColumn,A22-D22).

As an example, let's assume the spreadsheet has formulas down to row 100 but data has been added down to only row 22. The formulas continue down from row 23 through row 100.

I would prefer NOT to create VBA functions such as ThisIsLastRow and SumThisColumn if I could do it instead with a formula and regular functions.

I have also considered the alternative of putting a total row above the column headers but that seems soooo lame.

thanks for any help you can provide.
tom
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
I have also considered the alternative of putting a total row above the column headers but that seems soooo lame.
Why?

In general, calculations should proceed top to bottom, left to right, but IMO, totaling tables is the exception. That way they are always in the same place, easy to find, ...
 
Upvote 0
Why? Because the client would like it that way. If there is no way to do it the preferred way, i will post totals at the top. thx.
 
Upvote 0

Forum statistics

Threads
1,213,494
Messages
6,113,974
Members
448,537
Latest member
Et_Cetera

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