Excel中REPT函数的语法和用法
时间:2023-04-26 02:21:26
本文介绍Microsoft Excel中REPT函数的语法和用法。
REPT函数适用于:Excel2003、Excel2007、Excel2010、Excel2013、Excel2016。
函数说明
按给定次数重复文本,可以通过函数 REPT 来不断地重复显示某一文本字符串,对单元格进行填充。
函数语法
REPT(text,number_times)
参数说明
Text
1、必填项
2、需要重复显示的文本
Number_times
1、必填项
2、指定文本重复次数的正数
函数示例
REPT函数示例1
=REPT("Excel教程",2)
函数返回结果
Excel教程Excel教程
REPT函数示例2
=REPT("Excel教程",0)
函数返回结果
空
REPT函数示例3
=REPT("Excel教程",-1)
函数返回结果
#VALUE!
REPT函数示例4
=REPT("Excel教程",2.9)
函数返回结果
Excel教程Excel教程
REPT函数示例5
=REPT("Excel教程",32767)
函数返回结果
#VALUE!
函数总结
如果 number_times 为 0(零),则 REPT 返回 ""(空文本)。
如果 number_times 不是整数,将被截尾取整。不是四舍五入啊!
如果number_times为负数,将返回#VALUE!。
REPT 函数结果的长度不能超过 32,767 个字符,否则 REPT 返回 #VALUE!。
以下是Excel中使用REPT函数效果截图
标签:REPT函数
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
全世界最酷的软件!谷歌地球重磅更新
2023-04-08 07:41:51
![](https://img.aspxhome.com/file/2023/3/a293675_0s.png)
excel如何制作日历
2023-06-12 11:17:53
情侣写真摄影调色lr预设
2023-06-16 19:02:53
![](https://img.aspxhome.com/file/2023/6/a206586_0s.jpeg)
常用注册表键值的意义,你不得不知!
2023-11-28 08:45:47
苹果Mac上的Dock 自动隐藏 / 显示工具推荐: IntelliDock
2022-01-16 12:48:02
![](https://img.aspxhome.com/file/2023/9/a208369_0s.gif)
Win11系统语言修改不了怎么办?Win11系统语言修改不了解决方法
2022-10-20 09:43:52
![](https://img.aspxhome.com/file/2023/27/a237647_0s.jpg)
Excel2010表格窗口如何重排?
2022-03-25 06:32:28
![](https://img.aspxhome.com/file/2023/7/36517_0s.jpg)
Excel中WORKDAY函数的语法和用法
2023-04-04 21:18:53
![](https://img.aspxhome.com/file/2023/7/a155677_0s.png)
word2010和2013设置插入图片格式的方法
2022-08-31 13:53:45
默认网关怎么查 电脑默认网关是多少怎么查
2023-01-25 21:35:13
![](https://img.aspxhome.com/file/2023/1/a273198_0s.png)
怎样解决word页码不连续问题
2023-09-10 21:29:37
iOS15 Beta7修复了哪些内容?iOS15正式版还远吗?
2023-09-23 06:41:09
![](https://img.aspxhome.com/file/2023/1/45721_0s.png)
WPS表格怎么只打印部分内容?
2023-10-22 21:15:01
![](https://img.aspxhome.com/file/2023/7/a165727_0s.png)
dnf怎么解除安全模式?
2023-06-06 07:18:50
![](https://img.aspxhome.com/file/2023/3/a296283_0s.png)
Word如何删除段落标记?
2023-03-02 01:47:59
![](https://img.aspxhome.com/file/2023/1/34671_0s.gif)
迅雷卡在99.9不动了 迅雷卡在99.9怎么办
2022-05-05 19:48:36
![](https://img.aspxhome.com/file/2023/1/a272140_0s.jpg)
XP系统下对wps表格数字进行筛选的方法
2023-03-03 21:38:04
![](https://img.aspxhome.com/file/2023/2/a291244_0s.jpg)
为什么Win10笔记本屏幕会突然变暗?
2022-06-10 09:58:33
![](https://img.aspxhome.com/file/2023/26/a226448_0s.jpg)
excel表格怎么计算平方喝立方
2023-01-28 03:16:25
word怎么更改默认的度量单位?
2022-10-26 19:07:13
![](https://img.aspxhome.com/file/2023/6/23876_0s.jpg)