小编sng*_*ynn的帖子

将单元格中的值与现有列匹配并返回相邻单元格文本

我有一个电子表格,其中包含a栏中的患者,b栏中患者的诊断以及c栏中的医生.我有另一张表,其中列出了a列中的医生,列b中列出了他们的练习组.我需要一个功能,它将查看表1中列c中的每个值,将其与第2页(医生列表)中第a列的医生匹配,并将练习组返回到表1中的第d列.我尝试了一些公式包括这一个

=IFERROR(VLOOKUP(C2,'Doctors List'!A:B,2,FALSE),"")
Run Code Online (Sandbox Code Playgroud)

但似乎无法得到任何工作!它只是返回空白.请帮忙!

**表1

Patient Name   Diagnosis    Attending Physician    Practice Group**
Patient A      Diagnosis    Dr. Smith   
Patient B      Diagnosis    Dr. John    
Patient C      Diagnosis    Dr. Joe 
Patient D      Diagnosis    Dr. Ken 
Patient E      Diagnosis    Dr. Williams    
Patient F      Diagnosis    Dr. Williams    
Patient G      Diagnosis    Dr. Smith   
Patient H      Diagnosis    Dr. Jones
Run Code Online (Sandbox Code Playgroud)

**表2

Physician          Practice Group**
Dr. Smith          Practice A
Dr. John           Medical Group A
Dr. Joe            Practice B
Dr. Ken            Medical Group B
Dr. Williams       Practice C
Dr. Jones …
Run Code Online (Sandbox Code Playgroud)

excel vlookup

5
推荐指数
1
解决办法
4万
查看次数

标签 统计

excel ×1

vlookup ×1