Results 1 to 3 of 3

Thread: Formula to find possible combinations to a target amount
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    New Member
    Join Date
    Jul 2019
    Post Thanks / Like
    0 Post(s)
    0 Thread(s)

    Default Formula to find possible combinations to a target amount


    I'm trying to find what possible combination of numbers is causing a variance. I saw someone do a formula once to find this but I don't have that formula. We have a statement with close to 500 lines and I wanted to be able to find which combination of those number would make $$$ amount that I'm off.

    I just tried a method I found online using solve add-in and it's been over 30 mins and excel is still working on that. It's basically frozen, so far it says it's on the 20,000+ subproblem and counting up fast, but I haven't seen any solution yet. When I saw this person do a formula before it didn't take long at all, so I'm wondering if there's a different way.

    Any help is appreciated, thanks in advance!


  2. #2
    MrExcel MVP Eric W's Avatar
    Join Date
    Aug 2015
    Bountiful, UT
    Post Thanks / Like
    44 Post(s)
    5 Thread(s)

    Default Re: Formula to find possible combinations to a target amount


    This problem comes up from time to time. I'm not aware of any formula to do this, but there are some programs that work. The Solver method would probably only work on a smaller number of lines. Here's a link to where I explain where to get the program, and how to use it:

    in post 2. With 500 lines though, I suspect you'll get too many results to be useful. You'll probably have to find another way to find the discrepancy, like checking each line for typos.

    When you eliminate the impossible, whatever remains, however improbable, must be the truth.

    -Posting guidelines, forum rules, terms of use, FAQs, BB codes, See how to search the forum
    -Post a screen shot with the HTML Maker

  3. #3
    Board Regular Toadstool's Avatar
    Join Date
    Mar 2018
    Post Thanks / Like
    9 Post(s)
    2 Thread(s)

    Default Re: Formula to find possible combinations to a target amount

    I don't know of a formula, just some hints about what Accountants used to do in the days numbers were typed in:

    Hint 1: Divide the discrepancy by 2 and search the statement for that number (to find a debit/credit error).

    Hint 2: Divide the discrepancy by 9 (or .09 if you've cents). If you get no remainder then there was probably a transposition of two digits (e.g. 123.54 instead of 123.45)

    Hint 3: Is the discrepancy a three error? (i.e. the discrepancy is .03, .3, 3, 30, 300, 3000 etc) then it was probably a numeric pad entry error of hitting the wrong row (e.g. a 1 for a 4, an 8 for a 5, etc).
    Life advice found on a book of matches: "Keep cool. Keep away from children."

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts