Count Weekly Staff Formula

Finalfight40

Active Member
Joined
Apr 24, 2018
Messages
273
Office Version
  1. 365
Platform
  1. Windows
Hi All

I am looking for some help with a formula.

I have a simplified table below:

NAMESTART DATEEND DATECATEGORY
George14/04/2018Comp
Jeff09/07/201808/09/2018Comp
Bob01/02/201815/05/2018Comp
Cathy01/07/2018MM
Jenny03/07/201810/07/2018Comp

<tbody>
</tbody>

And on another sheet i have the week commencing dates, sample below (the dates would just increase by 1 week every time):

02/07/201809/07/2018
*DESIRED RESULT* 1.8*DESIRED RESULT* 2.4

<tbody>
</tbody>

How this formula would work:

In this example i am only looking for Comp's that are currently with us so:


  • The formula would need to look at the category name for Comp.
  • If the end date is blank, they are still with us and should assume they will be with us for foreseeable future.
  • The table can include future starters so would also need to check the start dates.
  • If they are leaving or starting midway through the week (Jenny for example), it would need to factor in how many days they are with us for that week. For example Jenny start on a Tuesday which would mean she would be here for 0.8 of the first week, would leave on the Tuesday and therefore be here for 0.4 of a week.

(assume data starts in A1 for both sheets)

Any help is apprecaited
 
Last edited:

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

Forum statistics

Threads
1,216,225
Messages
6,129,604
Members
449,520
Latest member
TBFrieds

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top