Find last entry in column and sum all prior rows

jski21

Board Regular
Joined
Jan 2, 2019
Messages
155
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

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
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,223,889
Messages
6,175,224
Members
452,620
Latest member
dsubash

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