Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
smskater
 
Posts: n/a
Default Counting the number of times someone called in sick

How do I count the number of times a person has called in sick?

9/1/05 work
9/2/05 work
9/3/05 sick
9/4/05 sick
9/5/05 work
9/6/05 sick

The above example shows the person called in sick 2 times for 3 days.
How do I create a formula that reflects this?

thanks

  #2   Report Post  
Chip Pearson
 
Posts: n/a
Default

Use the COUNTIF function. Something like

=COUNTIF(B1:B100,"sick")


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"smskater" wrote in message
ups.com...
How do I count the number of times a person has called in sick?

9/1/05 work
9/2/05 work
9/3/05 sick
9/4/05 sick
9/5/05 work
9/6/05 sick

The above example shows the person called in sick 2 times for 3
days.
How do I create a formula that reflects this?

thanks



  #3   Report Post  
smskater
 
Posts: n/a
Default

Thanks, but this just shows the total for sick. How do I count the
occurrences?
Chip Pearson wrote:
Use the COUNTIF function. Something like

=COUNTIF(B1:B100,"sick")


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"smskater" wrote in message
ups.com...
How do I count the number of times a person has called in sick?

9/1/05 work
9/2/05 work
9/3/05 sick
9/4/05 sick
9/5/05 work
9/6/05 sick

The above example shows the person called in sick 2 times for 3
days.
How do I create a formula that reflects this?

thanks


  #4   Report Post  
Dave Peterson
 
Posts: n/a
Default

If you have something in those cells (and it looks like you do), you can use:

=counta(b1:b100)



smskater wrote:

Thanks, but this just shows the total for sick. How do I count the
occurrences?
Chip Pearson wrote:
Use the COUNTIF function. Something like

=COUNTIF(B1:B100,"sick")


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"smskater" wrote in message
ups.com...
How do I count the number of times a person has called in sick?

9/1/05 work
9/2/05 work
9/3/05 sick
9/4/05 sick
9/5/05 work
9/6/05 sick

The above example shows the person called in sick 2 times for 3
days.
How do I create a formula that reflects this?

thanks


--

Dave Peterson
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
counting the number of printed spreadsheets James Westh Excel Worksheet Functions 1 September 2nd 05 07:20 AM
after entering certain number of times wrong password file can cur Rao Ratan Singh Excel Discussion (Misc queries) 1 August 28th 05 05:51 PM
counting number of particular items in a list vikkam Excel Discussion (Misc queries) 8 July 5th 05 09:35 AM
doubling a number X number of times Bob Excel Worksheet Functions 1 June 17th 05 01:54 AM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 08:16 PM


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