Sum a range of cells while adjacent cells are blank and then stop when a non blank cell exists.

rob_sheeds

Board Regular
Joined
Dec 9, 2010
Messages
57
Hi,
I need to sum a range of cells while a range of adjacent cells are blank. I want to sum them until I hit a non blank cell.
Though of using offset but all I could do would be ignore blanks. I need to sum range to stop when it hits a blank.
Eg.
So basically in the last right cell for example I want to sum the amount column from 15/01/2012 up until but not including the 10/01/2012 or when it hits the first non-blank.....
Thanks in advance!!!!!!

Amount
Amount
Result
100
1/01/2012
100
120
200
500
10/01/2012
820
150
230
300
600
100
15/01/2012
1380

<tbody>
</tbody>
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Hi,
I need to sum a range of cells while a range of adjacent cells are blank. I want to sum them until I hit a non blank cell.
Though of using offset but all I could do would be ignore blanks. I need to sum range to stop when it hits a blank.
Eg.
So basically in the last right cell for example I want to sum the amount column from 15/01/2012 up until but not including the 10/01/2012 or when it hits the first non-blank.....
Thanks in advance!!!!!!

Amount
Amount
Result
100
1/01/2012
100
120
200
500
10/01/2012
820
150
230
300
600
100
15/01/2012
1380

<tbody>
</tbody>

C2, copied down:

=IF($B2="","",SUM($A$1:A2)-SUM($C$1:C1))
 
Upvote 0
Hi,
I need to sum a range of cells while a range of adjacent cells are blank. I want to sum them until I hit a non blank cell.
Though of using offset but all I could do would be ignore blanks. I need to sum range to stop when it hits a blank.
Eg.
So basically in the last right cell for example I want to sum the amount column from 15/01/2012 up until but not including the 10/01/2012 or when it hits the first non-blank.....
Thanks in advance!!!!!!

Amount
Amount
Result
100
1/01/2012
100
120
200
500
10/01/2012
820
150
230
300
600
100
15/01/2012
1380

<TBODY>
</TBODY>
This formula entered in C2 and copied down:

=IF(B2="","",SUM(A$2:A2)-SUM(C$1:C1))
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,849
Members
449,051
Latest member
excelquestion515

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