【发布时间】:2015-09-14 14:14:04
【问题描述】:
我在 Excel 工作表中有一些值,即 B、D 和 E 列中的值是:
**B** **C** **D** **E**
Cryptography 11 1 Applied Mathematics
Machine Learning 23 2 Analysis of Algorithms
Networks and Communication 26 3 Automata Theory
Networks and Communication 26 4 Artificial Intelligence
Robotics 30 5 Biological Networks
Computer Graphics 10 6 Combinatorial Optimization
Data Mining 12 7 Computability Theory
Combinatorial Optimization 6 8 Computational Complexity Theory
Applied Mathematics .. 9 Computer Vision
Analysis of Algorithms .. 10 Computer Graphics
Information Retrieval .. 11 Cryptography
Artificial Intelligence .. 12 Data Mining
Artificial Intelligence .. 13 Data Structures
Programming Languages .. 14 Databases
Data Mining .. 15 Digital Logic
Cryptography .. 16 Distributed Computing
Information Retrieval .. 17 Evolutionary Computation
Machine Learning .. 18 Human Computer Interaction
Machine Learning .. 19 Image Processing
... .. .. ...
... .. .. ...
... .. .. ...
而column C 是空的。
现在我必须将column B 中的值与column E 匹配,找到匹配的行,我必须从column D 复制相应的ID 并将其放入column C。而我已经在column C 中手动输入了一些值以便快速了解。
【问题讨论】:
-
VLOOKUP 是您正在寻找的。基本上,您给出要查找的内容的范围,与什么进行比较,并返回任何值。这正是它的用途。
-
@durbnpoisn - 在这种情况下,
Vlookup()可能不是最直接的选择,而不需要 OP 更改他的数据。Vlookup()的表格范围将从他想要返回的内容开始(D 列),then 是他查找的范围。他必须先切换 D 列和 E 列。
标签: excel text multiple-columns