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.
 
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

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
E2:
Excel Formula:
=A2
F2:
Excel Formula:
=VLOOKUP($E2,$A$2:$B$7,2,0)
G2:
Excel Formula:
=INDEX($K$2:$K$7,MATCH($E2,$M$2:$M$7,0))
H2:
Excel Formula:
=INDEX($L$2:$L$7,MATCH($E2,$M$2:$M$7,0))
 
Upvote 1
Solution
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)
 
Upvote 1
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,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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