Comparing two files intruducing comments

riverad

New Member
Joined
Apr 9, 2014
Messages
21
Hi Guys, how are you all doing? Im fine ;)
A Quick question, i have two different files with the following:

File 1:

Has phone numbers and on the right side of the phone number is also the name of the entity.

File 2:

In the second file, i have only the phone numbers, and i need some formula, so that if the phone
number appears on both files, the cell on the right side should automatically fill up with its name.

Example:

6829872Casa Suba3497230Embajada Suiza
3200846Viejos6831002Diego Fernando
6260330Felipe Chavarriaga6829872Casa Suba
3497230Embajada Suiza6832274Diego Orchestra
3344912Casona Centro6260330Felipe Chavarriaga
6831002Diego Fernando3497230Embajada Suiza
6832274Diego Orchestra

<tbody>
</tbody><colgroup><col><col><col span="2"><col span="3"></colgroup>
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
You can do this by using the VLOOKUP function.

Place this formula in File2 cell B1 "=IFERROR(VLOOKUP(A1,[File1.xlsm]Sheet1!$A$1:$B$7,2,0),"")"

Replace the red text with your workbook name

Replace the blue text with the data range in File1

Although this will create a link between the two file which may lead to future issues.
 
Upvote 0

Forum statistics

Threads
1,216,222
Messages
6,129,586
Members
449,520
Latest member
TBFrieds

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