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

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

Forum statistics

Threads
1,176,344
Messages
5,902,597
Members
434,981
Latest member
sheils

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