Return Multiple matches horizontally from vertical data

AllMB

New Member
Joined
Mar 16, 2018
Messages
24
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
I am working in Excel 365.

I have a list of names that work at the same location and other work at multiple locations. I need to return the locations horizontally based on the name. I will then run a basic function to find those that are working at different locations.

If possible could the formula only return unique values and not duplicates? ie, those working at the same location only return one value and only return multiple values if they work at several locations.

I have worked with iferror, index, aggregate and running into issues since I could not get the filter function to work. Below is an example of what I would be working with but with up to 5,000 rows.

1595871552376.png


Anything you can do to help point me in the right direction would be appreciated.
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Can you post your data, including expected results, using the XL2BB add-in.
Also when you say you cant get the filter function to work, do you mean you don't yet have that function, or you couldn't get it to give the correct result?
 
Upvote 0
Fluff,

I can post the expected results but the data is considered sensitive (the return value would be a number). I don't think the filter function is on/in excel for our work computers. Getting it added by IT would be ridiculous since any changes have to be approved by IT.

Below is what the results should look like, hopefully.

1595877641822.png
 
Upvote 0
I was asking you to post your sample data, not your actual data & the reason for using the XL2BB add-in is to save me having to recreate your data.

If you type =uni into a cell is one of the options UNIQUE?
 
Upvote 0
I was asking you to post your sample data, not your actual data & the reason for using the XL2BB add-in is to save me having to recreate your data.

If you type =uni into a cell is one of the options UNIQUE?

Unique is not one of the formula options I have available. Let me get on my personal computer and create the data quickly.
 
Upvote 0
No need I have done it, as there wasn't much to create :)
How about
+Fluff New.xlsm
ABCDEFGHI
1NameLocationLocationLocationLocationLocation
2Name 1Location 10Name 1Location 10Location 11Location 12  
3Name 1Location 10Name 2Location 10    
4Name 1Location 11Name 3Location 11    
5Name 1Location 12Name 4Location 15    
6Name 2Location 10 
7Name 2Location 10 
8Name 2Location 10 
9Name 2Location 10 
10Name 3Location 11 
11Name 3Location 11
12Name 3Location 11
13Name 4Location 15
14Name 4Location 15
15Name 4Location 15
16
Data
Cell Formulas
RangeFormula
E2:I5E2=IFERROR(INDEX($B$2:$B$50,AGGREGATE(15,6,(ROW($A$2:$A$50)-ROW($A$2)+1)/($A$2:$A$50=$D2)/ISNA(MATCH($B$2:$B$50,$D2:D2,0)),1)),"")
D2:D10D2=IFERROR(INDEX($A$2:$A$50,AGGREGATE(15,6,(ROW($A$2:$A$50)-ROW($A$2)+1)/(ISNA(MATCH($A$2:$A$50,$D$1:$D1,0))*($A$2:$A$50<>"")),1)),"")
 
Upvote 0
Fluffy,

It worked on the test data, I will now apply it to the real data and let you know how it goes.
 
Upvote 0
Fluffy,


Worked perfectly. I will have to do some more research into the aggregate function.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,924
Messages
6,122,294
Members
449,077
Latest member
Rkmenon

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