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
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