Lookup to populate names with groups

sparky2205

Well-known Member
Joined
Feb 6, 2013
Messages
507
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi folks,
I have data in this format:
Group1Group2Group3Group4Group5Group6Group7Group8Group9Group10
User1User2User1User3User1User5User4User7User8User6
User5User5User7User4User2User6User10User1User8
User8User4User9User6User3User7User9
User10User4User3
User5User1
User6
User7

I want to display the data in this format:
Group1Group2Group3Group4Group5Group6Group7Group8Group9Group10
User1User1User1User1User1
User2User2User2
User3User3User3
User4User4User4User4User4
User5User5User5User5User5User6
User6User7User6User6User6
User7User7User7User7User8
User8User8User3User8User9
User9User9User1
User10User10User10

I've tried a few lookups but I'm just not getting it right.
Any help is much appreciated.
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Just checking, but I'm assuming/hoping that the cells in red are mistakes, because otherwise I'm a little lost....

MrExcel
ABCDEFGHIJK
1Group1Group2Group3Group4Group5Group6Group7Group8Group9Group10
2User1User1User1User1User1
3User2User2User2
4User3User3User3
5User4User4User4User4User4
6User5User5User5User5User5User6
7User6User7User6User6User6
8User7User7User7User7User8
9User8User8User3User8User9
10User9User9User1
11User10User10User10
Sheet3
 
Upvote 0
Agree with Dan_W, the red cells should be a mistake...


Below formula should do the trick.

=IFERROR(INDEX(A$1:A$8,MATCH($A12;A$1:A$8,0),0),"")

1664963901730.png


/Skovgaard
 
Upvote 0
Solution
Oops! Silly me. You are correct.
Group1Group2Group3Group4Group5Group6Group7Group8Group9Group10
User1User1User1User1User1User1
User2User2User2
User3User3User3User3
User4User4User4User4User4
User5User5User5User5User5
User6User6User6User6User6User6
User7User7User7User7
User8User8User8User8
User9User9User9
User10User10User10
 
Upvote 0
Thanks Skovgaard,
that works perfectly. Just one correction in case someone else is ever looking at this:
=IFERROR(INDEX(A$1:A$8,MATCH($A12;A$1:A$8,0),0),"") Previous
=IFERROR(INDEX(A$1:A$8,MATCH($A12,A$1:A$8,0),0),"") Current
In case it's not obvious there is a semicolon in the MATCH which should be a comma.

Thanks for your help.
 
Upvote 0
You're Welcome 👍

Sorry, missed to correct one semicolon with comma, In my country we use the semicolon instead of comma 😁

/Skovgaard
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,633
Latest member
DougMo

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