Login to access the private areas of this web site Register to become a member of this web site
 Home arrow Find Combinations

This high quality add-in is free. Not just 'free to download' but free to use: there will be no cost now or in the future. We believe this add-in will be useful to professional who uses spreadsheets and when you begin looking for a spreadsheet management solution, we will not be strangers to you.

It is developed using Visual Studio Tools for Office (VSTO) and Window Presentation Foundation (WPF). If you think an advanced custom add-in could make your Excel-based business process more effective, efficient or usable, contact us to find out how we can help (info@lyquidity.com).

Introduction

The Find Combinations an Excel 2007 add-which allows a user to find the combination of values in a specified cell range that total to a given value.  The add-in is presented as custom task pane so it is always displayed while you need it and can be hidden at other times.

Video

Watch this video to find out more about installing and using the add-in.

Access the add-in from the Review tab
Review tab

Signup

To watch the video or install the add-in you will be prompted to sign up or sign in if you already have an account on this site. Although the add-in has no monetary cost, we do ask you to provide professional contact details. You will need to enter details that can be validated to ensure you have access to the add-in and/or the video.  If you provide incomplete details it is likely the web site will not enable your account for this feature

Install the add-in

The add-in can be installed using the options on this page.

Using the add-in

The Find Combinations add-in is added to the Review tab. When you click on the Find Combinations button the add-in will present a custom task pane (see screenshot 2 below). The task pane allows you to:

Select a range of values

The selection identifies the cells values to be checked.  The range must contain 2 or more cells to be valid and can include more than one area.  Blank and other non-numeric cells will be ignored.  But be careful, date are a number in Excel.

Enter a target value

Combinations of cell values will be computed and tested against this number for a match.

Maximum group size

This value allows you to control the maximum size of groups that will be tested. For example, although you are looking for combinations of numbers in a list of 100 values, you may know that the the number of values to be added together never exceeds, say, 5. You can then specify 5 as the maximum group size and then no groups of 6 or higher will be tested.

This is important, especially in large lists, because the number of potential combinations can be vast. There are 627 combinations of 2, 3, 4 and 5 numbers in a list 10. There are 2,369,885 combinations of the same groups in a list of 50 numbers and 7,937,339 combinations in a list of 100. On my 1.8Mz laptop working through these 7+ million numbers takes about 5 minutes.

Image
Enter the criteria

Matches

The add-in will attempt to work through any problem given to it up to a limit 17,000,000,000 (17Bn) combinations though you might want to take an extended coffee break while this many are processed. This limit is reached using just the combinations of any six numbers from a list of 100 numbers of which there are over 1.2 billion.

As combinations are processed progress through the relevant combinations is indicated. You can halt the process at any time by pressing the Cancel button.

If a match is found, the process is interrupted and the matching combination of cells is highlighted (see screenshot 3). If the combination is the one you are looking for, press the cancel button. If it is not the one you require, press the next button.

Step through each valid combination
Valid combinations