跳到主要内容

如何在Excel中生成所有可能的4位数字组合的列表?

在某些情况下,我们可能需要生成一个由4到0的所有可能的9位数字组成的列表,这意味着要生成一个0000、0001、0002…9999的列表。 为了快速解决Excel中的列表任务,我为您介绍了一些技巧。

具有公式的所有可能的4位数组合的列表

具有列出所有组合的所有可能的4位数字组合的列表 好主意3

用插入序列号列出所有可能的4位数字组合 好主意3


在Excel中,您可以使用以下公式列出数字4到0的所有可能的9位数字组合。

选择一个空白单元格并键入此公式 = TEXT(ROW(A1)-1,“ 0000”) 进去,然后按 输入 键,然后向下拖动自动填充手柄,直到列出所有4位数字组合。

文档列表4位数字组合1


向下拖动公式直到列出所有组合都是乏味的。 但是,如果您有 Kutools for Excel 安装好后,就可以使用它了 列出所有组合 实用程序可快速列出所有4位数字的组合。

Kutools for Excel, 与超过 300 方便的功能,使您的工作更加轻松。 

安装后 Kutools for Excel,请执行以下操作:(立即免费下载Kutools for Excel!)

1.选择一个单元格A1,在其中键入0,然后在下一个单元格中向下键入1。 然后选择A1和A2,然后向下拖动自动填充手柄,直到出现数字9。 看截图:

文档列表4位数字组合2

2.然后,您需要将列格式设置为 文本 (该列将放入组合),单击空白列标题,说出F列,然后右键单击以选择 单元格格式,然后选择 文本联系电话 选项​​卡 单元格格式 对话框,然后单击 OK 。 看截图:

文档列表4位数字组合3

3。 点击 库工具 > 插页 > 列出所有组合。 看截图:

doc列出所有数字的组合12

4。 “ 列出所有组合 对话框弹出,您只需要执行以下操作:

(1)选择 ,在 Type 清单

(2)点击 doc按钮 以选择您的号码列表,(您也可以直接在文本框中输入用逗号分隔的号码),然后单击 地址 将第一个列表添加到 组合清单;

(3)重复步骤(2)XNUMX次,以将其他三个数字列表添加到 组合清单.

文档列表4位数字组合12

5。 点击 Ok。 现在会弹出一个对话框,提醒您选择要放入结果的单元格,这里您需要选择要格式化为的列的第一个单元格 文本.

文档列表4位数字组合6

6。 点击 OK。 现在列出了4-0的所有9位数字。

文档列表4位数字组合7

单击此处以了解有关列出所有组合的更多信息


In Kutools for Excel,你可以使用 插入序列号 也解决这个任务。

安装后 Kutools for Excel,请执行以下操作:(立即免费下载Kutools for Excel!)

1.选择大范围的单元格(超过100000个单元格),然后单击 库工具 > 插页 > 插入序列号。 看截图:

doc列出所有数字的组合13

2.然后在 插入序列号 对话框,请执行以下操作:

(1)点击 全新 创建一个新序列。 看截图:

文档列表4位数字组合9

(2)类型 0 作为 Start 开始 数, 1 作为 增量4 作为 位数,并检查 结束号码 选项和类型 9999 进入文本框。 看截图:

文档列表4位数字组合10

3。 点击 地址 添加此序列规则,然后单击 填充范围。 看截图:

文档列表4位数字组合11

单击此处以了解有关插入序列号的详细信息。

最佳办公生产力工具

🤖 Kutools 人工智能助手:基于以下内容彻底改变数据分析: 智能执行   |  生成代码  |  创建自定义公式  |  分析数据并生成图表  |  调用 Kutools 函数...
热门特色: 查找、突出显示或识别重复项   |  删除空白行   |  合并列或单元格而不丢失数据   |   不使用公式进行四舍五入 ...
超级查询: 多条件VLookup    多值VLookup  |   跨多个工作表的 VLookup   |   模糊查询 ....
高级下拉列表: 快速创建下拉列表   |  依赖下拉列表   |  多选下拉列表 ....
列管理器: 添加特定数量的列  |  移动列  |  切换隐藏列的可见性状态  |  比较范围和列 ...
特色功能: 网格焦点   |  设计图   |   大方程式酒吧    工作簿和工作表管理器   |  资源库 (自动文本)   |  日期选择器   |  合并工作表   |  加密/解密单元格    按列表发送电子邮件   |  超级筛选   |   特殊过滤器 (过滤粗体/斜体/删除线...)...
前 15 个工具集12 文本 工具 (添加文本, 删除字符,...)   |   50+ 图表 类型 (甘特图,...)   |   40+ 实用 公式 (根据生日计算年龄,...)   |   19 插入 工具 (插入二维码, 从路径插入图片,...)   |   12 转化 工具 (小写金额转大写, 货币兑换,...)   |   7 合并与拆分 工具 (高级组合行, 分裂细胞,...)   |   ... 和更多

使用 Kutools for Excel 增强您的 Excel 技能,体验前所未有的效率。 Kutools for Excel 提供了 300 多种高级功能来提高生产力并节省时间。  单击此处获取您最需要的功能...

产品描述


Office Tab 为 Office 带来选项卡式界面,让您的工作更加轻松

  • 在Word,Excel,PowerPoint中启用选项卡式编辑和阅读,发布者,Access,Visio和Project。
  • 在同一窗口的新选项卡中而不是在新窗口中打开并创建多个文档。
  • 每天将您的工作效率提高50%,并减少数百次鼠标单击!
Comments (19)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Hi everyone, how I can generate a list of 4 digits passcode where the 2nd number will always be 7 and the last number will always be 6
X7X6
This comment was minimized by the moderator on the site
Il primo metodo con la formula non funziona. Mi dice che gli elementi della formula sono insufficienti e sono sicura di aver scritto correttamente
This comment was minimized by the moderator on the site
Hi, Sara Cutelli, the formula provided only work for English version, may be you can try this formula =TESTO(RIF.RIGA(A1)-1;"0000")
This comment was minimized by the moderator on the site
For simplicity, lets say my values are letters, there are 16 of them.

a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p

I need all 3 letter sets, except no repeated letters.
And I also do not need different order sequences, example: I do not need all of these, just one: abc, bca, cab, acb, bac.
How would I get this?
This comment was minimized by the moderator on the site
Hi, I found a code for solving your job. You can view this tutorial, How to list all possible combinations from single column in Excel? the second method may help you.
This comment was minimized by the moderator on the site
Sorry, I have not found any solution for yor question.
This comment was minimized by the moderator on the site
36930.15
87000
62974
56812.54
44475
40500.23
38925
38250
35571.52
34049.98
27272
26100
24975
22050
20025
19811.03
18450
16650
15000
15000
15000
15000
15000
15000
15000
15000
15000
15000
15000
15000
13933.01
13857.55
10951
10687.04
7650
7546.77
6823.96
5922
5834.333
5732
5411
3083
1851
1217.46
1100
1017.7
40


i WANT MAXIMUM COMBINATION VALUE HOW DO I GET IN EXCEL
This comment was minimized by the moderator on the site
Hi, SACHIN, you can use the List all combination utility of Kutools for Excel to list all combinations, then use the Select cells with max or min value utility of Kutools for Excel to find tge maximum combination value.
This comment was minimized by the moderator on the site
hi from numbers 1 to 8 how many mixed 4 number combinations do i get
This comment was minimized by the moderator on the site
Hi,dinesh,just try the third method, you can get the final result by yourselft.
This comment was minimized by the moderator on the site
I WANT COMBINATION OF 1,2,3,4,5,6,7,8 PLEASE PROVIDE THE EXCEL SHEET

T
This comment was minimized by the moderator on the site
Just try above method, you can do by yourself.
This comment was minimized by the moderator on the site
I have a question! How to list all possible combination of numbers? For example, I have these numbers: 2, 2, 2, 1, 0. I want to generate all possible combinations of these five numbers. For example 22210, 10222, 21220, 20122, 21022... and so on. Please help!
This comment was minimized by the moderator on the site
Hello. Thanks for the List All combinations tool. However, some combinations exceed the total number of rows excel can offer in a given column (1,048,576). Is it possible to let the list continue in another column within the same sheet? Or even have the tool in word or text which doesn't limit the rows? I appreciate your feedback!
This comment was minimized by the moderator on the site
Sorry, this is too difficult to execute.
This comment was minimized by the moderator on the site
Hi Mr.Sunny can u sove this I have 1,2,3....22 but I pick only any 11 Numbers order not matter what are the list of possibilities
This comment was minimized by the moderator on the site
you can create all the possibilities of a group of numbers in the number program mobile app.
This comment was minimized by the moderator on the site
Hi, dharmendar, you can try to use Kutools for Excel‘s Select and Sort Randomly feature to select 11 numbers randomly from the 1,2,3...22 list.
This comment was minimized by the moderator on the site
hi. thanks for the stuff
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations