Sum Column below until...

asfau

New Member
Joined
Oct 1, 2010
Messages
2
I am trying to use a forumula that can sum a column until a certain point, which is when a non adjacent column's information is filled in. And then I want it to repeat.

For example:

Cells A1: has text, Cells E1-1000 has numbers
Cells A2-8: has blanks
Cells A9: has text
And perhaps Cells A:10-39: has blanks
And Cell A40: has text

So I want Cell A1 to show the sums of E2:E8 and Cell A9 to show the sums from E10:E39.

Is there a way I can do this without coding a macro?
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Hi
Welcome to the board

In column A, in the row after the last number in column E write a string (for ex. "End").

In G1 (or in another cell in row 1):

=if(a1="","",sum(e2:index(e2:index(e:e,rows(e:e)),-1+match(true,a2:index(a:a,match(rept("z",255),a:a))<>"",0))))

This is an array formula, you have to confirm it with CTRL-SHIFT-ENTER.

Copy down.
 
Upvote 0

Forum statistics

Threads
1,214,823
Messages
6,121,779
Members
449,049
Latest member
greyangel23

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