Formula to find possible combinations to a target amount

millylopez04

New Member
Joined
Jul 12, 2019
Messages
3
Hello!

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!

Milly :)
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Hi,

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:

https://www.mrexcel.com/forum/excel...llar-amounts-match-entered-dollar-amount.html

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.
 
Upvote 0
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).
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top