SUM of a ROW from last BLANK CELL

foe001

New Member
Joined
Mar 18, 2016
Messages
8
Office Version
  1. 2019
Platform
  1. Windows
I am trying to get a formula that gives me the SUM of an entire row, from last BLANK CELL.

SUM from last BLANK CELL.xlsx
ABCDEFGHIJK
510.510.08.26.99.37.17.310.610.220.8
69.59.010.510.09.48.212.112.1
710.110.38.39.79.68.810.08.346.4
810.711.38.712.110.29.010.59.48.459.6
910.89.211.17.25.87.08.09.29.426.6
109.510.78.67.26.77.510.08.918.9
118.212.08.010.410.08.18.07.60.0
1211.39.88.75.86.68.99.010.08.236.1
1311.011.38.57.87.78.38.310.27.617.8
148.59.47.38.69.49.78.58.351.8
Sample
Cell Formulas
RangeFormula
K13,K10,K5:K6K5=SUM(I5:J5)
K7K7=SUM(F7:J7)
K8,K14K8=SUM(E8:J8)
K9K9=SUM(H9:J9)
K11K11=SUM(J11)
K12K12=SUM(G12:J12)
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Maybe
Excel Formula:
=SUM(INDEX(B5:J5,AGGREGATE(14,6,(COLUMN(B5:J5)-COLUMN(B5)+1)/(B5:J5=""),1)):J5)
 
Upvote 0
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Maybe
Excel Formula:
=SUM(INDEX(B5:J5,AGGREGATE(14,6,(COLUMN(B5:J5)-COLUMN(B5)+1)/(B5:J5=""),1)):J5)
What does the 14,6 in the formula represent?
 
Upvote 0
It makes the Aggregate function operate like the Large function, but ignores errors.
 
Upvote 0
It makes the Aggregate function operate like the Large function, but ignores errors.
It worked on my sample sheet that I provided, but it doesn't work on my actual sheet. It gives me 0.0. All I did was change the ranges in the formula. Do I need to change that number?
 

Attachments

  • Image.JPG
    Image.JPG
    104.9 KB · Views: 14
Upvote 0
Do you have any non blank cells in that range?
 
Upvote 0
Nothing wrong with the formula. I found out what is wrong. My fault. I have blank cells after the last cells that have values in them. Can I add something to the formula to only add up to todays date or yesterdays date? Or reference a date in another cell?
 
Upvote 0
How about
+Fluff 1.xlsm
ABCDEFGHIJKL
1
2
3
412/08/202113/08/202114/08/202115/08/202116/08/202117/08/202118/08/202119/08/202120/08/202121/08/202122/08/2021
510.5108.26.99.37.17.30
69.5910.5109.48.238.1
710.110.38.39.79.68.828.1
810.711.38.712.110.2910.541.8
910.89.211.17.25.8788
109.510.78.67.26.77.50
118.212810.4108.1856.5
1211.39.88.75.86.68.9917.9
131111.38.57.87.78.38.30
148.59.47.38.69.49.735
15
Master
Cell Formulas
RangeFormula
L5:L14L5=SUM(INDEX(A5:J5,AGGREGATE(14,6,(COLUMN(A5:J5)-COLUMN(A5)+1)/(A5:J5="")/($A$4:$J$4<=TODAY()),1)):J5)
 
Upvote 0
If I wanted up to yesterday or a certain date, would I have to use a reference cell?
 
Upvote 0
You could, or for yesterday just subtract 1 from today.
 
Upvote 0

Forum statistics

Threads
1,215,097
Messages
6,123,076
Members
449,094
Latest member
mystic19

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