create account

用excel的vlookup函数提高工作效率。 by cheva

View this thread on: hive.blogpeakd.comecency.com
· @cheva · (edited)
$7.43
用excel的vlookup函数提高工作效率。
日常工作中有个任务,就是每周要巡视一遍辖区内的监控摄像头,统计出哪些摄像头是好的,哪些没有图像,并标识出变化情况。总共有近900个,之前巡视,记录、标识都是人工完成。工作量还是比较大的。我看了下,觉得可以用vlookup函数让标识摄像头可用状态变化的工作自动完成。
<h2>一、问题简述</h2>
<center><img class="aligncenter" src="https://s2.ax1x.com/2019/11/09/MegTAA.jpg" alt="excel-screen1" /></center><br/>
<p><center>图一;来源:本人电脑截图。</center></p>
如上图,G列为本周的巡查结果,H列为上周的巡查结果。F列为可视状态变化标识。摄像头状态包括:
<ol>
 <li>无视频信号(无法点开)</li>
 <li>画面显示无视频信号</li>
 <li>无画面显示</li>
 <li>画面模糊</li>
 <li>画面清晰</li>
</ol>
其中1.2.3项视为不可用资源,4.5项视为可用资源。如果本周的检查结果,摄像头,由状态1、2、3变为状态4、5,则F列监控标识应设为“增加可视资源”,反之,则监控标识应设为“减少可视资源”;如果本周与上周的监控可用状态不变,则监控标识设为“无变化”。
<h2>二、vlookup函数简介</h2>
vlookup函数的功能是在一个表中按行查找。举个简单例子:

&nbsp;
<table border="1">
<tbody>
<tr>
<th>学号</th>
<th>姓名</th>
<th>成绩</th>
</tr>
<tr>
<td>1</td>
<td>张三</td>
<td>80</td>
</tr>
<tr>
<td>2</td>
<td>李四</td>
<td>88</td>
</tr>
</tbody>
</table>
对于上面这张表,vlookup函数的功能就是给出学生的学号,就可以按需要返回该名学生的姓名、成绩等信息。

具体的使用方法:

= VLOOKUP (查阅值、包含查阅值的区域、包含返回值的区域中的列号、近似匹配 (TRUE) 或完全匹配 (FALSE))。

对于上表来说,参数一查阅值就是学号,取值范围为1、2;参数二查询范围就是上表在工作簿中的位置;参数三就是你要的返回值的列数,如果你要返回该名学生的姓名,参数三就设为1,表示第一列,如果你要返回该名学生的成绩,参数三就设为2,表示第二列。第四参数设定近似匹配还是完全匹配,近似匹配只适用于数值,如果参数一查阅值是文本,务必设为完全匹配,否则会有意想不到的返回值。
<h2>三、问题解决</h2>
根据问题描述,现在工作簿中建个表,内容如下:

&nbsp;
<table border="1">
<tbody>
<tr>
<td>无视频信号(无法点开)</td>
<td>1</td>
</tr>
<tr>
<td>画面显示无视频信号</td>
<td>1</td>
</tr>
<tr>
<td>无画面显示</td>
<td>1</td>
</tr>
<tr>
<td>画面模糊</td>
<td>2</td>
</tr>
<tr>
<td>画面清晰</td>
<td>2</td>
</tr>
</tbody>
</table>
第二列取值1表示该摄像头不可用,取值2表示摄像头可用。用vlookup函数查询这个表,得到本周和上周的摄像头可用状态,再用if函数进行比较,返回相应的状态变化标识,F列的具体函数如下(以第一行为例,余下拖动即可):
<pre>=IF(VLOOKUP(H2,$O$2:$P$6,2,FALSE)=VLOOKUP(G2,$O$2:$P$6,2,FALSE),"无变化",IF(VLOOKUP(H2,$O$2:$P$6,2,FALSE)=1,"增加可视资源","减少可视资源"))


</pre>
说明:查阅值从G列或H列中取,因为是文本信息,参数四设为FALSE,为精确匹配。$O$2:$P$6为上面的可用状态对照表在工作簿中的位置,因为后面要拖动复制公式,所以这里要加“$”表示绝对位置引用。

公式的最终使用效果,巡查人员只需要按巡查结果设定摄像头状态,与上周相比的变化情况,公式会自动给出:

<center><img class="aligncenter" src="https://s2.ax1x.com/2019/11/09/MeOvRO.gif" alt="excel-gif" /></center><br/>

<hr />

参考资料:
<ul>
 <li><a href="https://support.office.com/zh-cn/article/vlookup-%E5%87%BD%E6%95%B0-0bbc8083-26fe-4963-8ab8-93a18ad188a1">VLOOKUP 函数</a></li>
</ul>
&nbsp; <br /><center><hr/><em>Posted from my blog with <a href='https://wordpress.org/plugins/steempress/'>SteemPress</a> : https://darwincheva.000webhostapp.com/2019/11/%e7%94%a8excel%e7%9a%84vlookup%e5%87%bd%e6%95%b0%e6%8f%90%e9%ab%98%e5%b7%a5%e4%bd%9c%e6%95%88%e7%8e%87%e3%80%82 </em><hr/></center>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 416 others
properties (23)
authorcheva
permlinkexcelvlookup-dmj1jvqali
categorycn
json_metadata{"community":"steempress","app":"busy/2.5.4","tags":["cn","cn-stem","jjm","steempress","steemstem","sct","sct-cn","sct-freeboard","palnet","zzan","dblog","mediaofficials","marlians","neoxian","lassecash","upfundme","busy","actnearn","stem"],"canonical_url":"https://darwincheva.000webhostapp.com/2019/11/%e7%94%a8excel%e7%9a%84vlookup%e5%87%bd%e6%95%b0%e6%8f%90%e9%ab%98%e5%b7%a5%e4%bd%9c%e6%95%88%e7%8e%87%e3%80%82","image":["https://s2.ax1x.com/2019/11/09/MegTAA.jpg","https://s2.ax1x.com/2019/11/09/MeOvRO.gif"],"links":["https://support.office.com/zh-cn/article/vlookup-%E5%87%BD%E6%95%B0-0bbc8083-26fe-4963-8ab8-93a18ad188a1","https://wordpress.org/plugins/steempress/","https://darwincheva.000webhostapp.com/2019/11/%e7%94%a8excel%e7%9a%84vlookup%e5%87%bd%e6%95%b0%e6%8f%90%e9%ab%98%e5%b7%a5%e4%bd%9c%e6%95%88%e7%8e%87%e3%80%82"],"format":"markdown"}
created2019-11-09 05:34:36
last_update2019-11-09 08:59:39
depth0
children5
last_payout2019-11-16 05:34:36
cashout_time1969-12-31 23:59:59
total_payout_value3.469 HBD
curator_payout_value3.961 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,488
author_reputation301,817,720,448,527
root_title用excel的vlookup函数提高工作效率。
beneficiaries
0.
accountsteempress
weight1,500
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id92,331,761
net_rshares27,243,648,301,860
author_curate_reward""
vote details (480)
@cnbuddy ·
你那里天气如何?来一份新手村小卖部的美食吧!@teamcn-shop感谢支持。
properties (22)
authorcnbuddy
permlinkre-cheva-excelvlookup-dmj1jvqali-20191109t054329857z
categorycn
json_metadata""
created2019-11-09 05:43:30
last_update2019-11-09 05:43:30
depth1
children0
last_payout2019-11-16 05:43:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length39
author_reputation-1,449,160,991,441
root_title用excel的vlookup函数提高工作效率。
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id92,331,886
net_rshares0
@jsquare ·
JCAR 11월 구독보팅입니다.  11월 둘째 주말 즐거운 시간 되세요. 

properties (22)
authorjsquare
permlinkre-excelvlookup-dmj1jvqali-20191109t054127z
categorycn
json_metadata"{"app": "rewarding/0.1.5"}"
created2019-11-09 05:41:30
last_update2019-11-09 05:41:30
depth1
children0
last_payout2019-11-16 05:41:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length45
author_reputation81,350,685,034,901
root_title用excel的vlookup函数提高工作效率。
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id92,331,849
net_rshares0
@steemstem ·
re-cheva-excelvlookup-dmj1jvqali-20191111t033924034z
<div class='text-justify'> <div class='pull-left'> <center> <br /> <img width='200' src='https://res.cloudinary.com/drrz8xekm/image/upload/v1553698283/weenlqbrqvvczjy6dayw.jpg'> </center>  <br/> </div> 

This post has been voted on by the **SteemSTEM curation team** and voting trail. It is elligible for support from @curie and @minnowbooster.<br /> 

If you appreciate the work we are doing, then consider supporting our witness [@stem.witness](https://steemconnect.com/sign/account_witness_vote?approve=1&witness=stem.witness). Additional witness support to the [curie witness](https://steemconnect.com/sign/account_witness_vote?approve=1&witness=curie) would be appreciated as well.<br /> 

For additional information please join us on the [SteemSTEM discord]( https://discord.gg/BPARaqn) and to get to know the rest of the community!<br />

Please consider using the <a href='https://www.steemstem.io'>steemstem.io</a> app and/or including @steemstem in the list of beneficiaries of this post. This could yield a stronger support from SteemSTEM.
properties (22)
authorsteemstem
permlinkre-cheva-excelvlookup-dmj1jvqali-20191111t033924034z
categorycn
json_metadata{"app":"steemstem-bot"}
created2019-11-11 03:39:27
last_update2019-11-11 03:39:27
depth1
children0
last_payout2019-11-18 03:39:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,050
author_reputation262,017,435,115,313
root_title用excel的vlookup函数提高工作效率。
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id92,388,476
net_rshares0
@team-cn ·
感谢代理101.18SP 给team-cn! 由于你使用CN作为你的首标签,额外获得2%点赞! 你的帖子获得team-cn 10% 点赞!(如果不想看到这个回复,请回复“取消”)
properties (22)
authorteam-cn
permlinkre-cheva-excelvlookup-dmj1jvqali-20191109t053936073z
categorycn
json_metadata"{"app":"NBC bot"}"
created2019-11-09 05:39:36
last_update2019-11-09 05:39:36
depth1
children0
last_payout2019-11-16 05:39:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length89
author_reputation40,441,390,621,673
root_title用excel的vlookup函数提高工作效率。
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id92,331,825
net_rshares0
@teamcn-shop ·
你好鸭,cheva!

@cnbuddy给您叫了一份外卖!

由 @mia-cc 斤斤 迎着闪电 被浣熊拖着 给您送来
**新手村三宝 瓜子 汽水 小板凳** <br> ![](https://steemitimages.com/0x0/https://cdn.steemitimages.com/DQmSJkWcLhnRs4oyMGWVpNXx51U5MfPmRaiYRMBvtyRsEiV/FullSizeRender(2).jpg)
吃饱了吗?跟我猜拳吧! **石头,剪刀,布~**

如果您对我的服务满意,请不要吝啬您的点赞~
@onepagex
properties (22)
authorteamcn-shop
permlinkre-cheva-excelvlookup-dmj1jvqali-20191109t054329857z
categorycn
json_metadata"{"app":"teamcn-shop bot/1.0"}"
created2019-11-09 05:43:36
last_update2019-11-09 05:43:36
depth1
children0
last_payout2019-11-16 05:43:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length278
author_reputation11,393,746,055,281
root_title用excel的vlookup函数提高工作效率。
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id92,331,889
net_rshares0