#1   Report Post  
baldyheed
 
Posts: n/a
Default reset to zero


i need to keep a running total of a random series of numbers in a column
and when a zero appears i need it reset to zero and start counting again
from the next number, hope i explained this as easy as possible? thanks
for any help.


--
baldyheed
------------------------------------------------------------------------
baldyheed's Profile: http://www.excelforum.com/member.php...o&userid=27721
View this thread: http://www.excelforum.com/showthread...hreadid=472366

  #2   Report Post  
Biff
 
Posts: n/a
Default

Hi!

Assume the numbers are in the range A1:An

Enter this formula in B1:

=(A10)*1

Enter this formula in B2 and copy down as needed:

=IF(A2=0,0,B1+1)

Biff

"baldyheed" wrote
in message ...

i need to keep a running total of a random series of numbers in a column
and when a zero appears i need it reset to zero and start counting again
from the next number, hope i explained this as easy as possible? thanks
for any help.


--
baldyheed
------------------------------------------------------------------------
baldyheed's Profile:
http://www.excelforum.com/member.php...o&userid=27721
View this thread: http://www.excelforum.com/showthread...hreadid=472366



  #3   Report Post  
Bryan Hessey
 
Posts: n/a
Default


Assuming that your numbers are in column A, in cell B1 put
=A1

in cell B2 put
=if(A2=0,0,B1+A2)

and formula-copy that to the end of your numbers.



baldyheed Wrote:
i need to keep a running total of a random series of numbers in a column
and when a zero appears i need it reset to zero and start counting again
from the next number, hope i explained this as easy as possible? thanks
for any help.



--
Bryan Hessey
------------------------------------------------------------------------
Bryan Hessey's Profile: http://www.excelforum.com/member.php...o&userid=21059
View this thread: http://www.excelforum.com/showthread...hreadid=472366

  #4   Report Post  
Biff
 
Posts: n/a
Default

reset to zero and start counting again

I thought they wanted a count.

Well, either way we got it covered!

Biff

"Bryan Hessey"
wrote in message
news:Bryan.Hessey.1w95ic_1128218708.6221@excelforu m-nospam.com...

Assuming that your numbers are in column A, in cell B1 put
=A1

in cell B2 put
=if(A2=0,0,B1+A2)

and formula-copy that to the end of your numbers.



baldyheed Wrote:
i need to keep a running total of a random series of numbers in a column
and when a zero appears i need it reset to zero and start counting again
from the next number, hope i explained this as easy as possible? thanks
for any help.



--
Bryan Hessey
------------------------------------------------------------------------
Bryan Hessey's Profile:
http://www.excelforum.com/member.php...o&userid=21059
View this thread: http://www.excelforum.com/showthread...hreadid=472366



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I reset my color palette in Excel? msandine Excel Discussion (Misc queries) 1 August 31st 05 01:11 AM
Autofilter reset button Cheese Excel Discussion (Misc queries) 6 July 9th 05 06:39 PM
Reset Button in Excel? Jan C. Excel Worksheet Functions 3 July 2nd 05 02:08 AM
How reset margins in Excel workbook? KYgirl Excel Discussion (Misc queries) 1 April 29th 05 12:52 AM
set or reset the print range for several sheets at a time? Mestrella31 Excel Discussion (Misc queries) 2 January 10th 05 09:07 PM


All times are GMT +1. The time now is 07:41 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"