如何使用Excel中vlookup查询找出两列的不同?

本文介绍了如何使用Excel的vlookup函数来对比和查找两个AD用户列表之间的不同。通过将本地AD和Azure AD用户数据导入Excel,设置vlookup公式,可以轻松发现未同步的用户。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

最近企业在进行将本地AD用户同步到Azure上,在同步完成后需要对本地用户同步情况进行验证。已经完成了导出本地ADAzure AD的两个user表,我们需要进行比对是否一致。

 

对于比对方式,可以通过Excelvlookup进行,具体步骤如下:

  1. 打开Excel,将本地和AzureAD user分别copyexcel的两列显示。选择另外一列,点击Formulas Tab,在AutoSum的下拉列表中点击More Functions

Machine generated alternative text:AMax1 ColurrMinINSERT PAGE LAYOUT FORMULAS DATA REVIEWRecently Financial Logical Text Date & Lookup & Math & MoreUsed— — — Time’ Reference Trig FunctioMore Functions...D E FSumC2 verageCount NumbersFunction Library.

  1. 在弹出的Insert Function中选择vlookup

Machine generated alternative text:Inseft FunctionSearch for a function:Type a brief description of what you want to do and then Goclick GoOr select a category: Most Recently Used ,Select a function:VLOOKUP IjSUM¡FAVERAGEHYPE RUN KCOUNTVLOOKUP(lookup_value.tablearray.col_ìndexnum,range_lookup)Looks for a value in the leftmost column of a table, and then returns a valuein the same row from a column you specify. By default the table must besorted in an ascending order.Help on this function OK Cancel

  1. 在弹出的设置按如下填写,点击OK

Lookup_value:选择填写第一列

Table_array:选择填写第二列

Col_index_num:填写数字,比如1

Range_lookup:填写FALSE

Machine generated alternative text:Function ArgumentsVLOO KU PLookup_value IA1 =Table_array icc = ÇColumn2c;e;abqgd;...Col_index_num ii = 1Range_lookup IFALSE = FALSE=Looks for a value in the leftmost column of a table, and then returns a value in the same row from a column youspecify, By default, the table must be sorted in an ascending order.Lookup_value is the value to be found in the first column of the table, and can be avalue, a reference, or a text string.Formula result = aHelp on this function OK Cancel

  1. 结果如下,可以看到结果中column1fcolumn2中没有。

Machine generated alternative text:Function LibraryX / fx [ =VLOOKUP(A:A,C:C,1,FALSE)A B C D EColumni Vlookup Column2ja lab ec ad be e qf gg d

 

大家也可以根据实际情况调整比对scope灵活运用。

 

感谢阅读。


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值