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

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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