Using VBA to collect data from work-schedule using multiple criteria

Thijs_Beard

New Member
Joined
Feb 22, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi Excel Gurus,
For the last few days I'm wrapping my head around an Excel related difficulty and even though I'm pretty used to working with Excel and VBA, I can't figure it out myself.
I have a work schedule as shown below, each number in the schedule represents a different type of work to be done. 1 is Gatekeeper, 2 is Standby, 3 is Vacation etc.
What I would like to achieve is to make a list on another sheet, with all start- and end-dates of the work per employee.
So the output should be like:

NameType of shiftStart dateEnd date
Robert221-0224-02
Robert125-0225-02
Erik225-0203-03

etcetera...

This is the Schedule;

Standby rooster Technisch Regisseur v2.0.xlsx
ABCDEFGHIJKLMNOPQRSTUVW
1Year202220222022
2Week8910
3Daymotuwethfrsasumotuwethfrsasumotuwethfrsasu
4Date21-0222-0223-0224-0225-0226-0227-0228-0201-0302-0303-0304-0305-0306-0307-0308-0309-0310-0311-0312-0313-03
5Name
6Robert22221111555
7Marcel5555 1 1222
8Erik122222221
9Willy1555555511
10Thijs1332222222333
11Dennis5555555
12Tonny111
Sheet2


Who can be my saviour?

Kind regards,

Thijs
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

Similar threads

Forum statistics

Threads
1,223,237
Messages
6,170,924
Members
452,366
Latest member
TePunaBloke

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