excel中right函数的使用方法
时间:2023-08-13 23:24:21
在表格处理中,常常需要在字符串中提取部分字符,以进行下一步处理,例如从身份证号码中提取指定位数的数字,以判断身份证的性别等,手动操作较繁琐,利用excel提供的文本处理函数则可以很方便地解决问题。今天,小编就教大家在Excel中right函数的使用方法。
Excel中right函数的使用方法如下:
right函数,从字符串右侧首字符开始,从右向左提取指定的字符,其功能和LEFT函数完全一样,只是方向不同。
在以下表格中利用RIGHT函数从右开始提取指定的字符,
要求:提取3个字符, 在B2单元格输入公式:=right(a2,3),回车即可,
说明:要提取n个字符,函数中的参数2就设为相应的数值.
函数的参数2可省略,省略后函数默认提取一个字符.
函数的参数2支持使用数组,表示分别提取指定的字符,例如,分别提取1-6个字符,
在E2:E7单元格区域,输入数组公式:=RIGHT(A3,{1;2;3;4;5;6}),按下ctrl+shift+enter输入数组公式,表示从右开始分别提取1-6个字符.
参数2还可以用row(indirect("1:"&len())的形式来表示,row和indirect函数相配合返回一个垂直数组,而使用column和indtrect函数相配则返回一个水平数组。
例如,要从右开始分别返回1-n的字符,可在A9-j9单元格区域输入数组公式:
=RIGHT(A3,COLUMN(INDIRECT("1:10")))
即可从右开始分别提取1-10个字符,构成一个水平数组.
标签:函数,字符,提取,数组,Excel函数
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Windows Timeline功能设置已上线:暗示完整版即将上线
2022-04-14 22:03:21
![](https://img.aspxhome.com/file/2023/2/a287860_0s.jpg)
Win10电脑日历中的节日看不清?Win10电脑日历模糊不清解决方法
2022-08-03 21:54:55
![](https://img.aspxhome.com/file/2023/1/a280935_0s.png)
Wps如何将表格中文符号替换为英文?Wps表格中文符号替换为英文方法
2023-01-08 22:29:46
![](https://img.aspxhome.com/file/2023/2/a182342_0s.gif)
“由于无法验证发行者,所以WINDOWS已经阻止此软件”的解决方法
2023-07-14 01:16:10
![](https://img.aspxhome.com/file/2023/30/a263646_0s.jpg)
win8系统遇到蓝屏故障错误代码0X00000001的原因及解决方法
2023-01-26 11:40:41
![](https://img.aspxhome.com/file/2023/28/a244100_0s.jpg)
XP系统自带还原功能使用大全
2023-06-26 06:10:52
![](https://img.aspxhome.com/file/2023/4/a303235_0s.jpg)
电脑版wps文档如何给脚注加上圆圈
2023-10-15 10:49:02
![](https://img.aspxhome.com/file/2023/7/a182877_0s.png)
Mac怎么管理字体如何添加或删除
2022-08-31 16:48:37
![](https://img.aspxhome.com/file/2023/0/a215250_0s.jpg)
电脑版wps文档如何给文字加上拼音
2023-12-16 02:34:45
![](https://img.aspxhome.com/file/2023/9/a183639_0s.png)
Win10预览版官方下载怎么下载使用?
2022-01-31 00:20:50
![](https://img.aspxhome.com/file/2023/29/a251345_0s.jpg)
PPT2010提示控件出错怎么禁用控件?
2022-11-26 01:42:00
![](https://img.aspxhome.com/file/2023/10/a349597_0s.jpg)
如何在PowerPoint2013中制作镂空字效果
2022-09-26 12:58:27
![](https://img.aspxhome.com/file/2023/10/a344875_0s.png)
信息中心机房,空气调节系统的设计
2022-03-06 12:57:23
![](https://img.aspxhome.com/file/2023/9/a342442_0s.jpg)
联想扬天V14锐龙版笔记本重装win7系统教程
2022-11-17 18:20:35
![](https://img.aspxhome.com/file/2023/30/a264855_0s.png)
如何在苹果Mac上高效地使用桌面和窗口?
2023-10-07 05:02:27
![](https://img.aspxhome.com/file/2023/0/a206090_0s.gif)
Win11如何查看开机记录?
2022-04-08 13:20:17
![](https://img.aspxhome.com/file/2023/1/a283166_0s.jpg)
Ubuntu操作系统安装图文教程
2023-11-18 08:30:42
![](https://img.aspxhome.com/file/2023/5/a318986_0s.jpg)
Win10专业版软件怎么卸载?Win10专业版软件卸载方法
2023-01-21 17:06:17
![](https://img.aspxhome.com/file/2023/26/a223426_0s.png)
惠普星 15笔记本重装win11系统教程
2023-04-25 11:53:22
![](https://img.aspxhome.com/file/2023/30/a267376_0s.png)
word文档怎么增加箭头?word制作递增箭头的方法教程
2023-03-18 17:11:17
![](https://img.aspxhome.com/file/2023/30/a269659_0s.jpg)