Formula challenge adding numbers between set numbers

mmann1973

New Member
Joined
Oct 11, 2013
Messages
46
I'm trying to do something I don't know if it can be done. I want to add the number of consecutive 12's until a 0 is hit (this is my data that changes frequently). The results would give the total of the consecutive 12's.
I've hit a brick wall with this. Any ideas?

Book1
BCDEFGHIJKLMNO
4DATA012121200012121212120
5
6EXPECTED
7RESULTS036363600060606060600
Sheet1
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Book1
ABCDEFGHIJKLMN
1DATA0121212000121212121212
2
3EXPECTED
4RESULTS0363636000727272727272
Sheet1
Cell Formulas
RangeFormula
B4:N4B4=IF(B1=0,0,IF(N(A4)>0,A4,IFERROR(SUM(OFFSET(B1,0,0,1,MATCH(0,B1:$N1,0))),SUM(B1:$N1))))
 
Upvote 0
Solution

Forum statistics

Threads
1,216,099
Messages
6,128,822
Members
449,469
Latest member
Kingwi11y

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