Retrieve multiple values with only one specified in multiple vertical rows

Excelquestion35

Board Regular
Joined
Nov 29, 2021
Messages
53
Office Version
  1. 2016
Platform
  1. Windows
Hi all,

For a project I need to retrieve all supervisor names belonging to a certain customer in a sort of list view. The retrieved values serve as input for a drop down list.
I tried using VLOOKUP but then I will retrieve only the first value, but actually I need all separate values in multiple cells (amount is equal to the amount of unique supervisors)

I tried the following:
Excel Formula:
=VLOOKUP($D$1;'[Site overview (1).xlsx]FLMs'!$B:$C;2;FALSE)

D1 is the name of the customer
Column B are all customer names in another file
Column C are all supervisor names in another file

Any idea how I can achieve this?
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Maybe this may help, note that all sheets must be open for the formula to work

Site Overview 1.xlsx
AB
1CustomerSupervisor
2Customer9Supervisor1
3Customer2Supervisor2
4Customer3Supervisor3
5Customer4Supervisor4
6Customer9Supervisor5
7Customer6Supervisor6
8Customer9Supervisor7
9Customer8Supervisor8
10Customer9Supervisor9
11Customer10Supervisor10
Sheet1


Extract.xlsx
AB
2CustomerCustomer9
3SupervisorSupervisor1
4
5Supervisor List
6Supervisor1
7Supervisor5
8Supervisor7
9Supervisor9
Sheet1
Cell Formulas
RangeFormula
A6:A9A6=IF(ROWS($A$6:A6)>COUNTIF('[Site Overview 1.xlsx]Sheet1'!$A$2:$A$100000,$B$2),"",INDEX('[Site Overview 1.xlsx]Sheet1'!$B:$B,SMALL(IF('[Site Overview 1.xlsx]Sheet1'!$A:$A=$B$2,ROW('[Site Overview 1.xlsx]Sheet1'!$A$2:$A$100000)-ROW('[Site Overview 1.xlsx]Sheet1'!$A$1)),ROWS($A$6:A6))))
Press CTRL+SHIFT+ENTER to enter array formulas.
Named Ranges
NameRefers ToCells
Supervisor=Sheet1!$A$6:INDEX(Sheet1!$1:$100000,COUNTA('[Site Overview 1.xlsx]Sheet1'!$A$2:$A$100000),1)A6:A9
Cells with Data Validation
CellAllowCriteria
B3List=Supervisor
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,751
Members
448,989
Latest member
mariah3

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