Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
self_made1
 
Posts: n/a
Default Counting consecutive periods


I have a spreadsheet listing monthly % returns in a column and would
like to count the number of consecutive up and down months for a given
time period (ie there were 5 months in a row that were up during the
last year). Is there a function or way to do this without macros?

Thanks in advance,

Brett


--
self_made1Posted from - http://www.officehelp.in

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Counting consecutive periods

Brett,

You could try this

in B1, enter 0
in B2, =IF(F2F1,H1+1,0)
and copy down. You can see the max value in the column

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"self_made1" wrote in message
...

I have a spreadsheet listing monthly % returns in a column and would
like to count the number of consecutive up and down months for a given
time period (ie there were 5 months in a row that were up during the
last year). Is there a function or way to do this without macros?

Thanks in advance,

Brett


--
self_made1Posted from - http://www.officehelp.in



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
Count Intervals of 2 Consecutive Values in same Row and Return Count across Row Sam via OfficeKB.com Excel Worksheet Functions 6 November 29th 05 03:27 PM
adding three consecutive columns Darin Gibson Excel Worksheet Functions 1 November 22nd 05 08:50 PM
Counting number of consecutive zeros at the end of a list [email protected] Excel Discussion (Misc queries) 2 September 22nd 05 12:47 PM
Return Consecutive Values - Pairs Sam via OfficeKB.com Excel Worksheet Functions 6 July 2nd 05 04:43 PM
Counting... Patrick G Excel Worksheet Functions 3 February 23rd 05 10:05 PM


All times are GMT +1. The time now is 06:36 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"