ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   find cells that add up to certain value (https://www.excelbanter.com/excel-worksheet-functions/87686-find-cells-add-up-certain-value.html)

Joshua Jacoby

find cells that add up to certain value
 
I am an accounting clerk, trying to reconcile an account. So, I have a list
of debits and credits for an account, and I'm trying to "tick and tie", or
balance, the account. For example:
A B
1 Debits Credits
2 10
3 25
4 33
5 41
6 55
7 58
8 41
9 65

My example is simple to balance since I can cross out the 25 and 33
balancing out with the 58. My problem is with an account ledger that has
500-1000 entries on it and trying to find which debits match which credits.
If anyone can help me with a fuction or macro or anything, I'd appreciate it!
For example: "what cells/values in column A equal 65"?

[email protected]

find cells that add up to certain value
 
Hello,

I suggest to look he http://michael-schwimmer.de/vba096.htm

It is a nice beautification of Mr. Excel's winning solution of his
challenge of the month (August 2002): http://www.mrexcel.com/pc09.shtml


HTH,
Bernd


Bob Umlas, Excel MVP

find cells that add up to certain value
 
the problem is that, especially with 500-1000 rows, there will likely be many
many combinations of values which will total a given result. You CAN use
Solver to do this, setting up conditions such as
A B C
10 =A1*B1
25 =A2*B2
33 =A3*B3
41 =A4*B4
55 =A5*B5
=SUM(C1:C5)
etc.
Solver would include setting B1:B5 to be integer, <=1, =0, and setting C6 =
to your target value, like 55.
But with 1000 rows, this could churn for awhile!
HTH
Bob Umlas
Excel MVP

"Joshua Jacoby" wrote:

I am an accounting clerk, trying to reconcile an account. So, I have a list
of debits and credits for an account, and I'm trying to "tick and tie", or
balance, the account. For example:
A B
1 Debits Credits
2 10
3 25
4 33
5 41
6 55
7 58
8 41
9 65

My example is simple to balance since I can cross out the 25 and 33
balancing out with the 58. My problem is with an account ledger that has
500-1000 entries on it and trying to find which debits match which credits.
If anyone can help me with a fuction or macro or anything, I'd appreciate it!
For example: "what cells/values in column A equal 65"?


[email protected]

find cells that add up to certain value
 
Hello Joshua,

I suggest to look he http://michael-schwimmer.de/vba096.htm

It is a nice beautification of Mr. Excel's winning solution of his
challenge of the month (August 2002): http://www.mrexcel.com/pc09.shtml


HTH,
Bernd



All times are GMT +1. The time now is 12:29 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com