Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
tower_of_love_m
 
Posts: n/a
Default I need to add a range of cells until I reach a cell with a zero va

And then start again. Example c1=1,c2=1,c3=1,c4=0 value = 3 (c1-c3) lets say
c5=1,c6=0 new value =1(c5)
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default I need to add a range of cells until I reach a cell with a zero va

D2: =MAX(1,MAX(IF(C$1:C2="",ROW(C$1:C2))))

which is an array formula, so commit with Ctrl-Shift-Enter, not justr enter

E2: =IF(AND(C2<0,C3=0),SUM(INDIRECT("C"&D2&":C"&ROW() )),"")

copy D2 and E2 down.

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"tower_of_love_m" wrote in
message ...
And then start again. Example c1=1,c2=1,c3=1,c4=0 value = 3 (c1-c3) lets

say
c5=1,c6=0 new value =1(c5)



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
Transfer Cell Formatting for linked cells Scott Excel Discussion (Misc queries) 2 November 23rd 05 11:04 PM
Counting empty cells within a range of cells Rosehill - ExcelForums.com New Users to Excel 2 May 2nd 05 08:53 AM
Copy cells into range of cells until cell change mdeanda Excel Worksheet Functions 1 April 22nd 05 08:41 PM
Counting empty cells within a range of cells Rosehill - ExcelForums.com New Users to Excel 0 April 7th 05 12:47 AM
How do you delete one cell from a range of protected cells Cgbilliar Excel Worksheet Functions 2 November 3rd 04 10:42 PM


All times are GMT +1. The time now is 05:56 AM.

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

About Us

"It's about Microsoft Excel"