Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 1
Default Using COUNTIF for Counting Words?

Hi Gents...

First post here!

I have a staff list in Excel where each employee has either IN or OUT stored in a cell relating to each day of the week...

I need to count, for each day, how many INs there are amongst the staff, and also how many OUTs there are...

I've tried using the following formula:-

=COUNTIF(B1:B100,IN)

To try and count the instances of the word IN from that column but always get the answer "0" appear...

What am I doing wrong? :huh:
Cheers
Rich
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

=COUNTIF(B1:B100,"IN")

Maybe????

Rich B wrote:

Hi Gents...

First post here!

I have a staff list in Excel where each employee has either IN or OUT
stored in a cell relating to each day of the week...

I need to count, for each day, how many INs there are amongst the
staff, and also how many OUTs there are...

I've tried using the following formula:-

=COUNTIF(B1:B100,IN)

To try and count the instances of the word IN from that column but
always get the answer "0" appear...

What am I doing wrong? :huh:
Cheers
Rich

--
Rich B


--

Dave Peterson
  #3   Report Post  
Nick Danger
 
Posts: n/a
Default

The first response (below) might work... I use something similar
although I put a wildcard before and after the text string :

=countif(B1:B100,"*IN*")

Regards

Ben/ND

On Thu, 08 Sep 2005 14:04:36 -0500, Dave Peterson
wrote:

=COUNTIF(B1:B100,"IN")

Maybe????

Rich B wrote:

Hi Gents...

First post here!

I have a staff list in Excel where each employee has either IN or OUT
stored in a cell relating to each day of the week...

I need to count, for each day, how many INs there are amongst the
staff, and also how many OUTs there are...

I've tried using the following formula:-

=COUNTIF(B1:B100,IN)

To try and count the instances of the word IN from that column but
always get the answer "0" appear...

What am I doing wrong? :huh:
Cheers
Rich

--
Rich B

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
triadic combinations of words jayock02 Excel Worksheet Functions 1 June 19th 05 02:10 AM
Spell Checking - Special Words Not Picked Up by Excel Hans Emilio Excel Discussion (Misc queries) 4 May 25th 05 02:25 PM
Combining IF and COUNTIF based on two columns maxtrixx Excel Discussion (Misc queries) 5 March 31st 05 06:21 PM
COUNTIF text where there is more than one word in a cell Abi Excel Worksheet Functions 2 January 20th 05 03:32 AM
Countif - Countif maswinney Excel Worksheet Functions 3 November 15th 04 11:06 PM


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