#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Countif

I have a spreadsheet where I want to count the number of sick days for
individuals.
So I have the name of the person in a column and the date for the year in a
row
Name/Date 1/1 ......10/02.......20/08......30/08....12/09
An Other S s
P Peter S
I want to count the number of "S" for each person
so on seperate tab I want
Name Number of Sick Days
AN Other 2
P Peter 1
Any Suggestions
thanks Andrew
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,886
Default Countif

Hi Andrew

If your list on Sheet2 is in the same order as the data on Sheet 1, then
on Sheet2 cell B2 enter
=COUNTIF('Sheet1'!B2:IV2,"S")
Copy down column B for the extent of entries in column A

--
Regards

Roger Govier


"Andrewllan" wrote in message
...
I have a spreadsheet where I want to count the number of sick days for
individuals.
So I have the name of the person in a column and the date for the year
in a
row
Name/Date 1/1 ......10/02.......20/08......30/08....12/09
An Other S s
P Peter S
I want to count the number of "S" for each person
so on seperate tab I want
Name Number of Sick Days
AN Other 2
P Peter 1
Any Suggestions
thanks Andrew



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,069
Default Countif

There is a beautiful template for this in Execel Templates from Microsoft
Templates Business and Legal Meetings and Projects Agendas and Minutes

http://office.microsoft.com/en-us/te...CT061995981033
- This doesn't need much editing to disply what you are asking.

Hope this helps

"Andrewllan" wrote:

I have a spreadsheet where I want to count the number of sick days for
individuals.
So I have the name of the person in a column and the date for the year in a
row
Name/Date 1/1 ......10/02.......20/08......30/08....12/09
An Other S s
P Peter S
I want to count the number of "S" for each person
so on seperate tab I want
Name Number of Sick Days
AN Other 2
P Peter 1
Any Suggestions
thanks Andrew

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Countif

The sort of thing I was looking for was

Lookup( Tab2(a1) (If (Tab2(a1)= Tab1(a1) and Any of Tab1(a2:a365="S") count
number of "S"'S)
I do not know how else to describe this
Thanks Andrew



"Roger Govier" wrote:

Hi Andrew

If your list on Sheet2 is in the same order as the data on Sheet 1, then
on Sheet2 cell B2 enter
=COUNTIF('Sheet1'!B2:IV2,"S")
Copy down column B for the extent of entries in column A

--
Regards

Roger Govier


"Andrewllan" wrote in message
...
I have a spreadsheet where I want to count the number of sick days for
individuals.
So I have the name of the person in a column and the date for the year
in a
row
Name/Date 1/1 ......10/02.......20/08......30/08....12/09
An Other S s
P Peter S
I want to count the number of "S" for each person
so on seperate tab I want
Name Number of Sick Days
AN Other 2
P Peter 1
Any Suggestions
thanks Andrew




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,886
Default Countif

Hi Andrew

Then try
=SUMPRODUCT((Sheet1!A2=Sheet2!A2)*(Sheet1!B2:IV2=" S"))
Copy down as appropriate

--
Regards

Roger Govier


"Andrewllan" wrote in message
...
The sort of thing I was looking for was

Lookup( Tab2(a1) (If (Tab2(a1)= Tab1(a1) and Any of Tab1(a2:a365="S")
count
number of "S"'S)
I do not know how else to describe this
Thanks Andrew



"Roger Govier" wrote:

Hi Andrew

If your list on Sheet2 is in the same order as the data on Sheet 1,
then
on Sheet2 cell B2 enter
=COUNTIF('Sheet1'!B2:IV2,"S")
Copy down column B for the extent of entries in column A

--
Regards

Roger Govier


"Andrewllan" wrote in message
...
I have a spreadsheet where I want to count the number of sick days
for
individuals.
So I have the name of the person in a column and the date for the
year
in a
row
Name/Date 1/1 ......10/02.......20/08......30/08....12/09
An Other S s
P Peter S
I want to count the number of "S" for each person
so on seperate tab I want
Name Number of Sick Days
AN Other 2
P Peter 1
Any Suggestions
thanks Andrew






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
sumproduct vs. countif Coal Miner Excel Discussion (Misc queries) 1 June 15th 06 09:34 PM
Countif Formula /Sort Bug??? orcfodder Excel Discussion (Misc queries) 2 January 12th 06 10:04 AM
COUNTIF or not to COUNTIF on a range in another sheet Ellie Excel Worksheet Functions 4 September 15th 05 10:06 PM
Combining IF and COUNTIF based on two columns maxtrixx Excel Discussion (Misc queries) 5 March 31st 05 06:21 PM
Countif - Countif maswinney Excel Worksheet Functions 3 November 15th 04 11:06 PM


All times are GMT +1. The time now is 01:56 PM.

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"