VLOOKUP and match return in whole column

YellowTangerine

New Member
Joined
Mar 5, 2023
Messages
29
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hello, I'm new here. Apologies ahead of I don't use the correct terminology.

I have data coming from two sources that I need to combine and match on a spreadsheet. The answers can't be returned in a single cell but match through and answered for each row in a column.

One source supplies just a name in one column and a unique code for each name in a second column.

The second source supplies the name (which matches the first source) but also an email address and another name associated with the name in the first source.

I need to bring all three pieces of information together into one worksheet and wondered if there is a way to use the VLOOKUP to populate cell in a column with a match, rather than just returning an answer in one cell.

Thank you in advance for your support.
 
Thank you. I'll go and see if I can replicate this. Sorry about my poor terminology. I need to match all the data so that each Name 1 column is correctly matched to the correct email address in the second source data. Hope that makes better sense?
I now understand. Thank you. How can I ensure the Unique ID is included in the result of the VLOOKUP please?
 
Upvote 0
This is a simple VLOOKUP issue. I don't get what you mean by "match the whole column". You can automate it with getting index from column:
Excel Formula:
=VLOOKUP($A2,$H$2:$J$5,COLUMN(A1),0)

View attachment 86786
Thank you so much. I am uploading a sample data spreadsheet which should make it much clearer. This is a new area for me. I'm so grateful for your support. I hope you will be able to see the outcome I now desire and my apologies for the poor communication from my side. Please see below:

POC Data 050323.xlsx
ABCDEFGHIJKLM
1Child NameUnique CodeChild Name Unique CodeParent NameParent EmailParent NameParent EmaiChild Name
2Child 3359fh4#N/A#N/A#N/AName 1test1@gmail.comChild 1
3Child 1359fh5#N/A#N/A#N/AName 2test2@gmail.comChild 2
4Child 5359fh6#N/A#N/A#N/AName 3test3@gmail.comChild 3
5Child 4359fh7#N/A#N/A#N/AName 4test4@gmail.comChild 4
6Child 2359fh8#N/A#N/A#N/AName 5test5@gmail.comChild 5
7Child 6359fh9#N/A#N/A#N/AName 6test6@gmail.comChild 6
8
9Data Source 1ResultData Source 2
Sheet1
Cell Formulas
RangeFormula
E2:E7,G2:G7E2=VLOOKUP($A2:$A7,$K$2:$M$7,COLUMN(A1),0)
F2:F7F2=VLOOKUP($B2:$B7,COLUMN(B1),0)
Dynamic array formulas.
 
Upvote 0
This post explains things better but it got locked as it's a duplicate question. If anyone can please help me O would be very grateful. Thank you.

 
Upvote 0

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Yes it does. Thank you. I will look at both options tomorrow now. Much appreciated 🙂
 
Upvote 0
Is this what you are looking for?

Book1
ABCDEFGH
1DATA SOURCE 1RESULT AFTER COMBINING BOTH THE SOURCES
2Child Name (Common)Unique CodeChild Name (Common)Unique CodeParent NameParent EmaiL
3Child 3359fh4Child 1359fh5Name 1test1@gmail.com
4Child 1359fh5Child 2359fh8Name 2test2@gmail.com
5Child 5359fh6Child 3359fh4Name 3test3@gmail.com
6Child 4359fh7Child 4359fh7Name 4test4@gmail.com
7Child 2359fh8Child 5359fh6Name 5test5@gmail.com
8Child 6359fh9Child 6359fh9Name 6test6@gmail.com
9(Directly copy pasted from data source 2)(vlookup applied - looking up for unique codes from data source 1 against Child name in data course 2(Directly copy pasted from data source 2)(Directly copy pasted from data source 2)
10
11DATA SOURCE 2
12Parent NameParent EmaiLChild Name (Common)
13Name 1test1@gmail.comChild 1
14Name 2test2@gmail.comChild 2
15Name 3test3@gmail.comChild 3
16Name 4test4@gmail.comChild 4
17Name 5test5@gmail.comChild 5
18Name 6test6@gmail.comChild 6
Sheet1
Cell Formulas
RangeFormula
F3:F8F3=VLOOKUP(E3,$A$3:$B$8,2,0)
Is this what you are looking for?

Book1
ABCDEFGH
1DATA SOURCE 1RESULT AFTER COMBINING BOTH THE SOURCES
2Child Name (Common)Unique CodeChild Name (Common)Unique CodeParent NameParent EmaiL
3Child 3359fh4Child 1359fh5Name 1test1@gmail.com
4Child 1359fh5Child 2359fh8Name 2test2@gmail.com
5Child 5359fh6Child 3359fh4Name 3test3@gmail.com
6Child 4359fh7Child 4359fh7Name 4test4@gmail.com
7Child 2359fh8Child 5359fh6Name 5test5@gmail.com
8Child 6359fh9Child 6359fh9Name 6test6@gmail.com
9(Directly copy pasted from data source 2)(vlookup applied - looking up for unique codes from data source 1 against Child name in data course 2(Directly copy pasted from data source 2)(Directly copy pasted from data source 2)
10
11DATA SOURCE 2
12Parent NameParent EmaiLChild Name (Common)
13Name 1test1@gmail.comChild 1
14Name 2test2@gmail.comChild 2
15Name 3test3@gmail.comChild 3
16Name 4test4@gmail.comChild 4
17Name 5test5@gmail.comChild 5
18Name 6test6@gmail.comChild 6
Sheet1
Cell Formulas
RangeFormula
F3:F8F3=VLOOKUP(E3,$A$3:$B$8,2,0)
Thank you. This is definitely an option that could work, depending on the state of the data sources once received. I'm very grateful for your support. Thank you.
 
Upvote 0

Forum statistics

Threads
1,216,108
Messages
6,128,872
Members
449,475
Latest member
Parik11

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