Excel构造有规律数据实例1,1.1,2,2.1,3,3.1
时间:2022-04-05 21:55:11
比如,我们要做的效果是这样的:
A2为:1
A3为:1.1
A4为:2
A5为:2.1
A6为:3
A7为:3.1
……
像这样的数据如何来构造呢?
首先,我们分析,发现这样的规律:第个数为整数,第二个数为第一数加0.1,第二个数又为整数,但该整数是前一个整数加1,接着又是该整数加上0.1…
我们在使用公式的时候,从A3开始使用,A2直接输入一个1即可。
那么,从A3开始使用公式进行填充,如何使用公式呢?
一、理论指导
判断上一个数是否为有小数点,如果是,那么就使用上一个数的整数部分加1;如果上一个数不包含小数,那么,就使用上一个数的整数部分加0.1;
二、公式的实现
在A3中的完整公式为:
=IF(A2-INT(A2)>0,INT(A2)+1,A2+0.1)
其它往下一拉,有规律的数据就出来了。
下面分析一下公式:
=IF(A2是有小数点,是的话就拿A2就加1,不是的话就拿A2加0.1)
INT(A2)为获取A2的整数部分,抛弃小数;
A2-INT(A2)>0,A2减去A2的整数部分,如果>0,说明A2是带有小数点的数。
INT(A2)+1,A2取整数加1。
标签:Excel构造有规律数据实例1,1.1,2,2.1,3,3.1
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
小技巧:使用 iOS 15 中的“查找我的网络”查找 AirPods 2/Pro
2023-08-18 15:40:26
![](https://img.aspxhome.com/file/2023/9/45649_0s.png)
Word文档中怎么插入屏幕截图
2023-11-29 20:25:54
![](https://img.aspxhome.com/file/2023/9/17999_0s.jpg)
在word中字如何加阴影
2023-12-13 09:14:05
![](https://img.aspxhome.com/file/2023/3/21443_0s.jpg)
目前win10哪个版本最稳定好用流畅
2023-11-11 20:41:34
![](https://img.aspxhome.com/file/2023/6/48126_0s.jpg)
MathType公式复制到Word中是代码怎么回事?
2023-11-29 06:25:56
![](https://img.aspxhome.com/file/2023/3/17873_0s.jpg)
win10 usb鼠标不供电
2023-11-09 15:28:08
![](https://img.aspxhome.com/file/2023/6/48336_0s.jpg)
word目录怎么做
2022-03-22 21:35:54
![](https://img.aspxhome.com/file/2023/0/33570_0s.gif)
如何在Word2003文档中给书签定位
2023-07-04 05:35:13
![](https://img.aspxhome.com/file/2023/3/29873_0s.jpg)
在Word文档中怎么去除页眉里的横线?
2022-02-09 11:50:27
![](https://img.aspxhome.com/file/2023/6/25326_0s.jpg)
Word替换、Excel转置、定位空值批量填充等知识点
2022-04-26 09:31:04
![](https://img.aspxhome.com/file/2023/0/32720_0s.jpg)
取消Word自动选定整个单词功能
2023-05-10 07:28:55
![](https://img.aspxhome.com/file/2023/2/30502_0s.jpg)
网络共享找不到计算机名字怎么办_网络共享找不到计算机名字解决教程
2023-11-11 08:24:21
![](https://img.aspxhome.com/file/2023/1/48541_0s.jpg)
Word2016自动备份功能如何开启?
2022-10-02 20:40:41
![](https://img.aspxhome.com/file/2023/6/22956_0s.jpg)
word的背景颜色怎么弄
2023-06-18 15:42:47
word大括号怎么输入?
2023-11-28 12:00:16
![](https://img.aspxhome.com/file/2023/5/17805_0s.jpg)
win10怎么升级成企业版系统
2023-08-02 02:01:52
![](https://img.aspxhome.com/file/2023/7/46817_0s.png)
如何批量保存Word中的图片?
2023-01-12 07:04:35
如何批量提取Word图片? 1
2023-12-06 21:48:27
怎样在Word2003文档加入背景音乐
2023-12-08 09:02:41
![](https://img.aspxhome.com/file/2023/0/20080_0s.jpg)
win10固态512最佳分区教程设置 512ssd固态硬盘最科学分法
2023-11-22 05:35:29
![](https://img.aspxhome.com/file/2023/0/49260_0s.png)