Using XLOOKUP and returning multiple results

morrowj04

New Member
Joined
Oct 8, 2022
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Hi

Ive tried various concoctions of formulas to get this to work.

Im Stuck now and have no idea so its time i reach out to the specialists :)

I have two sheets

One called Colleagues and another called Live.

Colleagues sheet is a list of names and Departments

Live Sheet is Department.

What im trying to do is using XLOOKUP pull the inofrmation from the colleague sheet and only put the names of the people in the Live Department in the Live sheet.

Now in my formula on the Live Sheet,
I use the MID function to get the name of the sheet which forms part of the larger formula to get the colleague name.

I would like each colleagues name to be in the relevant sheet. but this only pulls the first one it finds.

Can you help me achieve this, i tried FILTER but it didnt work but it could just be me not fully understanding the function usage.


Thanks in Advance for your help




Colleagues Sheet

testspread.xlsx
AB
1Colleague Nameteam
2JATesting
3JCTesting
4JDTesting
5
6
7JGProduction
8JHProduction
9
10JILive
11JKLive
12JLLive
Colleague



Live Sheet

testspread.xlsx
AB
1JI
2JI
3JI
4
5
6
7
8
9
10
Live
Cell Formulas
RangeFormula
A1:A2A1=XLOOKUP("*"&MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,256)&"*",Colleague!B2:B100,Colleague!A2:A100,,2)
A3A3=XLOOKUP("*"&MID(CELL("filename",A3),FIND("]",CELL("filename",A3))+1,256)&"*",Colleague!B3:B102,Colleague!A3:A102,,2)
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Try:
Colleague Sheet
Book2
AB
1Colleague Nameteam
2JATesting
3JCTesting
4JDTesting
5
6
7JGProduction
8JHProduction
9
10JILive
11JKLive
12JLLive
Colleague


Live Sheet

Book2
A
1JI
2JK
3JL
Live
Cell Formulas
RangeFormula
A1:A3A1=FILTER(Colleague!$A$2:$A$12,Colleague!$B$2:$B$12="Live","No Data")
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,216,077
Messages
6,128,685
Members
449,463
Latest member
Jojomen56

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