multi column/row match from one sheet and populate data on another

ShadowHunter

New Member
Joined
Feb 24, 2015
Messages
1
I want to fill in Sheet2 with Sheet1 Column A that match Sheet1 Column B to Sheet2 Column A and Sheet1 Column C matched to Sheet2 Row 1.

Data on Sheet1
column AColumn BColumn C
Mike11boy
sean19adult male
susan14girl
becky18adult female
steve11adult male
sherry14adult female
ann14girl
mark11adult male
blake11adult male
shannon14girl

<tbody>
</tbody>

Data on Sheet 2 has criteria to match on Row 1 and Column A

BoyGirlAdult MaleAdult Female
11
19
14
18

<tbody>
</tbody>
So end result should look like this

NameBoyGirlAdult MaleAdult Female
11Mikesteve
mark
blake
19sean
14susan
ann
shannon
Sherry
18becky

<tbody>
</tbody>
My feable attempt on the first cell match up... not going good. Obviously I need lots of help :)

My try consisted of Index(Sheet1!A:A,MATCH(Sheet2!A2,Sheet1!C)*(Sheet2!B1,Sheet!B),0)
my try doesn't even touch concatenating multiple matches into a single cell...
 
Last edited:

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
I can get it to work for one match but multiple involves a little more work. First I entered this into Sheet2 cell B2, and filled down and across the table.

=IFERROR(INDEX(Sheet1!$A$1:$A$10,MATCH($A2,IF(Sheet1!$C$1:$C$10=B$1,Sheet1!$B$1:$B$10),0)),"")

If you want to return multiple matches you could use this link: Use INDEX to lookup multiple values in a list. Learn | Five Minute Lessons to help you come up with a formula (but this would involve having a list of all the ones that match "11" and "boy" in one column, "19" and "boy" in another column, etc. etc.)... if you want to then concatenate them all into one cell it would get even crazier. I would love to help but I am actually supposed to be doing homework right now. Maybe someone else can come up with a better idea. Good luck.
 
Upvote 0

Forum statistics

Threads
1,215,336
Messages
6,124,334
Members
449,155
Latest member
ravioli44

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