Using Aggregate, but need to sum the rows, above after the last empty cell

Jeffrey Green

Well-known Member
Joined
Oct 24, 2007
Messages
1,021
Not sure if this is possible.
I have 40,000 rows, and using EasyXL, I split my list by Body Code.
Column S has the value for that row, but not every row is error-free, to be fixed later.

Because of the errors, i am using AGGREGATE(9,6,S1:S2000) to sum the rows without errors.

But i have an empty row every 2000 rows or so . . . always a different number of rows.
Is there any way i can write the formula like =Aggregate(9,6,all rows above until previous empty row) ???
that would save me a bunch of time. thanks in advance. I could even live with a macro.

Jeff
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

Forum statistics

Threads
1,223,713
Messages
6,174,038
Members
452,542
Latest member
Bricklin

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