数据透视表中的多条件排序的技巧
时间:2022-12-12 08:02:18
本文讲述的Excel教程给大家说说数据透视表中的多条件排序技巧。
,是一个展示不同商品销售和库存情况的数据透视表:
要求以销售数量作为主要关键字,以库存数量作为次要关键字进行排序,排序的规则是:
按销售数量降序排序,:
大家先想想怎么去实现这样的效果??
如果在普通数据表中,实现这样的排序效果,可以在【数据】选项卡下,单击【排序】按钮,按下图设置主要关键字和次要关键字即可:
但是在数据透视表中,无法直接实现多条件的排序。如果单击数据透视表的销售数量字段,点击排序按钮,就会出现下面的对话框:
既然没有方法实现多条件排序,就想想添加辅助的办法吧。
单击数据透视表值字段,按下图步骤设置:
经过上述步骤,在数据透视表中添加了一个排序的辅助字段。
辅助字段的公式是:
=销售数量+库存数量/10000
公式中将库存数量除以一个较大的值,相当于降低了库存数量的排序权重。
再对辅助字段进行降序排序,最后隐藏辅助字段所在列,OK啦。
标签:字段,排序,数据,透视,Excel教程
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
联想Win10防火墙如何关闭?
2023-11-24 09:28:39
![](https://img.aspxhome.com/file/2023/3/50883_0s.jpg)
在word文档中怎么实现图文并茂生动形象?
2022-03-27 04:34:58
![](https://img.aspxhome.com/file/2023/7/27407_0s.jpg)
Excel选取单元格区域的13种方法
2023-05-02 14:29:38
![](https://img.aspxhome.com/file/2023/9/36149_0s.jpg)
WPS如何在两个窗口里打开两份word
2023-11-30 04:49:27
![](https://img.aspxhome.com/file/2023/7/18547_0s.jpg)
如何在Word 2007中如何编辑公式?
2023-05-29 21:11:42
![](https://img.aspxhome.com/file/2023/3/33893_0s.jpg)
如何解除word安全模式 解除word安全模式的方法步骤
2022-10-28 23:30:49
![](https://img.aspxhome.com/file/2023/4/29524_0s.jpg)
Win10找不到gpeditmsc文件怎么办?
2023-11-23 14:04:57
![](https://img.aspxhome.com/file/2023/7/50637_0s.png)
Word2007文档中隐藏文字怎么设置
2023-11-24 13:13:55
![](https://img.aspxhome.com/file/2023/4/18094_0s.jpg)
Word如何一次性将数字和字母全部改为Times New Roman字体
2023-08-30 03:07:41
![](https://img.aspxhome.com/file/2023/5/31655_0s.png)
win10系统如何开启自动删除问题的更新?
2023-08-10 01:20:50
![](https://img.aspxhome.com/file/2023/1/46961_0s.jpg)
Excel使用条件格式制作气旋图 快速简单
2023-12-04 08:56:35
![](https://img.aspxhome.com/file/2023/6/a143246_0s.png)
如何在Word中画坐标轴?Word画坐标系最简单的方法
2022-01-15 09:17:23
![](https://img.aspxhome.com/file/2023/2/31532_0s.jpg)
如何一次性删除excel表格中的内容
2022-10-07 23:20:37
![](https://img.aspxhome.com/file/2023/3/a141133_0s.jpg)
Win10怎么截图?Win10屏幕截图的五种方法介绍
2022-06-11 17:58:24
![](https://img.aspxhome.com/file/2023/2/51772_0s.jpg)
word 选择性粘贴中保留源格式、合并格式与文本格式的区别
2022-12-14 06:13:00
![](https://img.aspxhome.com/file/2023/3/32303_0s.png)
Excel中怎么改变行列顺序
2022-09-06 11:45:34
![](https://img.aspxhome.com/file/2023/8/36088_0s.jpg)
word2016文档中插入和改写文字的方法有哪些
2023-06-23 01:20:23
Excel取消超链接的办法
2022-04-22 13:46:09
![](https://img.aspxhome.com/file/2023/2/37342_0s.jpg)
win10无规律蓝屏重启Kernel-Power41
2023-11-14 03:36:13
![](https://img.aspxhome.com/file/2023/2/48492_0s.jpg)
excel如何调换行列位置?excel怎么把两列数据互换?
2023-09-23 23:17:42
![](https://img.aspxhome.com/file/2023/5/39805_0s.jpg)