2013-09-16 22 views
0

自动数据值我有两个excel文件与此数据:擅长:更换为同等价值

文件1:

Name -------------- Code 
John     12345 
Dave     54321 
Maria    98765 
Cole     68596 

and .... (1000 name and code) 

文件2:(与文件1的代码值)

Code ------------  address 
12345    test address 
54321    test address 
98765    test address 
68596    test address 

and .... (1000 name and address) 

现在我需要创建一个文件来显示code/name/address。如何生成这个?如何用excel/(or any method)代替自动数据值为相似的代码。我需要这个文件:

NOTE: code similar in two file.

+0

尝试查找vlookup – Jerry

+0

索引/匹配从File1中获取名称,Vlookup从文件2中获取地址 – tigeravatar

+0

在excel中我很新手。你能告诉我如何使用更详细的描述来使用Vlookup。谢谢 – user2715503

回答

0

我不办公用品的专业用户,但:

在文件1,让我们说,如果名称是在A列,和守则塔B,在小区C2输入:

=VLOOKUP(B2,'[File2name.xls]Sheet1'!A:B,2,0)' 

注:change File2name to the respective file name, and Sheet1 to the worksheet's name if necessary

并将公式向下复制。完成后,复制C列,右键单击C列,然后单击选择性粘贴,然后选择值并单击确定。 并且一旦完成,根据需要重新排列列。