Select the correct data out of a range to equal a predeterminded sum

Rocket28

Board Regular
Joined
Jan 23, 2009
Messages
60
Hi,

I have a list of invoices that go for well over a thousand lines, and I want to be able to wite a formula so that excel picks up the lines that will equal a predetermined number.

To be specific, the total of the invoices is well in exess of £3 million, However, i simply want to select invoices that when added together will equaly exactly £750,000 (or the closest possible number). Any invoice can be chosen, but obviously it can only be chosen and counted once.

I can do this manually, but it will be a trial and error situatuion, which may in truth take hours each time it is required.

Thanks so much!!!
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

Watch MrExcel Video

Forum statistics

Threads
1,133,272
Messages
5,657,771
Members
418,412
Latest member
fehr56

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
Top