如何颠倒Excel数据行顺序
时间:2023-09-17 20:16:53
如下图所示,要求将第3行和第2行倒置,第7行和第6行倒置,第11行和第10行倒置……依次类推。
接下来咱们就一起来看看,如何实现这样的数据整理。
1、高端大气上档次,VBA代码法。
按
关闭VBE窗口回来工作表,在【开发工具】选项卡中,单击【插入】,选择【窗体按钮】,为插入的按钮指定宏,然后点击按钮就可以了。
2、清新可人文艺范儿,函数公式法。
在G2单元格输入以下公式,向下复制:
=ROW-(MOD(ROW(A3),4)=0)*1.5
接下来单击G列任意单元格,点击【数据】选项卡【升序】按钮,OK
再次点击【升序】按钮,还可以回来原来的数据样式呢。
简单说一下这个函数的意思,ROW函数回来当前的行号,MOD(ROW(A3),4)判断公式下一行的行号能否被4整除,如果能被4整除,则用当前行的行号减去1.5。
也就是下一行的行号如果能被4整除,就在本行回来比上一行的行号小0.5的值,否则回来当前的行号。吃葡萄不吐葡萄皮,绕晕了没?^_^
3、简单实用接地气,基础操作法。
G2至G5单元格依次输入:2、1、3、4 G6单元格输入=G2+4 按住G6单元格右下角的填充柄向下复制。
单击G列任意单元格,点击【数据】选项卡【升序】按钮。最后删除G列,欧了。
有没有难度,要害看思路。三种方法,三种思路,您觉得哪一种更方便呢?
标签:颠倒Excel数据行顺序
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
两种方法关闭Win7右下角弹出的操作中心消息提示
2022-11-24 16:13:41
![](https://img.aspxhome.com/file/2023/29/a255422_0s.jpg)
在这里选择蓝色 excel2010 7.右击蓝色区域–》设置数据系列格式–》次坐标轴 excel2010 点击关闭后
2022-06-07 07:28:55
苹果Mac好用的图床工具:uPic
2023-04-28 15:32:55
![](https://img.aspxhome.com/file/2023/0/a208710_0s.gif)
Win11一键安装图文教程
2022-07-04 13:39:45
![](https://img.aspxhome.com/file/2023/27/a238619_0s.jpg)
暗影精灵如何重装系统?石大师一键重装暗影精灵教程
2023-06-17 08:58:58
![](https://img.aspxhome.com/file/2023/1/a274447_0s.png)
Excel2010筛选重复数据教程
2022-04-28 13:30:34
![](https://img.aspxhome.com/file/2023/8/a143588_0s.jpg)
进入系统启动项窗口找不到U盘启动项怎么解决?
2022-12-20 02:55:23
![](https://img.aspxhome.com/file/2023/3/a299840_0s.png)
怎么修复错误弹窗"如何在 Windows 10 中获得帮助"
2022-04-08 03:25:57
![](https://img.aspxhome.com/file/2023/28/a239564_0s.jpg)
windows软件包2013对系统处理器的要求是什么
2022-05-30 04:00:18
![](https://img.aspxhome.com/file/2023/29/a254989_0s.jpg)
U盘品牌介绍 推荐几款精选的U盘品牌
2022-12-14 07:41:47
![](https://img.aspxhome.com/file/2023/3/a301700_0s.jpg)
使用Mac OS X如何开启和配置防火墙
2022-07-08 08:11:00
![](https://img.aspxhome.com/file/2023/1/a210891_0s.jpeg)
word中怎么修改批注颜色及量删批注?
2022-12-20 01:38:40
![](https://img.aspxhome.com/file/2023/7/25537_0s.jpg)
Win7如何安装音频输出设备?正确安装音频设备的方法
2022-09-23 21:53:00
![](https://img.aspxhome.com/file/2023/1/a272536_0s.jpg)
为什么WORD无法从句子中间加字了
2023-12-01 08:03:02
![](https://img.aspxhome.com/file/2023/8/19048_0s.jpg)
xp系统开机提示页面文件太小的故障原因及解决方法
2022-07-20 02:52:18
![](https://img.aspxhome.com/file/2023/28/a244607_0s.jpg)
win10系统怎么安装最新的补丁?
2023-03-08 13:47:32
![](https://img.aspxhome.com/file/2023/1/a276216_0s.png)
Win10系统网卡驱动不能用怎么办?网卡不支持win10如何解决?
2022-10-24 09:19:08
![](https://img.aspxhome.com/file/2023/26/a226146_0s.jpg)
用好kindle,你不能不知道的十个技巧—进阶篇
2023-10-15 19:31:43
![](https://img.aspxhome.com/file/2023/9/a342957_0s.jpg)
怎么重装系统Win10?U行侠U盘启动盘制作工具重装Win10系统教程
2023-01-15 00:04:38
![](https://img.aspxhome.com/file/2023/7/a329716_0s.jpg)
wps怎么压缩文件
2022-05-15 02:02:11
![](https://img.aspxhome.com/file/2023/2/a184852_0s.png)