Calculate the sum of named combinations

How to display the calculation results:
Total:
Candidate items:

The entered value is invalid.

Calculation results:
 
Input value:
NameValue

How to use Named Combination Sum Calculator

Combines the numeric values ​​of multiple items and calculates combinations whose total equals the total value entered.

Since you can give each numerical value a name, this tool makes it easy to input the product name and price when shopping, and then combine them to make calculations to buy the exact amount.

How to input

In the "Candidate items" field, enter the items to be combined as names and integer values, separated by commas.

Enter multiple items by separating each item with a line break.

In the "Total" field, enter the total value you want to combine and match.

If a decimal value is entered, it will be rounded down to an integer.

Click the "Calculate" button to calculate the combinations that match the total value and display them in a list.

Clicking the "Clear" button will delete all content in the input field.

Calculation results

The number of combinations and a list of the resulting combinations will be displayed using the display method selected in "How to display the calculation results".

Each combination is displayed with the name of the item and a number in parentheses.

If the number of items exceeds 10,000, only up to 10,000 items will be displayed.

Also, if there are too many combinations, an error will be displayed.

Select the same thing multiple times

If "Select the same thing multiple times" is not checked, each of the entered candidate items will be used up to once to calculate the combinations that match the total value.

If you check "Select the same thing multiple times", the same number can be selected multiple times from the entered candidate items, and the combinations that match the total value will be calculated.

Save settings

The content entered in the input field and settings such as delimiters are saved in the browser.

Even if you close your browser, you can see the previous content when you reopen it.