XLOOKUP ISSUES generating work schedules

FreAnd

New Member
Joined
Feb 8, 2022
Messages
10
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
Hi All :)

I'm trying to use XLOOKUP to fill a list with data from another list.

In list 1 I have the staff assigned to the different projects over the week.
In some cases two staff members will work on the same project.

In list 2 I want to show the day by day assignment for each staff member
according to list 1.

But I can't get XLOOKUP to work and I think it is because the look up array cant be over two columns (B5:C10).
because it works if I only set it in one.
Is there a better function to get this to work?

1676224213046.png


Any help or advice would be greatly appricated :)

Best regards
Fred
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Hi, try this formula for I6
=XLOOKUP(H6,B6:B11,A6:A11,XLOOKUP(H6,C6:C11,A6:A11,""))
 
Upvote 0
Sorry, my formula is wrong in #2.

This is the correct formula for I6:
=XLOOKUP(H6,B$5:B$10,A$5:A$10,XLOOKUP(H6,C$5:C$10,A$5:A$10,""))

Projects.xlsx
 
Upvote 0
Another option
Projects.xlsx
ABCDEFGHIJ
1
2
3
4MondayMondayTuesdayTuesdayMondayTuesday
5Project 1DaveSteveDaveSteveDaveProject 1Project 1
6Project 2SteveSteveProject 1, Project 2Project 1
7Project 3Mike Project 5
8Project 4
9Project 5Mike
10Project 6
Munka1
Cell Formulas
RangeFormula
I5:I7I5=TEXTJOIN(", ",,IFERROR(TOCOL(IF($B$5:$C$10=H5,$A$5:$A$10,x),2),""))
J5:J7J5=TEXTJOIN(", ",,IFERROR(TOCOL(IF($D$5:$E$10=H5,$A$5:$A$10,x),2),""))
 
Upvote 0
Hi, I modified the formula so that it can show more projects for a day.
The new formula for I6:
=TRIM(XLOOKUP(H6,B$5:B$10,A$5:A$10,"")&" "&XLOOKUP(H6,C$5:C$10,A$5:A$10,""))

Projects2.xlsx
 
Upvote 0
Hi, I modified the formula so that it can show more projects for a day.
The new formula for I6:
=TRIM(XLOOKUP(H6,B$5:B$10,A$5:A$10,"")&" "&XLOOKUP(H6,C$5:C$10,A$5:A$10,""))

Projects2.xlsx
Ah,
Many thanks!
Great idea to combine two lookups, this works!!!
And can absolutely see the need to show more than one project for the day.
Again. thank you! :)🙏
 
Upvote 0
Another option
Projects.xlsx
ABCDEFGHIJ
1
2
3
4MondayMondayTuesdayTuesdayMondayTuesday
5Project 1DaveSteveDaveSteveDaveProject 1Project 1
6Project 2SteveSteveProject 1, Project 2Project 1
7Project 3Mike Project 5
8Project 4
9Project 5Mike
10Project 6
Munka1
Cell Formulas
RangeFormula
I5:I7I5=TEXTJOIN(", ",,IFERROR(TOCOL(IF($B$5:$C$10=H5,$A$5:$A$10,x),2),""))
J5:J7J5=TEXTJOIN(", ",,IFERROR(TOCOL(IF($D$5:$E$10=H5,$A$5:$A$10,x),2),""))
Thank you my friend!!
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0
Hi, I am very glad that the formula works.
If I have enough knowledge, I am happy to help at any time.
 
Upvote 0

Forum statistics

Threads
1,215,336
Messages
6,124,338
Members
449,155
Latest member
ravioli44

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