Excel中如何使用Mid函数?
时间:2023-04-01 09:47:10
Mid是Visual Basic和Microsoft Excel中的一个字符串函数,作用是从一个字符串中截取出指定数量的字符。在EXCEL处理数据的时候经常遇到这样的情况,有些内容就包含在前面的单元格中,但是没有办法提取出来。那Excel中如何使用Mid函数?今天,小编就和大家说一下Excel中Mid函数的使用方法。
步骤如下:
一、Mid函数的含义
从任意位置截取字符串。
![Excel中如何使用Mid函数?](https://img.aspxhome.com/file/2023/0/a153630_0.jpg)
二、Mid函数的语法格式
Mid函数的语法格式。
=mid(text, start_num, num_chars)。
=mid(字符串,开始截取位置,截取字符个数)。
![Excel中如何使用Mid函数?](https://img.aspxhome.com/file/2023/0/a153630_1.jpg)
三、Mid函数案列
1、如图所示,从第一个字符开始截取2个字符。
![Excel中如何使用Mid函数?](https://img.aspxhome.com/file/2023/0/a153630_2.jpg)
2、Mid函数常常和其他函数结合起来使用。例如从地址中提取城市。
只要确定1.从哪里开始提取,2.提取几个字符。——这都不是固定不变的。
如图所示,地址中省和市是可以唯一确定的。所以可以通过find函数进行定位。1.从哪里开始提取——FIND(“省”,A2)+1,确定省的位置然后加1。
2.提取几个字符——FIND(“市”,A2)-FIND(“省”,A2),即市和省之间的字符数。
输入公式=MID(A2,FIND(“省”,A2)+1,FIND(“市”,A2)-FIND(“省”,A2))。
![Excel中如何使用Mid函数?](https://img.aspxhome.com/file/2023/0/a153630_3.jpg)
四、Mid函数使用的注意点
1、注意,空格也是一个字符。
![Excel中如何使用Mid函数?](https://img.aspxhome.com/file/2023/0/a153630_4.jpg)
2、如果Mid的参数是文本,要加引号,且在英文状态下输入。
关于Excel中Mid函数的使用方法就给各位详细介绍到这里了。如你还不知道怎么在Excel中使用Mid函数的,可以先参考一下上述的内容,也可以一边参考一边操作啊!有兴趣的可以来了解一下。
标签:
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Win11不要密码怎么设置?Win11取消密码登录的步骤教程
2022-11-08 17:53:24
![](https://img.aspxhome.com/file/2023/27/a237157_0s.jpeg)
word文档无法打字怎么办
2022-03-07 13:17:35
![](https://img.aspxhome.com/file/2023/6/31776_0s.png)
excel代入公式的详细图解教程
2023-07-15 15:45:38
Windows XP本机有线网卡的IP地址查询方法
2023-07-26 01:57:48
![](https://img.aspxhome.com/file/2023/29/a252421_0s.png)
Win11 22H2 Build 22621登陆发布预览频道扩大推送:封杀破解安装用户
2023-10-11 05:30:08
![](https://img.aspxhome.com/file/2023/28/a239731_0s.jpg)
将excel导入spss的方法步骤详解
2023-12-10 21:24:23
使用Adobe Photoshop cc如何编辑照片?
2022-07-21 06:02:29
![](https://img.aspxhome.com/file/2023/1/a212671_0s.jpeg)
Windows10X系统新图标有哪些亮点
2023-11-09 09:55:44
![](https://img.aspxhome.com/file/2023/6/48296_0s.jpg)
哪些问题会造成网络瓶颈影响上网速度?
2023-04-24 13:27:34
![](https://img.aspxhome.com/file/2023/6/a326165_0s.jpg)
如何在Microsoft Excel 中创建3D地图
2023-05-15 01:29:10
![](https://img.aspxhome.com/file/2023/8/39828_0s.jpg)
LaTeX的section显示中文报错问题解决方法
2023-11-06 01:28:36
Win10玩英雄联盟闪退怎么办?Win10玩英雄联盟闪退的解决方法
2022-11-11 03:36:11
![](https://img.aspxhome.com/file/2023/26/a221285_0s.jpg)
Win10 Edge浏览器太依赖IE11?只需关闭兼容性列表就搞定
2022-10-04 22:56:21
![](https://img.aspxhome.com/file/2023/28/a248389_0s.jpg)
word怎么设置首字下沉
2023-05-16 03:29:15
Win10怎么使用命令提示符强制开机?
2023-02-09 12:55:45
![](https://img.aspxhome.com/file/2023/25/a218792_0s.png)
wps怎么删除重复项?
2022-12-02 16:17:06
![](https://img.aspxhome.com/file/2023/8/a169138_0s.gif)
wps怎么更换ppt母版
2022-02-26 11:44:09
微软正在制作补丁修复Win10 1903远程桌面黑屏问题
2023-05-03 14:17:20
![](https://img.aspxhome.com/file/2023/3/a301290_0s.jpg)
豌豆荚怎么用?使用豌豆荚的方法
2023-01-01 02:29:03
![](https://img.aspxhome.com/file/2023/9/a340607_0s.jpg)
请教如何迅速查找复杂EXCEL表格里的内容?
2022-01-27 15:17:30