如何使用excel公式实现自动排序?
时间:2022-03-21 03:46:24
如何使用excel公式实现自动排序?
问:我在一列单元格区域中的数字经常变化,Excel能否在每次变化后都对这些数据自动排序。例如,单元格区域A3:A12中有10个数字,在C3:C12中对这10个数字升序排列,在D3:D12中对这10个数字降序排列,当A3:A12中的数字变化时,C3:C12和D3:D12中的数字排序自动更新。
答:可以使用数组公式来实现。
选择单元格区域C3:C12,输入公式:
=LARGE(A3:A12,ROW(INDIRECT(“1:”& ROWS(A3:A12))))
如下图所示。
按下Ctrl+Shift+Enter组合键,Excel会自动在公式两侧加上一对花括号,表明在该区域输入了数组公式。结果如下图所示。
同理,选择单元格区域D3:D12并输入公式:
=SMALL(A3:A12,ROW(INDIRECT(“1:”& ROWS(A3:A12))))
按下Ctrl+Shift+Enter组合键,结果如下图所示。
当我们更改A3:A12中的数字时,C3:C12与D3:D12中的数字顺序相应更新。
标签:excel使用技巧,excel入门教程,excel表格的公式,Excel教程
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Word2007怎么设置行距?行距设置详细解说
2023-12-04 11:40:02
![](https://img.aspxhome.com/file/2023/3/22103_0s.jpg)
Word文档如何实现快速预览选背景
2023-02-08 17:31:19
![](https://img.aspxhome.com/file/2023/5/33735_0s.jpg)
怎样把pdf里的文字复制到word文档里?
2022-12-06 19:04:39
![](https://img.aspxhome.com/file/2023/3/22763_0s.png)
word2010中打印份数的设置方法
2022-01-20 16:16:38
![](https://img.aspxhome.com/file/2023/0/24570_0s.jpg)
Excel灰色底纹怎么设置
2023-02-17 22:17:13
![](https://img.aspxhome.com/file/2023/9/a141359_0s.png)
如何统计word字数,Word中词语出现次数巧统计,不打开word仍然可以统计字数
2023-06-06 14:52:43
![](https://img.aspxhome.com/file/2023/0/33490_0s.gif)
excel如何识别带有图片的单元格?
2023-04-21 00:16:33
![](https://img.aspxhome.com/file/2023/9/a142329_0s.png)
win10怎么禁用驱动更新guid?win10禁用驱动更新guid详细教程
2023-09-23 03:56:51
![](https://img.aspxhome.com/file/2023/8/47408_0s.jpg)
Office 的功能区显示不全该怎么办?
2023-08-21 11:55:32
![](https://img.aspxhome.com/file/2023/5/15575_0s.jpg)
iOS15beta8值得升级吗?和iOS15正式版差别大不大?
2023-08-16 21:44:01
![](https://img.aspxhome.com/file/2023/4/45694_0s.png)
Word2013文档中怎么插入网络视频?
2023-10-08 08:00:35
![](https://img.aspxhome.com/file/2023/8/24758_0s.jpg)
Excel 2019如何实现时间排序
2022-08-10 05:35:11
![](https://img.aspxhome.com/file/2023/0/a141030_0s.jpg)
Word使用操作技巧:再议删除编号
2023-12-12 15:59:58
![](https://img.aspxhome.com/file/2023/8/20558_0s.jpg)
Word自动生成目录的几种方法步骤
2023-11-12 21:45:58
![](https://img.aspxhome.com/file/2023/8/17658_0s.jpg)
WPS2016文字下沉如何设置
2023-11-29 17:45:30
![](https://img.aspxhome.com/file/2023/0/a163780_0s.jpg)
Excel2013如何运用rept函数将数字图形化
2022-06-15 21:38:31
![](https://img.aspxhome.com/file/2023/2/38122_0s.png)
Word2003自动更正怎么用?
2023-11-27 18:30:08
![](https://img.aspxhome.com/file/2023/9/18049_0s.jpg)
excel2013在表格中画斜杠的方法
2022-06-09 08:55:27
![](https://img.aspxhome.com/file/2023/4/40724_0s.jpg)
Word 15变身阅读器:增书签且兼容PDF
2022-06-08 12:54:12
![](https://img.aspxhome.com/file/2023/2/21922_0s.jpg)
word中如何设置背景颜色
2022-02-08 19:23:56