Introducing TM Match Target

The TM Match Target add-in analyzes a list of numbers and finds combinations that sum to a given total. This has applications in a range of disciplines including processing receipts, reconciling payments such as health care insurance reimbursements or payments by a customer for many outstanding invoices, operations management and operations research, and supply change management.

There are a number of posts, easily found through Google or Bing, that address the same issue, including my own Find a set of amounts that match a target value. This add-in packages the analysis in an easy-to-use interface, includes a means to stop the analysis if it is taking too long and preserve the combinations found so far, together with various options on what results should be shown.

For more please visit http://www.tushar-mehta.com/excel/software/match_target/.

Tushar Mehta

4 Comments

  1. Rob van Gelder says:

    Hey cool. I’ve needed something like this a few times over the years. I usually do something funky using Solver, but would prefer something more exhaustive. Does your add-in try every combination?

  2. lhm says:

    For a formula approach for finding the closest combination of values that sum to a target dollar value, i think you could also try this method in Excel 2010 for up to 20 values…

    Define names for Target value T, amounts A, match index n, for example: T=A1, A=A2:A10, n={1,2,3,4,5}.

    Then define the named formula for values to include in sum V, given by the formula below:

    =INT(MOD(MOD(SMALL(ABS(ROUND((MMULT(INT(MOD(ROW($A$1:INDEX($A:$A,2^ROWS(A)))/2^TRANSPOSE((ROW(A)-MIN(ROW(A)))),2)),A)-T)*10^9,-7))+ROW($A$1:INDEX($A:$A,2^ROWS(A))),n),10^7)/2^(ROW(A)-MIN(ROW(A))),2))

    and Ctrl+shift+enter {=V} in adjacent cells, for example in B2:F10 to return the closest five combinations of values.

  3. SFdude says:

    Good. Could be very useful.

    But be aware:
    this is NOT free.
    (should be pointed out in your post, IMHO).

  4. Tushar Mehta says:

    Rob: Checking every combination is not necessary. The algorithm skips those combinations it knows cannot add up to the target sum. That requires (1) the data to be positive or (2) the negative numbers to be at the start of the list.

    It is possible to reduce even further the number of combinations searched by organizing the positive numbers in descending order.

Leave a Reply


Advertisement Peltier Tech Chart Utilities for Excel PTS Waterfall Chart Utility Peltier Tech Box and Whisker Chart Utility Peltier Tech Cluster-Stack Chart Utility Peltier Tech Panel Chart Utility Peltier Tech Marimekko Chart Utility Peltier Tech Dot Plot Utility Peltier Tech Cascade Chart Utility