Reconcile Values In VBA

lewisgmorris

Board Regular
Joined
Oct 23, 2014
Messages
119
Hi All,

I have tried and tried to work my head around making lists of all unique permutations of a list of values that equal x but no luck. If any one has any idea I would apprecate it.

Its like a brute force algorithm for passwords I guess but i cant work out how to only use each value once.

Any help appreciated.

IE

TOTAL £3000

VALUES

£500
£200
£200
£100
£250
£350
£100
£275
£375
£300
£3000
£1000
£1000
£2000


ANSWER (could be multiple)

£3000,

£1000+£2000,

£1000,£1000,£200,£200,£100,£500
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
nothing ??

Hi All,

I have tried and tried to work my head around making lists of all unique permutations of a list of values that equal x but no luck. If any one has any idea I would apprecate it.

Its like a brute force algorithm for passwords I guess but i cant work out how to only use each value once.

Any help appreciated.

IE

TOTAL £3000

VALUES

£500
£200
£200
£100
£250
£350
£100
£275
£375
£300
£3000
£1000
£1000
£2000


ANSWER (could be multiple)

£3000,

£1000+£2000,

£1000,£1000,£200,£200,£100,£500
 
Upvote 0
You're a hero. I remember seeing the first link before!

Thank you.

I have no idea how its working but Its working.
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,875
Members
452,363
Latest member
merico17

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