Excel - 基于另一个列表提取数据 [英] Excel - extracting data based on another list

查看:175
本文介绍了Excel - 基于另一个列表提取数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有两列(名称/ ID)的Excel工作表,然后是另一个列表,这个列表只是来自较大的上述列表的名称的子集。我想通过子集列表,然后从较大的列表(名称/ ID)中拉取数据,并将其放在其他位置...基本上只有在名称位于子集上时才从较大的列表中抓取数据。



我尝试使用过滤器,但无法使其工作。



谢谢。

解决方案

新的Excel版本



= IF(ISNA(VLOOKUP(A1,B,B,1,FALSE)),,A1) / p>

旧的Excel版本



= IF(ISNA(VLOOKUP(A1; B:B ; 1; FALSE));; A1)



即:如果A1的值存在于B列中,在这里,如果不存在,请将其留空。


I have an Excel worksheet with two columns (name/ID) and then another list that is a subset of the names only from the larger aforementioned list. I want to go through the subset list and then pull the data from the larger list (name/ID) and put it somewhere else...essentially only grabbing the data from the larger list if the name is on the subset.

I tried using Filters, but couldn't get it work. Thoughts?

Thanks.

解决方案

New Excel versions

=IF(ISNA(VLOOKUP(A1,B,B,1,FALSE)),"",A1)

Older Excel versions

=IF(ISNA(VLOOKUP(A1;B:B;1;FALSE));"";A1)

That is: "If the value of A1 exists in the B column, display it here. If it doesn't exist, leave it empty."

这篇关于Excel - 基于另一个列表提取数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆