当前位置:网站首页>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个单元,这样并不能识别其他的

边栏推荐
- 物联网技术概论:第6章
- Vim plugin GrepIt
- Bagging-Blending Multi-Model Fusion Short-Term Electricity Load Forecasting Based on Weighted Grey Correlation Projection
- Verilog grammar basics HDL Bits training 07
- API 网关 APISIX 在Google Cloud T2A 和 T2D 的性能测试
- 基于声信道分析的电缆隧道人员定位技术
- mapbox-gl开发教程(十四):画圆技巧
- Differences between lock spin and mutex usage scenarios
- Underwater target detection method based on spatial feature selection
- C language - bitwise operations
猜你喜欢

contentDocument contentWindow,canvas 、svg,iframe

The package of idea is not hollow

Verilog语法基础HDL Bits训练 08

High energy output!Tencent's internal MyCat middleware manual, both theoretical and practical

AB test summary

win下怎么搭建php环境的方法教程

概率论的学习和整理--番外4: 关于各种平均数:算术平均数,几何平均数,调和平均数,以及加权平均数和平方平均数 (未完成)

Introduction to IoT Technologies: Chapter 6

单片机工程师笔试题目归纳汇总

Performance testing of API Gateway APISIX on Google Cloud T2A and T2D
随机推荐
牛客-TOP101-BM42
Meituan internal push + school recruitment written test + summary of knowledge points
重写并自定义依赖的原生的Bean方法
C#调用explorer.exe打开指定目录
Apifox 生成接口文档 教程与操作步骤
基于声信道分析的电缆隧道人员定位技术
HJY-F931A/YJ three-phase voltage relay
Voltage relay h2d SRMUVS - 100 vac - 2
LeetCode_235_二叉搜索树的最近公共祖先
电流继电器JL-8GB/11/AC220V
Database transactions, JDBC operations and data types
LeetCode_235_Last Common Ancestor of Binary Search Tree
淘宝/天猫淘宝评论问答列表接口 API
11 年膨胀 575 倍,微信为何从“小而美”变成了“大而肥”?
Concepts of cloud-native applications and 15 characteristics of cloud-native applications
Program environment and preprocessing (detailed)
Matlab基础(1)——基础知识
Niuke-TOP101-BM42
Bagging-Blending Multi-Model Fusion Short-Term Electricity Load Forecasting Based on Weighted Grey Correlation Projection
Jingdong school recruited written test questions + summary of knowledge points