Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Raynard Fischer   on Mar 13 In MS Office Category.

  
Question Answered By: Silvia Chapman   on Mar 13

If the data is in column A, you can try this

lrow = Cells(Rows.Count, 1).End(xlUp).Row
ans = Application.WorksheetFunction.Sum(Cells(lrow - 20 + 1, 1).Resize
(20, 1))
Debug.Print ans

Share: 

 

This Question has 2 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on getting the sum of the last 20 cells Or get search suggestion and latest updates.


Tagged: