What's the best way to pull data from this sheet?

eraust

New Member
Joined
Sep 13, 2022
Messages
17
Office Version
  1. 365
Platform
  1. Windows
Hi All

I need some help brainstorming the most efficient way to pull data from my scheduling workbook. Unfortunately, I don't have the option of changing the layout, but what I need to do is pull data on how many of each shift each person has worked over time. So essentially, columns B to E.

At the end of the year I'd like to be able to see how many of each start and finish time each person has worked and on what date. I currently have a dashboard created with a filter function that allows me to filter by person and see start/end times, but I'd like to be able to pull the whole group at once, as I want to use this data for other things.

Each worksheet like the example below is 7 days, so the workbook will eventually contain 52 sheets (one for each week of the year). Column C is actually the workers names in the real version.

Workers may not necessarily be on the same start/end time every day of the week so it's no use for me to just pull data from the first day of the week, I need all 7 days days from each sheet.

The example is significantly reduced too, so I'd rather not have to remove any of the spaces between days as the live version of this document is pretty busy to look at as it is, although I appreciate the spaces may complicate things?

Would really appreciate your ideas. Thanks in advance.

Example Schedule.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAK
20:001:002:003:004:005:006:007:008:009:0010:0011:0012:0013:0014:0015:0016:0017:0018:0019:0020:0021:0022:0023:000:001:002:003:004:005:006:00
3Start TimeEnd Time23:000:001:002:003:004:005:006:007:008:009:0010:0011:0012:0013:0014:0015:0016:0017:0018:0019:0020:0021:0022:0023:000:001:002:003:004:005:00
4mi03/04Shift 16:0012:00      Shift 1Shift 1Shift 1Shift 1Shift 1Shift 1                   
5mi03/04Shift 215:0019:00               Shift 2Shift 2Shift 2Shift 2            
6mi03/04Shift 3                                
7mi03/04Shift 422:001:00                      Shift 4Shift 4Shift 4      
8mi03/04Shift 56:0010:00      Shift 5Shift 5Shift 5Shift 5                     
9
10######0:001:002:003:004:005:006:007:008:009:0010:0011:0012:0013:0014:0015:0016:0017:0018:0019:0020:0021:0022:0023:000:001:002:003:004:005:006:00
11Start TimeEnd Time23:000:001:002:003:004:005:006:007:008:009:0010:0011:0012:0013:0014:0015:0016:0017:0018:0019:0020:0021:0022:0023:000:001:002:003:004:005:00
12ju04/04Shift 16:0012:00      Shift 1Shift 1Shift 1Shift 1Shift 1Shift 1                   
13ju04/04Shift 215:0019:00               Shift 2Shift 2Shift 2Shift 2            
14ju04/04Shift 38:0014:00        Shift 3Shift 3Shift 3Shift 3Shift 3Shift 3                 
15ju04/04Shift 423:002:00Shift 4                      Shift 4Shift 4Shift 4     
16ju04/04Shift 5                                
Schedule 1
Cell Formulas
RangeFormula
A4:A8A4=TEXT($A$1,"ddd")
B4:B8B4=$A$1
E4:E8,E12:E16E4=IF($D4<>"",XLOOKUP($C4,'Show Info & Data Validation'!$A$2:$A$11,'Show Info & Data Validation'!$B$2:$B$11)+$D4,"")
F4:AC8,AE12:AK16,AE4:AK8F4=IF($D4="","",IF(AND(F$2>=TRUNC($D4,10),F$2<TRUNC($E4,10)),$C4,""))
A10A10=$A$1+1
A12:A16A12=TEXT($A$10,"ddd")
B12:B16B12=$A$10
F12:AC16F12=IF($D12="",IF(AE4<>"",AE4,""),IF(AE4<>"",AE4,"")&(IF($D12="","",IF(AND(F$2>=TRUNC($D12,10),F$2<TRUNC($E12,10)),$C12,""))))
Cells with Data Validation
CellAllowCriteria
D4:D8List='Show Info & Data Validation'!$D$2:$D$25
D12:D16List='Show Info & Data Validation'!$D$2:$D$25
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Hello eraust, have you tried to do your calculations and manipulations in columns BA (or whatever open columns you have to the right)? or do the calculations in rows 1001 and below. While you are not able to change the layout and design of the sheet, you can go to the empty areas to do your calculations (i assume). If you go to to right, or to the bottom, other people will never see your work, but you will know what it is used for. I would do the calculations beginning in row 1001, and manipulate the data in that area until you have the answer. once you have the answer, you can repeat it for those 52 sheets, then have a single summary sheet to consolidate all the 52 single sheets. hope this helps. cheers!
 
Upvote 1

Forum statistics

Threads
1,223,948
Messages
6,175,579
Members
452,652
Latest member
eduedu

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