days worked each month based on start and end date of employment

sweenyk

New Member
Joined
Nov 23, 2022
Messages
1
Office Version
  1. 365
Platform
  1. MacOS
Hi, This is my first post, so hello to all.
Please see image attached - i'm trying to write a formula that would calculate the working days (networkdays is OK, with no holidays), each month per employee - based on their start, and end date of employment (if applicable) which is in column B & C.
Any help would be much appreciated.
thank you
 

Attachments

  • Screenshot 2022-11-23 at 11.01.22.png
    Screenshot 2022-11-23 at 11.01.22.png
    84.6 KB · Views: 21

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
How about this:
Book1
ABCDEFGHIJKLMNO
1Year: 2022
2NameStartEndJanFebMarAprMayJunJulAugSepOctNovDec
3Kody Donoso04/04/2022            
4Raul Shrewsbury02/02/202209/26/2022        169   
5Colten Davidson05/01/201903/31/2022  762         
6Travis Parker08/01/202012/07/2022           613
Sheet1
Cell Formulas
RangeFormula
D2:O2D2=DATE($C$1,COLUMN()-3,1)
D3:O6D3=IF( AND( NOT(ISBLANK($B3)), NOT(ISBLANK($C3)), $C3<=EOMONTH(D$2,0), MONTH($C3)=MONTH(D$2)), NETWORKDAYS.INTL($B3,$C3,1),"")
C6C6=TODAY()

This will only work for a year, so I added the Year: so that it can be adapted for next year which is only 24 days away! It will change automatically on Jan 1, but can be hard coded as well.
This was easy enough to set up manually, but PLEASE use XL2BB in the future.
 
Upvote 0

Forum statistics

Threads
1,223,239
Messages
6,170,947
Members
452,368
Latest member
jayp2104

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