简体   繁体   English

是否有一个单元格公式可以在 EXCEL 中获得一个以逗号分隔的列表并增加数字

[英]is there a one cell formula for getting a comma separated list with increasing numbers in EXCEL

Look at the picture below: I have 3 cells containing the starting number(B4=1), the increment number (C4=2) and the desired amount of numbers in the list (D4=3).请看下图:我有 3 个单元格,其中包含起始编号 (B4=1)、增量编号 (C4=2) 和列表中所需的数字数量 (D4=3)。 In F4 I would like to have a list of comma separated values in F4 (1,3,5).在 F4 中,我想在 F4 (1,3,5) 中有一个逗号分隔值的列表。 I tried something with REPT: B4&REPT(","&1(something like+C4);D4-1), but I do not know how to increase each repetion value.我尝试了 REPT:B4&REPT(","&1(something like+C4);D4-1),但我不知道如何增加每个重复值。

;

Consider:考虑:

=TEXTJOIN(",",TRUE,SEQUENCE(C1,,A1,B1))

with the starting value in A1 , the increment in B1 and the number of items in C1 . A1中的起始值, B1中的增量和C1中的项目数。

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM