Roster lookup table - v/h/x lookup?

Kariba

Board Regular
Joined
Mar 15, 2023
Messages
59
Office Version
  1. 365
Platform
  1. Windows
Hi, after some advice please.

I have created a roster - small snapshot below. I also have daily worksheets and need to copy across the names and shifts on a daily basis. The obvious way is just to copy/paste the name column and then the relevant date column. The full roster is quite large and the destination file is in a slightly different format so needs some tidying up/formatting/sorting into time order etc even with copy/paste so seeing if there are easier ways to do it automatically. VLookup won't work as I'd need the names already in the destination file to refer back to the source file. I don't know much about xlookup as I'm new to it - would that work?


Book1.xlsx
ABCDEFGHIJKLMN
1Lieu DaysHol EntitlementTotalBookedRemainingFriSatSunMonTueWed
227-Oct-2328-Oct-2329-Oct-2330-Oct-2331-Oct-2301-Nov-23
31Name1DRIVER - DAYS5-13:005-13:005-13:0012-20:00
41Name1DRIVER - DAYS34881220122
52Name2DRIVER - DAYS5-13:005-13:005-13:0012-20:00
62Name2DRIVER - DAYS87561430143
73Name3DRIVER - DAYS5-13:005-13:005-13:0012-20:00
83Name3DRIVER - DAYS34971310131
94Name4DRIVER - DAYS5-13:005-13:005-13:0012-20:00
104Name4DRIVER - DAYS24024024
115Name5DRIVER - DAYS5-13:005-13:005-13:0012-20:00
125Name5DRIVER - DAYS62881508142H8
136Name6DRIVER - DAYS5-13:005-13:005-13:0012-20:00
146Name6DRIVER - DAYS881602480248
Sheet1
Cell Formulas
RangeFormula
I1:N1I1=I2
J2:N2J2=I2+1
F4,F14,F12,F10,F8,F6F4=D4+E4
G4,G14,G12,G10,G8,G6G4=COUNTIFS($I4:$FM4, "H4")*4 +COUNTIFS($I4:$FM4, "H6")*6+COUNTIFS($I4:$FM4, "H8")*8 + COUNTIFS($I4:$FM4, "H10")*10 + COUNTIFS($I4:$FM4, "H12")*12+COUNTIFS($I4:$FM4, "LD8")*8 + COUNTIFS($I4:$FM4, "LD10")*10 + COUNTIFS($I4:$FM4, "LD12")*12
H4,H14,H12,H10,H8,H6H4=F4-G4
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:N2Dates OccurringtodaytextNO
I3:N14Cell Valuecontains "S"textNO
H3:H14Cell Value<0textNO
A1:C1,I1:N1Cell Value="FRI"textNO
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
can you provide an example of where you want the names to pull from? And then what you would want the result to be?

Chances are that if VLOOKUP won't work, XLOOKUP won't work either. XLOOKUP is just an updated version of vlookup that adds in hlookup functionality. (XLookup can be used either vertically or horizontally.
 
Upvote 0
OK thanks. This is the source data. Wanted to 'export' the relevant column from here to the daily sheets. I wasn't going to copy/paste from here but data wouldn't be live and any changes made here wouldn't show on daily sheets. Trying to make it as easy and foolproof for the regular users as possible.
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,165
Members
453,021
Latest member
Justyna P

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