Index Match data to provide multiple results in columns

lomond44

New Member
Joined
May 6, 2014
Messages
7
I need some help with a spreadsheet that contains 2 worksheets.

The first sheet contains part numbers and the assemblies that they are used in. Each part number can be used in many assemblies.

On the 2nd sheet is a list of just the part numbers without duplicates. The aim is to create columns to the right of each part number that identifies all the assemblies that the part is used in.

I have looked at this link How To Return Multiple Match Values in Excel Using INDEX-MATCH or VLOOKUP | eImagine Technology Group but I do not want the results to be down a column but to go across the row.

Any help appreciated :)
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Aladin I think you might be the answer to my prayers.

I have a similar issue.

I have 2 sheets, Master & Participants.

Master has all the information pertaining to the account spread across columns A-AT. With column A being the Acct#.

Participants has all the information pertaining to each participant for each account, but each account can have multiple participants (Usually about 3 per account and a max of 10 per my countif test. Spread across columns A-AA (27 columns). Again with column A being Acct#

I need to append each participants data to the end of the Master sheet starting in column AU, then if there is more than one participant the next participant would start in column BU, then CU, etc.


Here are some screen shots if that helps but it is only a snippet.


Excel 2010
ABCD
1Account NumberAccount StatusIPRegistration Type
2ABC001004Open905TRANSFER ON DEATH ( INDIVIDUAL )
3ABC001012Open905JOINT
4ABC001053Open726PARTNERSHIP
5ABC001061Open905CORPORATION
6ABC001079Open905TRANSFER ON DEATH ( INDIVIDUAL )
7ABC001103Open905TRANSFER ON DEATH ( INDIVIDUAL )
8ABC001111Open905INDIVIDUAL
9ABC001129Open305INDIVIDUAL
10ABC001137Open726DLJ RETIREMENT ACCOUNT
11ABC001145Open726INDIVIDUAL
12ABC001152Open726INDIVIDUAL
13ABC001186Open307INDIVIDUAL
14ABC001202Open306DLJ RETIREMENT ACCOUNT
15ABC001210Open307DLJ RETIREMENT ACCOUNT
16ABC001236Open905DLJ RETIREMENT ACCOUNT
17ABC001244Open905DLJ RETIREMENT ACCOUNT
Master



Excel 2010
ABCDEF
1Acct #Customer RoleParticipantParticipant Role NameBeneficiary %DOB
2ABC001004PRIMARY ACCOUNT HOLDEREdite SmithCUSTOMER0%2/26/1975
3ABC001004INTERESTED PARTYTimmy SmithINTERESTED PARTY0%2/27/1975
4ABC001012PRIMARY ACCOUNT HOLDERRobert RileyCUSTOMER0%2/28/1975
5ABC001012SECONDARY ACCOUNT HOLDERNancy RileyCUSTOMER20%1/2/2016
6ABC001079BENEFICIARYKimberly DoeCUSTOMER20%1/3/2016
7ABC001079BENEFICIARYScott DoeCUSTOMER15%1/4/2016
8ABC001079BENEFICIARYSuzanne DoeCUSTOMER15%1/5/2016
9ABC001079BENEFICIARYErik DoeCUSTOMER15%1/6/2016
10ABC001079PRIMARY ACCOUNT HOLDERJohn DoeCUSTOMER0%1/7/2016
11ABC001079BENEFICIARYRandy DoeCUSTOMER15%1/8/2016
Participants


Thank you in advance (If this is even possible that is)
 
Upvote 0
@bobby35k

It's not clear how these two exhibits relate and how the output should look like. Care to elaborate?
 
Upvote 0
Account NumberAccount StatusIPRegistration TypeCustomer RoleParticipantParticipant Role NameBeneficiary %DOBCustomer RoleParticipantParticipant Role NameBeneficiary %DOBCustomer RoleParticipantParticipant Role NameBeneficiary %DOBCustomer RoleParticipantParticipant Role NameBeneficiary %DOBCustomer RoleParticipantParticipant Role NameBeneficiary %DOBCustomer RoleParticipantParticipant Role NameBeneficiary %DOB
ABC001004Open905TRANSFER ON DEATH ( INDIVIDUAL )PRIMARY ACCOUNT HOLDEREdite SmithCUSTOMER0%2/26/1975INTERESTED PARTYTimmy SmithINTERESTED PARTY0%2/27/1975
ABC001012Open905JOINTPRIMARY ACCOUNT HOLDERRobert RileyCUSTOMER0%2/28/1975SECONDARY ACCOUNT HOLDERNancy RileyCUSTOMER20%1/2/2016
ABC001079Open905TRANSFER ON DEATH ( INDIVIDUAL )PRIMARY ACCOUNT HOLDERJohn DoeCUSTOMER0%1/7/2016BENEFICIARYScott DoeCUSTOMER15%1/4/2016BENEFICIARYKimberly DoeCUSTOMER20%1/3/2016BENEFICIARYSuzanne DoeCUSTOMER15%1/5/2016BENEFICIARYErik DoeCUSTOMER15%1/6/2016BENEFICIARYRandy DoeCUSTOMER15%1/8/2016

<tbody>
</tbody>

So for example if you look at account number ABC001012 it is a joint account with 2 account holders. So on the Master sheet I want each account holder in the same row as that account number one after another. Some rows "accounts" may only have 1 participant while others will have many. The participants sheet is a fixed number of 27 columns.

I pasted above what the result should appear like. Except my sheets have a lot more columns.

Thank you for replying to my post. (Also I hope my data above comes out right, I am not currently on my work computer like I was earlier)
 
Upvote 0
Account NumberAccount StatusIPRegistration TypeCustomer RoleParticipantParticipant Role NameBeneficiary %DOBCustomer RoleParticipantParticipant Role NameBeneficiary %DOBCustomer RoleParticipantParticipant Role NameBeneficiary %DOBCustomer RoleParticipantParticipant Role NameBeneficiary %DOBCustomer RoleParticipantParticipant Role NameBeneficiary %DOBCustomer RoleParticipantParticipant Role NameBeneficiary %DOB
ABC001004Open905TRANSFER ON DEATH ( INDIVIDUAL )PRIMARY ACCOUNT HOLDEREdite SmithCUSTOMER0%2/26/1975INTERESTED PARTYTimmy SmithINTERESTED PARTY0%2/27/1975
ABC001012Open905JOINTPRIMARY ACCOUNT HOLDERRobert RileyCUSTOMER0%2/28/1975SECONDARY ACCOUNT HOLDERNancy RileyCUSTOMER20%1/2/2016
ABC001079Open905TRANSFER ON DEATH ( INDIVIDUAL )PRIMARY ACCOUNT HOLDERJohn DoeCUSTOMER0%1/7/2016BENEFICIARYScott DoeCUSTOMER15%1/4/2016BENEFICIARYKimberly DoeCUSTOMER20%1/3/2016BENEFICIARYSuzanne DoeCUSTOMER15%1/5/2016BENEFICIARYErik DoeCUSTOMER15%1/6/2016BENEFICIARYRandy DoeCUSTOMER15%1/8/2016

<tbody>
</tbody>

So for example if you look at account number ABC001012 it is a joint account with 2 account holders. So on the Master sheet I want each account holder in the same row as that account number one after another. Some rows "accounts" may only have 1 participant while others will have many. The participants sheet is a fixed number of 27 columns.

I pasted above what the result should appear like. Except my sheets have a lot more columns.

Thank you for replying to my post. (Also I hope my data above comes out right, I am not currently on my work computer like I was earlier)

I think you should sollicite VBA for the arrangement of records you want (You might even want to start a new thread on this problem.).
 
Upvote 0
I have read through this and several other sites to find an answer to my problem that seems like it should be solved with your answers here, but after 2 days of searching I can't get it to work. PLEASE HELP!

I have a spreadsheet of records with a Salesman assigned to each; this information is formatted into a table using Excel for MAC 2016. On the next sheet I want to make several lists of the customer names on the records that correspond to the Salesman and their respective statuses. I have tried to use the formulas you've noted in this thread, but the data list that is returned is erratic at best.


SHEET1
DateLast NameCSStatus
3/21HarrisSALESMAN1APPROVED
3/23CalkinsSALESMAN2APPROVED
3/23WeaverSALESMAN1APPROVED

<colgroup><col><col><col><col></colgroup><tbody>
</tbody>


SHEET2

SALESMAN APPROVED

SALESMAN1 HARRIS
WEAVER
... ETC ....

This is my most recent attempt:

=IFERROR(INDEX('SHEET!'!$B$2:$B$600,SMALL(IF('SHEET!'!$C$2:$C$600=$B$1, IF('SHEET1'!$D$2:$D$600="APPROVED",ROW('SHEET1'!$B$2:$B$600)-ROW('SHEET1'!$B$2)+1)), ROWS($B$3:B10))),"")

but it is not even close; it returns a last name, but it is not the first in the list, and repeats the same result down the entire results column ... if at all possible I'd also rather use Table references rather than the fixed cell references and ranges; something like this.

=IFERROR(INDEX(Table3[Last Name],SMALL(IF(Table3[CS]=$B1,ROW(Table3[Last Name])-ROW(Table3[@CS])+1),
ROW(Table3[[CS]:[CS]]))),"")

Thank you!
 
Upvote 0
SHEET2

SALESMANSALESMAN1
APPROVEDHARRIS
WEAVER
ETC …

<tbody>
</tbody>

Let A:D of SHEET1 house the input data.

SHEET2

A1: SALESMAN
B1: SALESMAN1

A2: STATUS
B2: APPROVED

In A3 enter:

=COUNTIFS(SHEET1!C2:C400,B1,SHEET1!D2:D400,B2)

In A5 control+shift+enter, not just enter, and copy down:

=IF(ROWS($A$5:A5)<=$A$3,INDEX(SHEET1!$B$2:$B$400,SMALL(IF(SHEET1!$C$2:$C$400=$B$1,IF(SHEET1!$D$2:$D$400=$B$2,ROW(SHEET1!$B$2:$B$400)-ROW(SHEET1!$B$2)+1)),ROWS($A$5:A5))),"")
 
Upvote 0

Forum statistics

Threads
1,214,584
Messages
6,120,384
Members
448,956
Latest member
JPav

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