LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Finding the elements of the sum

Hello!
Can you please help me in solving following problem:

Given is the amount (for example 56,67)
and massive: (for example 45,6; -3,2; 11,07; 58)

Exercise is to show the components of the sum, which
perform given amount.

In our example the answer is

1. - 45,6
3. - 11,07

Can You give me an algorithm (and VBA code) to solve this
problem in
general - Given is N numbers (negative and positive) and
searched amount (negative or positive)?

If You have questions about problem, please ask from me:


Regards,
Jüri.



 
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
Finding all elements in a database Lady Success Excel Discussion (Misc queries) 1 May 7th 09 06:01 AM
question about SUM - how to sum each for elements [email protected] Excel Worksheet Functions 5 February 5th 09 09:57 AM
XML elements in Excel likethesun Excel Discussion (Misc queries) 0 August 17th 07 02:09 AM
Protection elements Eva Excel Discussion (Misc queries) 2 February 16th 07 09:58 AM
Finding duplicated elements in a list M.A.A.C Excel Discussion (Misc queries) 2 November 23rd 06 12:13 PM


All times are GMT +1. The time now is 04:25 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"