Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 88
Default find the correct sum

HI EXPERTS,

i hope you and excel can do this.
i have a master data with so many rows.
i.e A B C D
No Name City Values
1 - - 100
2 - - 3081
-
5000 - - 6

now my bos ask me to find values with total sum i.e 258,000 from data above.

can excel do this, or should create program using vb?
can anybody help me?

hope you understand with what i want to achieve.

thanks

regards,
reza


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default find the correct sum

Try this Tom Ogilvy classic for a way using Solver:
http://tinyurl.com/5kx9bw
Link above still works, I just tested
--
Max
Singapore
---
"reza" wrote:
HI EXPERTS,

i hope you and excel can do this.
i have a master data with so many rows.
i.e A B C D
No Name City Values
1 - - 100
2 - - 3081
-
5000 - - 6

now my bos ask me to find values with total sum i.e 258,000 from data above.

can excel do this, or should create program using vb?
can anybody help me?

hope you understand with what i want to achieve.

thanks

regards,
reza


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default find the correct sum

Try this Tom Ogilvy classic for a way using Solver:

As a side note, Solver is limited to 200 changing cells.
I may be wrong, but it appears the op is looking among 5000 numbers.
It may require a mixture of approaches.
= = = = = =
HTH :)
Dana DeLouis

On 5/21/10 3:11 AM, Max wrote:
Try this Tom Ogilvy classic for a way using Solver:
http://tinyurl.com/5kx9bw
Link above still works, I just tested
-- Max Singapore --- "reza" wrote:
HI EXPERTS,

i hope you and excel can do this.
i have a master data with so many rows.
i.e A B C D
No Name City Values
1 - - 100
2 - - 3081
-
5000 - - 6

now my bos ask me to find values with total sum i.e 258,000 from data above.

can excel do this, or should create program using vb?
can anybody help me?

hope you understand with what i want to achieve.

thanks

regards,
reza

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default find the correct sum

It may require a mixture of approaches ..

Such as ... ? Any links to share with us?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default find the correct sum

Hi. No, I'm afraid not. I just wanted to point out that Solver was
limited to 200 changing cells vs the op's input of 5000 numbers.
There's no easy solution, but if one wanted to use Excel's Solver, here
are some general ideas one "may" be able to work with.
It really depends on the data.

Suppose among the 5000 data, one had...
{25, 50, 75, 100, 125, 150, 175, 200, 225, 250...etc}

These would take up 10+ Binary changing cells among the 200 one can use.
One 'could' remove these numbers from the list and write the equation:
=25*x
where 'x' is now an "Integer" constraint (vs binary) with the added
constraint that places limits on the possible values.
(ie x<=10 for an upper limit of 250. Option of 'Assume non-negative for
the lower value)

This would replace multiple changing cells with just 1.

Same concept if one had duplicates. If one had 20 of the number 100,
one could write = 100*x, subject to x<=20

Some other not so great ideas might be to break the 5000 numbers into
groups of 25 numbers (having 200 groups). Total each group.
You now have 200 numbers. Now use the Binary technique that finds a
total that is Minimized, subject to the constraint that the total is =
258,000.

Suppose the closest you get is 258,500.
Now, look at each group that was picked, and see if you can spot a
combination that totals 500 that you can remove from the list.
Again, it's not a easy problem when you have 5,000 numbers to work with.
It can be more of an art than a science at this point.

= = = = = =
Dana DeLouis

On 5/22/10 6:10 PM, Max wrote:
It may require a mixture of approaches ..


Such as ... ? Any links to share with us?



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default find the correct sum

Thanks for responding further, Dana. Useful ideas, those. From your
experience, what would be the other usual business applications of this
technique beyond matching payments/partial payments to invoices/accounts?


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
find the correct sum reza Excel Discussion (Misc queries) 1 May 21st 10 11:52 AM
How to find the correct end date dan dungan Excel Worksheet Functions 3 October 17th 08 07:49 PM
Can you please hel me to find the correct formulas george24 Excel Worksheet Functions 1 January 11th 07 11:38 AM
How to find the correct program to download an .xls attachment sportshistorybuff Excel Discussion (Misc queries) 2 June 30th 06 04:49 PM
Solver does not find correct solution??? experiment626 Excel Discussion (Misc queries) 5 August 18th 05 11:08 PM


All times are GMT +1. The time now is 05:15 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"