Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default COUNT SEPARATE PERIODS IN COLUMN

Hi - I am using a COUNTIF formula to count all S (Sick) entries in a column.
What I also need to be able to do is count the number of separate periods of
sickness.
E.g. entries in the column:

S
S
S
D
D
-
D
S
S

would equate to 5 days sickness with 2 separate periods of sickness.

How do I count the latter with a formula?

All help/ suggestions gratefully received.

Thanks in advance.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default COUNT SEPARATE PERIODS IN COLUMN

=SUMPRODUCT((A1:A10="S")*(A1:A10<A2:A11))

Regards,
Tom Ogilvy



Paul Bird wrote in message
...
Hi - I am using a COUNTIF formula to count all S (Sick) entries in a

column.
What I also need to be able to do is count the number of separate periods

of
sickness.
E.g. entries in the column:

S
S
S
D
D
-
D
S
S

would equate to 5 days sickness with 2 separate periods of sickness.

How do I count the latter with a formula?

All help/ suggestions gratefully received.

Thanks in advance.




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
Adding digits in a column based on data in a separate column adriver Excel Discussion (Misc queries) 4 April 21st 10 12:41 AM
How to count the number of months between 2 periods? Eric Excel Discussion (Misc queries) 3 February 5th 08 06:52 PM
Stacked Columns (two separate companies, 3 time periods) al Excel Discussion (Misc queries) 1 January 31st 08 12:11 PM
Calculating return for multiple separate time periods trey1982 Excel Worksheet Functions 4 December 11th 07 07:50 PM
Automating averaging a column over time periods. A S-D Excel Discussion (Misc queries) 3 May 22nd 06 12:30 PM


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