excel按降序或升序依次提取某列中的文本
时间:2023-04-09 06:18:13
在Excel中要按降序或升序排列某列数据,通常只需对其排序即可。在不允许改变表格结构的情况下,对于数值类型的数据可用LARGE、SMALL等函数来提取,如公式“=LARGE($A$1:$A$20,ROW(A1))”。对于文本则无法直接使用LARGE函数,因为LARGE函数不支持文本,这时可用下面的数组公式。
假如A2:A14中包含一些文本和空单元格,要将其中的文本按字母顺序降序提取到B列,如图所示。
在B2单元格中输入数组公式:
=OFFSET($A$1,MATCH(LARGE(COUNTIF($A$2:$A$14,"<="&$A$2:$A$14),ROW(A1)),COUNTIF($A$2:$A$14,"<="&$A$2:$A$14),),)&""
公式输入后按Ctrl+Shift+Enter结束,然后填充公式到B14单元格,即可得到与降序排序完全相同的结果。
公式说明:
1.“COUNTIF($A$2:$A$14,"
标签:公式,函数,提取,文本,Excel函数
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
word中最实用的办公技巧——神奇的F4,让你省时省力,效率翻倍
2023-11-11 10:11:59
![](https://img.aspxhome.com/file/2023/4/17134_0s.jpg)
KB4462919无法完成更新正在撤销更改解决方法
2023-05-08 01:22:26
![](https://img.aspxhome.com/file/2023/4/a309387_0s.jpg)
excel怎么输入红色的五角星? excel五角星的画法
2022-04-16 06:13:16
![](https://img.aspxhome.com/file/2023/5/a141535_0s.jpg)
wpsPPT怎么制作漂亮的双菱形目录样式?
2022-04-27 04:22:43
![](https://img.aspxhome.com/file/2023/5/a165865_0s.jpg )
MAC OS X Lion如何使用手势快速切换Finder上下页
2023-03-14 09:56:17
![](https://img.aspxhome.com/file/2023/0/a216140_0s.jpg)
FL Studio 12 for Mac是什么软件?FL Studio 12制片人版有什么不同?
2023-10-04 14:15:34
![](https://img.aspxhome.com/file/2023/4/a213184_0s.jpeg)
QQ会员金豆有什么用?
2022-12-14 07:00:59
![](https://img.aspxhome.com/file/2023/3/a297749_0s.png)
Win7系统出现不兼容的应用程序怎么办?
2022-10-13 18:33:50
![](https://img.aspxhome.com/file/2023/4/a313079_0s.png)
word怎么根据数据生成折线图
2023-09-10 00:50:42
![](https://img.aspxhome.com/file/2023/2/a284275_0s.png)
win10如何修改默认应用
2023-04-29 16:08:40
![](https://img.aspxhome.com/file/2023/3/a298422_0s.png)
excel的公式栏不见了的解决方法
2023-03-26 12:58:59
Win10右键新建卡顿怎么办?Win10右键新建卡顿的解决方法
2023-05-29 20:17:14
![](https://img.aspxhome.com/file/2023/4/46334_0s.png)
Win7 64位旗舰版系统下无法打开还原功能怎么办?
2023-07-15 23:34:09
![](https://img.aspxhome.com/file/2023/27/a229485_0s.jpg)
Win7系统提示计算机丢失skidrow.dll文件的解决方法
2023-03-15 18:58:09
![](https://img.aspxhome.com/file/2023/1/a273661_0s.jpg)
word制作文档目录原来这么轻松
2023-10-19 19:48:47
![](https://img.aspxhome.com/file/2023/8/35458_0s.jpg)
wps制作图表目录的方法步骤
2023-05-22 00:31:30
Win11系统右下角不满足硬件需求水印怎么去除
2022-09-06 07:50:09
![](https://img.aspxhome.com/file/2023/27/a236235_0s.png)
服务器远程超出最大连接数常用解决办法
2023-09-10 06:35:09
PS怎么画一条发光的线?PS画一条发光的线的方法
2023-07-10 04:22:39
![](https://img.aspxhome.com/file/2023/8/a334168_0s.jpg)
五个Word的实用技巧方法
2023-04-23 12:16:59