Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
getting the sum of the last 20 cells
Hi all,
I am a newbie to Excel VBA. I have a question for the experts here. I have a table which keeps adding row entries and it increases vertically. I want to get the sum of the last 20 entries (always the last 20 entries). How do I do that and which command do I use? Thanks in advance. Red |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
getting the sum of the last 20 cells
Hi,
No need for a macro ... =SUM(yourcell:OFFSET(yourcell,-20,0)) HTH Cheers Carim |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
getting the sum of the last 20 cells
It worked! Thanks Carim
Carim wrote: Hi, No need for a macro ... =SUM(yourcell:OFFSET(yourcell,-20,0)) HTH Cheers Carim |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel: match two cells in one sheet to two cells in another and return a third cells value | Excel Worksheet Functions | |||
compare 2 column cells and return the adjacent columns cells data of the cell | Excel Worksheet Functions | |||
join data in multiple cells when adjoining cells match criteria ?? | Excel Worksheet Functions | |||
display a range of cells editible cells based on matching date | Excel Worksheet Functions | |||
Skip cells with TAB/SHIFT+TAB but allow arrow keys/mouse selection of skipped cells | Excel Programming |