formula for closest match

rodolfo

New Member
Joined
May 18, 2010
Messages
2
hello guys, i am new in this site and i am mot sure if this has been asked before, here's my problem.

The first column is the invoice number and the second column is the value of the invoice.
A1200 2,525.25
A1250 4,234.21
A1750 3,135.22
C2150 1,234.87
B7510 2,112.36

Problem arises when I have about 100 or mpre invoices like above and I receive a payment of 10,235.60 without details of invoices to be applied. What would be my formula to find the closest match or count to the amount I received, and how would the result indicate which invoices or amount he sum-up? I understand that the result might have a lot of options, so I might as well limit the result into 10 options only or less, and provide range of target amount between 10,000 to 10,500.

i hope my question is clear and wish somebody out there can answer me.
thanks.
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Forum statistics

Threads
1,215,851
Messages
6,127,291
Members
449,374
Latest member
analystvar

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