Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel - find cells in a column that add up to a certain amount

Status
Not open for further replies.

MJamison07

Technical User
Dec 13, 2001
54
US
I have listing of inv #'s and amounts. Ocassionally, I receive a payment (via direct deposit) without a listing of invoices that are paid. Eventually the client sends the voucher, but sometimes I need to know sooner.

Is there a way I can get excel to search the amount column and find the invoice amounts that add up to the payment?

For example:

Inv 1 $2
Inv 2 $4
Inv 3 $6

Payment amount is $8. Can excel find the invoices that add up to $8?

Thanks!
Martha

 
how will you manage invoices that have many items that add up to the amount you're looking for or are you certain this will never happen?
 
While I will never say never, I am 99% certain this will never happen. What kind of a problem would that create if it did?
 


Hi,

Why is it even an issue to "match up" a payment with specific invoices? Do you never get "Payment on account" payments? Would you apply a payment to an invoice, leaving an older invoice uncovered?

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
A way of doing it is shown here:

faq68-4742

... but I don't know if it does exactly what you want.

Cheers, Glenn.

Beauty is in the eye of the beerholder.
 
Thank you all for your responses.
Glenn I started with your suggestion. I tested it by selecting a few invoices and used the sum of those as the target. I would enter that target into the solver. Sometimes it worked, sometimes it timed out and returned decimals in the "b" column. There are no duplicate invoice amounts. Any ideas as to why it didn't work every time?

Thanks.
Martha
 
I haven't tried the solution but the FAQ does say
add the constraint that B1:B30 must be 'bin' (Means binary as in 1 or 0, and it's one of the dropdowns, so just hit the arrow and select 'bin')
Is it possible that you missed this step?

Gavin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top