Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mark
 
Posts: n/a
Default CountIf Function Help Needed

I am trying setup a CountIf function where the following range and count
exists:

Column A Contains word "perm" or "term"
Column B Contains employee name
Column C Contains Number of hours worked - my be null value if employee
did not work.

I want a cell that counts the number of "term" or "perm" employees where the
value in Column C is not null or the value is 0. When ever I try to write
the count if it tells me that I am limited to one range as opposed to
multiple ranges: ie. A3:A22, A40:A75 because the employees are broken up
into teams. If need be I can dismantle the team setup but I would loose
pertinent information about each team. Then again, if the countIf function
works, then I can set up a countif cell that performs based on the multiple
ranges.

Hope this isn't too confusing.

Mark


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Govind
 
Posts: n/a
Default CountIf Function Help Needed

Hi Mark,

Try

=SUMPRODUCT((C1:C1000)*(A1:A100="Temp")) to count the number of temp
employees with hours more than zero.

Change "Temp" to "Perm" to do the same for Permanent employees. You dont
have to worry about the blank rows with no data (Rows 23 to 39 etc.).
Just make sure you cover the entire range where you have the data.

Regards

Govind.

Mark wrote:

I am trying setup a CountIf function where the following range and count
exists:

Column A Contains word "perm" or "term"
Column B Contains employee name
Column C Contains Number of hours worked - my be null value if employee
did not work.

I want a cell that counts the number of "term" or "perm" employees where the
value in Column C is not null or the value is 0. When ever I try to write
the count if it tells me that I am limited to one range as opposed to
multiple ranges: ie. A3:A22, A40:A75 because the employees are broken up
into teams. If need be I can dismantle the team setup but I would loose
pertinent information about each team. Then again, if the countIf function
works, then I can set up a countif cell that performs based on the multiple
ranges.

Hope this isn't too confusing.

Mark


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default CountIf Function Help Needed

=SUMPRODUCT(--(A3:A22="perm"),--(C2:C220))

do one per team, then total all the subtotal formula in a regular sum, the
above formula
assumes that there is either a number or nothing in C



--
Regards,

Peo Sjoblom

Portland, Oregon




"Mark" wrote in message
...
I am trying setup a CountIf function where the following range and count
exists:

Column A Contains word "perm" or "term"
Column B Contains employee name
Column C Contains Number of hours worked - my be null value if employee
did not work.

I want a cell that counts the number of "term" or "perm" employees where
the
value in Column C is not null or the value is 0. When ever I try to
write
the count if it tells me that I am limited to one range as opposed to
multiple ranges: ie. A3:A22, A40:A75 because the employees are broken up
into teams. If need be I can dismantle the team setup but I would loose
pertinent information about each team. Then again, if the countIf
function
works, then I can set up a countif cell that performs based on the
multiple
ranges.

Hope this isn't too confusing.

Mark



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mark
 
Posts: n/a
Default CountIf Function Help Needed

This is great!!

I don't want to push it, but is it possible to right the same formula or with the following modification:

=SUMPRODUCT(--(A3:A22, A28:A41, A49:A66="perm"),--(C3:C22, C28:C41, C49:C660))

Which utilizes multiple ranges within the same function?



"Peo Sjoblom" wrote in message ...
=SUMPRODUCT(--(A3:A22="perm"),--(C2:C220))

do one per team, then total all the subtotal formula in a regular sum, the
above formula
assumes that there is either a number or nothing in C



--
Regards,

Peo Sjoblom

Portland, Oregon




"Mark" wrote in message
...
I am trying setup a CountIf function where the following range and count
exists:

Column A Contains word "perm" or "term"
Column B Contains employee name
Column C Contains Number of hours worked - my be null value if employee
did not work.

I want a cell that counts the number of "term" or "perm" employees where
the
value in Column C is not null or the value is 0. When ever I try to
write
the count if it tells me that I am limited to one range as opposed to
multiple ranges: ie. A3:A22, A40:A75 because the employees are broken up
into teams. If need be I can dismantle the team setup but I would loose
pertinent information about each team. Then again, if the countIf
function
works, then I can set up a countif cell that performs based on the
multiple
ranges.

Hope this isn't too confusing.

Mark



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default CountIf Function Help Needed

Can't you just sum them like

=SUM(SUMPRODUCT(--(A3:A22="perm"),--(C3:C220)),SUMPRODUCT(--(A28:A41="perm"),--(C28:C410)),SUMPRODUCT(--(A49:A66="perm"),--(C49:C660)))

--
Regards,

Peo Sjoblom

Portland, Oregon




"Mark" wrote in message
...
This is great!!

I don't want to push it, but is it possible to right the same formula or
with the following modification:

=SUMPRODUCT(--(A3:A22, A28:A41, A49:A66="perm"),--(C3:C22, C28:C41,
C49:C660))

Which utilizes multiple ranges within the same function?



"Peo Sjoblom" wrote in message
...
=SUMPRODUCT(--(A3:A22="perm"),--(C2:C220))

do one per team, then total all the subtotal formula in a regular sum, the
above formula
assumes that there is either a number or nothing in C



--
Regards,

Peo Sjoblom

Portland, Oregon




"Mark" wrote in message
...
I am trying setup a CountIf function where the following range and count
exists:

Column A Contains word "perm" or "term"
Column B Contains employee name
Column C Contains Number of hours worked - my be null value if
employee
did not work.

I want a cell that counts the number of "term" or "perm" employees where
the
value in Column C is not null or the value is 0. When ever I try to
write
the count if it tells me that I am limited to one range as opposed to
multiple ranges: ie. A3:A22, A40:A75 because the employees are broken up
into teams. If need be I can dismantle the team setup but I would loose
pertinent information about each team. Then again, if the countIf
function
works, then I can set up a countif cell that performs based on the
multiple
ranges.

Hope this isn't too confusing.

Mark




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
How do you ignore hidden rows in a countif() function Scott buckwalter Excel Worksheet Functions 9 August 11th 05 08:36 PM
countif function lili Excel Worksheet Functions 1 July 29th 05 02:38 AM
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
clock Wildman Excel Worksheet Functions 2 April 26th 05 10:31 AM
hOW TO USE THE AND OPERATOR WITH THE COUNTIF FUNCTION Marty Excel Worksheet Functions 1 November 11th 04 09:45 PM


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