当前位置:网站首页>EXCEL解决问题:如何查找目标区域,是否包含指定字符串?
EXCEL解决问题:如何查找目标区域,是否包含指定字符串?
2022-07-30 11:28:00 【奔跑的犀牛先生】
1 网友提问:如何查找目标区域,是否包含指定字符串?
2 分析问题
- 1 需要根据 查找字符串,遍历 目标区域,所以要选 e:e
- 2 因为查的是字符串内容,而不是单元格,所以不能用lookup 直接查!而是要查字符串!
- 3 因为不是严格匹配,而是查询是否包含,所以需要用到通配符,
- 其中 find() 就不行,search("*"&A1&"*") 就可以
- 4 find() 查不到的时候报错,需要处理报错
3 实际例子
3.1 可行例子
- =IFERROR(IF(FIND(B$70,E:E)>0,B$70),"")&IFERROR(IF(FIND(B$71,E:E)>0,B$71),"")&IFERROR(IF(FIND(B$72,E:E)>0,B$72),"")
- =IFERROR(IF(SEARCH("*"&B$70&"*",E:E),B$70),"")&IFERROR(IF(SEARCH("*"&B$71&"*",E:E),B$71),"")&IFERROR(IF(SEARCH("*"&B$72&"*",E:E),B$72),"")
3.2 不可行我没试出来的例子
- ifs()
- lookup()
4 特殊用法
- LOOKUP(1,0/FIND(B70,E:E),E:E)
- 这样可以查,符合条件的最后1个单元,这样并不能识别其他的
边栏推荐
- EA中的业务对象和业务实体你分得清吗?
- 柔性机械系统分布参数建模及其控制的研究与进展
- 面试官:Redis中的布隆过滤器与布谷鸟过滤器,你了解多少?
- The battle-hardened programmer was also deceived by a fake programmer from a certain fish. The trust between programmers should be the highest, and he alone destroyed this sense of trust
- 基于MySQL数据库,Redis缓存,MQ消息中间件,ES搜索引擎的高可用方案解析
- C#调用explorer.exe打开指定目录
- English line break
- 周鸿祎:微软抄袭了360安全模式 所以成为美国最大的安全公司
- Horizontal comparison of 5 commonly used registration centers, whether it is used for interviews or technical selection, is very helpful
- 超图iServer rest服务之最佳路径分析
猜你喜欢
随机推荐
Microsoft SQL服务器被黑客入侵 带宽被窃取
C语言 — 位运算操作
Typroa alternative tool marktext
获取1688app上原数据 API
Horizontal comparison of 5 commonly used registration centers, whether it is used for interviews or technical selection, is very helpful
Taobao/Tmall taobao comments q&a list interface API
Differences between lock spin and mutex usage scenarios
Transfer Learning Technology Training
又爆神作!阿里爆款MySQL高级宝典开源,直抵P7
牛客-TOP101-BM42
Based on the analysis of the acoustic channel cable tunnel positioning technology
Introduction to IoT Technologies: Chapter 6
pg_rewind 修复主备环境的时间线
淘宝/天猫淘宝评论问答列表接口 API
Hu-cang integrated e-commerce project (1): project background and structure introduction
Transfer Learning技术研修
Difference between C# enumeration type and xaml
Detailed explanation of @RequestBody and @ResponseBody
HJY-F931A/YJ three-phase voltage relay
时间序列曲线相似性