在Excel中輕鬆找到等於給定總和的所有組合
Excel的Kutools
提升 Excel 300+
強大的功能
假設有一個數字列表(整數,十進制數或負數),現在,您想從這些數字中找到所有等於給定總和的可能組合。 通常,您可以使用公式,求解器加載項或用戶定義的函數來實現它,但是這很耗時且不易處理。 這裡有用 組成一個數字 的效用 Excel的Kutools,找到等於給定總和的所有組合在Excel中從未如此簡單。
查找等於給定總和的所有組合
如下面的屏幕截圖所示,要查找範圍總計為3的B11:B520範圍內的所有可能數字組合,可以嘗試使用Make Up a Number實用程序,如下所示。
1。 點擊 庫工具 > 內容 > 組成一個數字.
2。 在裡面 補數 對話框,請進行以下設置。
- 在 數據源 在方框中,選擇數字列表以查找哪些數字加起來為520;
- 在 選項 部分,在520中輸入XNUMX 總和 文本框;
- 點擊 OK 按鈕。 看截圖:
3.在接下來 補數 對話框中,選擇一個單元格以輸出組合,然後單擊 OK 按鈕。 然後一個 Excel的Kutools 彈出對話框,告訴您將創建多少個組合,單擊 OK.
您可以看到以下列出了總計為520的所有可能的選定數字組合。
筆記:
1.可以選擇指定組合數和每個組合中的元素數,而不是生成所有組合。 如下面的屏幕截圖所示,您可以將組合數指定為4,並在每個組合中從1到4指定元素數,然後,您將獲得以下結果:
結果:
2.此強大功能還可應用於十進制和負數,請參見屏幕截圖:
您將獲得如下所示的結果截圖:
3.您可以檢查 保存在新表中 框將組合輸出到新的工作表。
查找等於給定總和的所有組合
Excel的Kutools 包括300多個便捷的Excel工具。 30天免費試用,不受限制。 立即下載免費試用版!
生產力工具推薦
以下工具可以極大地節省您的時間和金錢,哪一種適合您?
Office Tab: 在辦公室中使用方便的選項卡,作為Chrome,Firefox和New Internet Explorer的方式。
Excel的Kutools: 超過300種Excel高級功能 2021、2019、2016、2013、2010、2007 和 Office 365。
以下工具可以極大地節省您的時間和金錢,哪一種適合您?
Office Tab: 在辦公室中使用方便的選項卡,作為Chrome,Firefox和New Internet Explorer的方式。
Excel的Kutools: 超過300種Excel高級功能 2021、2019、2016、2013、2010、2007 和 Office 365。
Excel的Kutools
上述功能只是Kutools for Excel的300個強大功能之一。
專為 Excel(Office) 2021、2019、2016、2013、2010、2007 和 Office 365 設計。免費下載和使用 30 天。
Sort comments by
#45022
This comment was minimized by the moderator on the site
0
0
#45039
This comment was minimized by the moderator on the site
Report
0
0
#41167
This comment was minimized by the moderator on the site
0
0
#41144
This comment was minimized by the moderator on the site
0
0
#41389
This comment was minimized by the moderator on the site
Report
0
0
#42718
This comment was minimized by the moderator on the site
0
0
#42899
This comment was minimized by the moderator on the site
Report
0
0
#41128
This comment was minimized by the moderator on the site
0
0
#41390
This comment was minimized by the moderator on the site
Report
0
0
#41065
This comment was minimized by the moderator on the site
0
0
#41049
This comment was minimized by the moderator on the site
Report
0
0
#40340
This comment was minimized by the moderator on the site
0
0
#40386
This comment was minimized by the moderator on the site
Report
0
0
#37143
This comment was minimized by the moderator on the site
0
0
#37144
This comment was minimized by the moderator on the site
Report
0
0
#36068
This comment was minimized by the moderator on the site
Report
0
0
#36069
This comment was minimized by the moderator on the site
Report
0
0
#36070
This comment was minimized by the moderator on the site
Report
0
0
#35918
This comment was minimized by the moderator on the site
0
0
There are no comments posted here yet