August Challenge of the Month Discussion

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Hi all,

this is my attempt to the "Holy Grail" challenge.. being a practical person, i prefer a quick fix to the problem to an academic approach.. my attempt is not a "find all solutions" method (i'll leave that to the academics) but a solution which is a quick fix to the accounts receivable department problem which took me about 2 hours.. here goes..

you may think it is crazy to randomly pick numbers fro the list to add up to 4556.92.. but this method is easy and it produces millions of guesses in a short time.. however, i hv an added twist to this (if not, you'll take forever to find just one solution).. i hv decided on a "half-guess half-calculate" method..

i will call the list of 54 (or 53) given numbers the universal set and the a list of numbers that add up to 4556.92 the solution set..

first, i produce a list of added pairs of numbers from the universal set.. this is because i know for sure that a potential solution set will have at least 2 numbers (any 2).. 53 numbers will give 1378 combination of added pairs.. you can derive this manually, which is not too difficult or write a simple macro for this.. i did manually..

second, i generate a potential solution set by randomly picking numbers from the universal set, taking the difference of the numbers with 4556.92 and comparing the difference with the list of added pairs to get 4556.92.. that is to say, the sum of randomly picked numbers plus an added pair = 4556.92.

you may say this is really weird.. but who cares, so long as it works and i can produce the solution for the accounts dept in 2 hours! (being practical).. well, the reason for producing the added pairs is to drastically reduce the guessing time for a solution set by greatly increasing the probability of a perfect match.. each solution set takes less than 30 seconds to run..

i hv problems attaching my spreadsheet and macro (can someone show me?).. anyway, these are some of my solutions using the above method..
185.58
194.58
222.52
228.31
230.72
630.92
1,021.70
1,842.59

630.92
144.77
324.84
515.11
538.64
628.89
789.77
983.98

89.40
126.69
160.62
280.71
698.27
718.32
895.39
1,587.52

409.17
722.73
858.97
978.53
1,587.52

77.74
192.65
222.52
346.35
507.08
722.73
2,487.85


440.93
444.98
456.68
673.47
698.27
1,842.59
 
..that's the challenge. How many are there, and list them...

.. After a few modifications on my macro i realise that the total solution are too many ..

until now 295242 solutions

6000 to 17000 sol/hour

PAIR STATISTICS

TOTAL 295.242
01.02 144.682
01.03 78.894
01.04 42.585
01.05 23.701
01.06 5.380

.. 01 is the first number
.. 02 is the second
and so on
.. the numbers are sorted ascending


(I think that my english is not too bad ...)
 
to Jeffrey Chin
You find solutions (randomly) because the total solutions of spesific sum are millions

what about 1546.66 which has only 19 in the same compinations with 4556.92

..i found all (19) in less than 30 sec ..
 
Hi IOANNIS

i donno if im lucky or wat.. as i said my method is not a "find all solutions" method but im able to find at least 3 solutions in to 1546.66 in giffy..
116.14
244.22
324.84
346.35
515.11

77.74
192.65
222.52
515.11
538.64

77.74
116.14
160.62
280.71
911.45

btw, i donno if there are 19 solutions for 1556.66 becos i threw away some like
83.06
346.35
440.93
329.97
346.35
where 346.35 is repeated.. cld u verify the 19 solutions pls.. same for 4556.92, i find it hard to believe there are hundred and thousands of solutions..

Hi Smiffy,

my macro runs forever if there is no match.. i guess i can put a stop to say 100,000 guesses if i want.. like i said, for this quick fix method for the accounts dept, i think they wld be happy to take say 10 solutions to start making phone calls!

well guys,
i'll try if i hv a brute force method to find all solutions..
 
TOTAL SOLUTIONS OFF 4556.92

712473 ONLY !!!

..(If the macro has no bugs)
 
TOTAL SOLUTIONS OFF 4556.92

712473 ONLY !!!

..(If the macro has no bugs)
 
AUGUST_2002_53_02.xls
BCDE
4FIRSTNoSOLUTIONS
50177,74322.151
60283,60175.825
70389,4095.992
804116,1451.315
905126,6928.659
1006144,7716.142
1107160,629.071
1208185,585.407
1309192,653.151
1410194,581.917
1511219,101.123
1612222,52664
1713228,31444
1814230,72208
1915244,22146
2016280,71100
2117324,8448
2218329,1737
2319329,9717
2420346,3517
2521365,4318
2622409,179
2723440,939
2824441,431
2925444,980
3026456,681
3127507,800
3228515,110
3329538,640
3430542,120
3531589,180
3632628,891
37TOTAL712.473
C_08_2000_STAT_54
 
Hi Ioannis

wat does the table mean?
does it mean the number 77.74 appears in 322,151 times out of all the 712,473 solutions?
 

Forum statistics

Threads
1,215,432
Messages
6,124,860
Members
449,194
Latest member
HellScout

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