Find last entry in column and sum all prior rows

jski21

Board Regular
Joined
Jan 2, 2019
Messages
133
Office Version
  1. 2016
Platform
  1. Windows
Good day Mr. Excel Team,

Is there a way--by formula--to find the last entry in a column (0 or otherwise) and return the sum of all the entries prior to that last entry? Example:

Prjct Clean Disbursements PY49 2023-2024.xlsx
FGH
1PeriodPersonnel# of Services
2Jun-23-2,793
3Jul-23-9,046
4Aug-23234,978.137,172
5Sep-23-7,366
6Oct-231,144,881.268,892
7Nov-23--
8Dec-2365,118.7412,907
9Jan-24
10Feb-24
11Mar-24
12Apr-24
13May-24
14FINAL
15Total$1,444,978.1348,176
Personnel (Labor)
Cell Formulas
RangeFormula
F3:F12F3=DATE(YEAR(F2),MONTH(F2)+1,1)
F13F13=EOMONTH(F12,1)
G15:H15G15=SUM(G2:G13)


The last entry here is Dec23. Seeking a way to return the sum of all the values prior to Dec23 which would be 1,379,859.39.


As always, thanks for your consideration and help.

jski
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
How about
Excel Formula:
=SUM(G2:G13)-LOOKUP(2,1/(G2:G13<>""),G2:G13)
 
Upvote 0
Solution
How about
Excel Formula:
=SUM(G2:G13)-LOOKUP(2,1/(G2:G13<>""),G2:G13)

Thanks Fluff. Not even close to the direction I was heading so this is a time saver and most helpful. Works like a charm.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,076
Messages
6,122,984
Members
449,092
Latest member
Mr Hughes

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