Xlookup Formula Issue.

Shaner1215

New Member
Joined
Jan 6, 2025
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I am trying to make 2 separate Employee Schedules, One has a list of every employees name and the shift location and time for each day of the week. The other is a daily schedule that shows which shift they are working and time for that specific day.

1736218362525.png

For each day I used the formula =XLOOKUP("Test Name",FRI!C4:C33&FRI!N4:N33,FRI!B4:B33&FRI!M4:M33) into each bigger box. When I fill out the other sheet. I highlight all of the Columns in Row C and Row N as my Lookup array and Columns B and M as my Return Array.

1736218881629.png

When I put the name into this spreadsheet here. The formula gives me this as a result, Pulling both times from row 21 when i only want the 5:00-10:45 time.
1736219186487.png


How do I make it to where it would only display the 5:00-10:45 time and not both.

Sorry for not being able to use Xl2bb as I only have access to this file at work.
 

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.
Not sure if this is correct or not but when you add the "&" symbol its might add two returns. =XLOOKUP("Test Name",FRI!C4:C33&FRI!N4:N33,FRI!B4:B33&FRI!M4:M33)
=XLOOKUP(B4,D4:D9,E4:E9&G4:G9)
1736220713809.png
 
Upvote 0

Forum statistics

Threads
1,225,323
Messages
6,184,280
Members
453,227
Latest member
Slainte

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