跳到主要內容

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

在某些情況下,我們可能需要生成一個由4到0的所有可能的9位數字組成的列表,這意味著要生成一個0000、0001、0002…9999的列表。 為了快速解決Excel中的列表任務,我為您介紹了一些技巧。

帶公式的所有可能的4位數組合的列表

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

用插入序列號列出所有可能的4位數字組合 好主意3


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

選擇一個空白單元格並鍵入此公式 = TEXT(ROW(A1)-1,“ 0000”) 進去,然後按 Enter 鍵,然後向下拖動自動填充手柄,直到列出所有4位數字組合。

文檔列表4位數字組合1


向下拖動公式直到列出所有組合都是乏味的。 但是,如果您有 Excel的Kutools 安裝好後,就可以使用它了 列出所有組合 實用程序可快速列出所有4位數字的組合。

Excel的Kutools, 與以上 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)選擇 ,在 類別 清單;

(2)點擊 doc按鈕 以選擇您的號碼列表,(您也可以直接在文本框中輸入用逗號分隔的號碼),然後單擊 加入 將第一個列表添加到 組合清單;

(3)重複步驟(2)XNUMX次,以將其他三個數字列表添加到 組合清單.

文檔列表4位數字組合12

5。 點擊 Ok。 現在會彈出一個對話框,提醒您選擇要放入結果的單元格,這裡您需要選擇要格式化為的列的第一個單元格 文本.

文檔列表4位數字組合6

6。 點擊 OK。 現在列出了4-0的所有9位數字。

文檔列表4位數字組合7

單擊此處以了解有關列出所有組合的更多信息


In Excel的Kutools,你可以使用 插入序列號 也解決這個任務。

安裝後 Kutools for Excel,請執行以下操作:(立即免費下載Kutools for Excel!)

1.選擇大範圍的單元格(超過100000個單元格),然後單擊 庫工具 > 插入 > 插入序列號。 看截圖:

doc列出所有數字的組合13

2.然後在 插入序列號 對話框,請執行以下操作:

(1)點擊 全新 創建一個新序列。 看截圖:

文檔列表4位數字組合9

(2)類型 0 作為 開始 數, 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選項卡為Office帶來了選項卡式界面,使您的工作更加輕鬆

  • 在Word,Excel,PowerPoint中啟用選項卡式編輯和閱讀,發布者,Access,Visio和Project。
  • 在同一窗口的新選項卡中而不是在新窗口中打開並創建多個文檔。
  • 將您的工作效率提高 50%,每天為您減少數百次鼠標點擊!
Comments (20)
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
Dear Frıend.
5 number permutations that what you want
Not combonatıons
If you know Mıctosoft365 Excel you can easyly create one changing dıgıts
Have z nıce day
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