I have a list of 111 rows, each one containing different information, including a dollar amount. I also have a number that some (but not all) of those dollar amounts total to. Is there a macro, or some other way, that can automatically search through the numbers to see if any of them total the number I enter? I would also like it to remove duplicate amounts that total 0, for example $1,000 and ($1,000).
I've attached an example.
The main thing I am trying to accomplish is to weed out the duplicate amounts (where one is positive and one is negative), and use the remaining amounts to see if any of them total a certain number, in this example it is the highlighted number in row 116 (256,227.00).
Let me know if I can provide you with any other information that may help. Thanks for looking!
I didn't look at your spreadsheet, but you can always check for a match like this
if you want to get fancy: =if(countif(A:A, B1)>0, "Yes, at least one match", "Nope, there is no match")Column A : numbers B1: MatchNumber C1: =countif(A:A, B1)
Using helper columns and Solver, i got this result:
Last edited by WHER; 02-02-2012 at 06:37 PM.
I reconfigured Solver to look for a total of 256,227; it ran for several minutes but couldn't find a solution.
The attachment in post #3 is modified (explanations added)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks