Help on Days worked within criteria

ElfordB

New Member
Joined
Nov 17, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hey all,

Was hoping some one could help with this as i cant get my head around it.

I have a set of data (pictured) where each day i have an employee number tagged if the are active, i als have how many weeks they have been active.
What im looking for is to create a formula that will, (on each day within each week per employee number) show the working day number of that week as shown to the right of the picture as an example.

Hope that explains what im trying to do and look forward to hearing some advise :)

TIA

DRTtobeCLEANed20221115.xlsx
ABCDEF
1WEEK_COMMENCINGACTIVE_DATEEMPLOYEEWKS_NUMLike This
218/09/202216/09/202210100104611
318/09/202217/09/202210100104612
425/09/202220/09/202210100104621
525/09/202221/09/202210100104622
625/09/202222/09/202210100104623
725/09/202223/09/202210100104624
825/09/202224/09/202210100104625
902/10/202226/09/202210100104631
1002/10/202227/09/202210100104632
1102/10/202228/09/202210100104633
1202/10/202229/09/202210100104634
1302/10/202230/09/202210100104635
1402/10/202201/10/202210100104636
1521/08/202218/08/202210101010311
1621/08/202219/08/202210101010312
1721/08/202220/08/202210101010313
1828/08/202222/08/202210101010321
1928/08/202223/08/202210101010322
2028/08/202224/08/202210101010323
2128/08/202225/08/202210101010324
2228/08/202226/08/202210101010325
2328/08/202227/08/202210101010326
2404/09/202230/08/202210101010331
2504/09/202231/08/202210101010332
2604/09/202201/09/202210101010333
2704/09/202202/09/202210101010334
2804/09/202203/09/202210101010335
Sheet2
 

Attachments

  • Example.PNG
    Example.PNG
    63.8 KB · Views: 3

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Hi & welcome to MrExcel.
How about
Excel Formula:
=COUNTIFS(C$2:C2,C2,D$2:D2,D2)
 
Upvote 0
Hi & welcome to MrExcel.
How about
Excel Formula:
=COUNTIFS(C$2:C2,C2,D$2:D2,D2)
I think thats it, i cant believe i didnt think of that and was trying to be overly complicated.
Thank you fluff thats awesome!
 
Upvote 0

Forum statistics

Threads
1,214,943
Messages
6,122,380
Members
449,080
Latest member
Armadillos

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