Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 48
Default counting how many employees are scheduled to work by hour

Hi,

I am using the below formula to count how many employees are scheduled to
work by hour but it is not counting if the shift starts in the PM and ends in
the AM.

=SUMPRODUCT(($B$3:$B$24<=$A36)*($C$3:$C$24=$A37))

Thank you for your help in advance.
--
Amin
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,696
Default counting how many employees are scheduled to work by hour

=IF($A36$A37,SUMPRODUCT(($B$3:$B$24<=$A36)*($C$3: $C$24=$A37)),SUMPRODUCT(($B$3:$B$24=$A36)+($C$3: $C$24<=$A37)))

"amin" wrote:

Hi,

I am using the below formula to count how many employees are scheduled to
work by hour but it is not counting if the shift starts in the PM and ends in
the AM.

=SUMPRODUCT(($B$3:$B$24<=$A36)*($C$3:$C$24=$A37))

Thank you for your help in advance.
--
Amin

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 48
Default counting how many employees are scheduled to work by hour

Thanks Sean for the response.

It is not giving me the desired results. I only have 2 members schedled on
Saturday. One from 10 AM to 9 PM and the other from 10 PM to 8 AM.

A36 is 12:00 AM so the result should be 1.

The formula you provided is giving me 42.

Any ideas?
--
Amin


"Sean Timmons" wrote:

=IF($A36$A37,SUMPRODUCT(($B$3:$B$24<=$A36)*($C$3: $C$24=$A37)),SUMPRODUCT(($B$3:$B$24=$A36)+($C$3: $C$24<=$A37)))

"amin" wrote:

Hi,

I am using the below formula to count how many employees are scheduled to
work by hour but it is not counting if the shift starts in the PM and ends in
the AM.

=SUMPRODUCT(($B$3:$B$24<=$A36)*($C$3:$C$24=$A37))

Thank you for your help in advance.
--
Amin

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default counting how many employees are scheduled to work by hour

Try like this

=SUMPRODUCT((($B$3:$B$24<=$A36)+($C$3:$C$24=$A37) +($B$3:$B$24$C$3:$C
$24)=2)+0)

regards, daddy
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
need formula for counting employees by hour David Excel Worksheet Functions 6 November 10th 08 01:00 AM
Clearing scheduled work hours for weekends. Phil B. Excel Worksheet Functions 6 September 30th 08 01:58 PM
Clearing scheduled work hours for weekends Phil B. Excel Worksheet Functions 6 September 25th 08 09:03 PM
Counting The Number of Employees Matlock Excel Discussion (Misc queries) 1 February 29th 08 12:39 PM
How can i set up work schedule for 5 employees help me New Users to Excel 1 July 10th 05 09:50 PM


All times are GMT +1. The time now is 07:54 PM.

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"