>Hi, I work at a travel agency and I reconcile a corporate credit card that
>might list a total charge of $800 by a hotel but in reality we'll have 2
[quoted text clipped - 22 lines]
>that would be be plus/minus 5% of the total since they sometimes charge more
>or less I'll send you a virtual keg! Thanks!
You need the Solver AddIn.
If it's not already loaded, go to Tools--> Add-ins and tick the Solver
Add in.
Now with your 10 given cells in say A1:A10, (if they're not in a list
one following another then I suggest filtering them first), put zero
in cells B1:B10
In say D1 enter the formula
=SUMPRODUCT((A1:A10)*(B1:B10))
Now you can use the solver add in
Tools--> Solver In the dialog box set the Target Cell to D1, select
the 'Equal To:' option to 'Value' and enter your desired total in the
box.
Now in the 'By Changing Cells' box, enter B1:B10,
Next to the 'Subject to Constraints' box choose ADD
In the Cell Reference box enter B1:B10
In the small central drop down box choose 'bin' (meaning binary)
Enter OK
Now Hit the 'Solve' button.
HTH
__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________
Richard Buttrey - 19 Mar 2006 19:51 GMT
>>Hi, I work at a travel agency and I reconcile a corporate credit card that
>>might list a total charge of $800 by a hotel but in reality we'll have 2
[quoted text clipped - 50 lines]
>
>HTH
Hi,
I missed your constraint that your numbers were not in adjacent cells.
Hence if you use this method it will be necessary to filter copy them
from your data to a contiguous range like A1:A10.
I forgot to add that B1:B10 will identify with a '1', which of the 10
cells total your required number.
Rgds
__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________
rwfrench - 20 Mar 2006 03:56 GMT
Thanks Richard, I'll give this a shot. I knew there had to be a way of
having it try to sum different cells to look for a total or total range.
There are so many variables in tracking them down and I hope this will bring
order to chaos! Much obliged!
Rodney
> >>Hi, I work at a travel agency and I reconcile a corporate credit card that
> >>might list a total charge of $800 by a hotel but in reality we'll have 2
[quoted text clipped - 66 lines]
> Grappenhall, Cheshire, UK
> __________________________