#1   Report Post  
Posted to microsoft.public.excel.misc
dan dan is offline
external usenet poster
 
Posts: 866
Default count days

I have a list of 41 dates employees can possibly work. I need to calculate
how many days each employee worked of the 41 dependant on their start date.
so I can work out a percentage of days worked. So if employee john started
work on the 1st day and was still employed on the last day, we would divide
total days actually worked by total days possible worked (41) to find
percentage of days worked.

however the days possible will change from 41 if an employee started after
the firsts possible day.

A B C D
name 10/04/2007 10/22/2007 10/31/2007
1 tom yes yes

2 JOe yes yes

3 sally yes yes yes


--
Dan
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,355
Default count days

I'd use this formula

=SUMPRODUCT(--(C$1:H$1=B3),--(C3:H3="Yes"))/SUMPRODUCT(--(C$1:H$1=B3))

C1:H1 contain the dates. I added a column B that contains the start date
B3 contains the start date for the individual. C3:H3 contain Yes or Blank
as to whether the worker worked those days. Format the cell with this
formujla as % and you'll get the percentage of time they've worked since they
started.
--
HTH,
Barb Reinhardt



"Dan" wrote:

I have a list of 41 dates employees can possibly work. I need to calculate
how many days each employee worked of the 41 dependant on their start date.
so I can work out a percentage of days worked. So if employee john started
work on the 1st day and was still employed on the last day, we would divide
total days actually worked by total days possible worked (41) to find
percentage of days worked.

however the days possible will change from 41 if an employee started after
the firsts possible day.

A B C D
name 10/04/2007 10/22/2007 10/31/2007
1 tom yes yes

2 JOe yes yes

3 sally yes yes yes


--
Dan

  #3   Report Post  
Posted to microsoft.public.excel.misc
dan dan is offline
external usenet poster
 
Posts: 866
Default count days

that worked, and way simplier than what i was planning!
--
Dan


"Barb Reinhardt" wrote:

I'd use this formula

=SUMPRODUCT(--(C$1:H$1=B3),--(C3:H3="Yes"))/SUMPRODUCT(--(C$1:H$1=B3))

C1:H1 contain the dates. I added a column B that contains the start date
B3 contains the start date for the individual. C3:H3 contain Yes or Blank
as to whether the worker worked those days. Format the cell with this
formujla as % and you'll get the percentage of time they've worked since they
started.
--
HTH,
Barb Reinhardt



"Dan" wrote:

I have a list of 41 dates employees can possibly work. I need to calculate
how many days each employee worked of the 41 dependant on their start date.
so I can work out a percentage of days worked. So if employee john started
work on the 1st day and was still employed on the last day, we would divide
total days actually worked by total days possible worked (41) to find
percentage of days worked.

however the days possible will change from 41 if an employee started after
the firsts possible day.

A B C D
name 10/04/2007 10/22/2007 10/31/2007
1 tom yes yes

2 JOe yes yes

3 sally yes yes yes


--
Dan

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
COUNT how many ROWS ago out of 10 days that the highest high in 10 days was made rhhince Excel Worksheet Functions 1 January 14th 07 09:56 PM
count days Larry New Users to Excel 3 June 2nd 06 04:24 PM
Count # days Annette Excel Worksheet Functions 2 April 25th 06 09:01 PM
count down the days??? Ltat42a Excel Discussion (Misc queries) 2 October 26th 05 02:09 AM
Count of days Albert Excel Worksheet Functions 5 March 2nd 05 08:33 PM


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