Please find the attachment for a question mention in the workbook.
Please find the attachment for a question mention in the workbook.
Sorry for off-topic interjection:
Although there is no official rule regarding this behaviour, we request that wherever possible both the question AND the answer be provided in substantive detail here within the thread. An attached workbook is an excellent aid for posing a question and offering a solution, but solely doing that with no in thread explanation makes it difficult for researchers to understand or consider the Q & A of this thread without downloading what may be a pointless doc to them, if they can do that at all. Doing that also hides the content from search engines so others may never benefit from this.
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
How do you arrive at this result?
In D1: 4556.92
someone said to me, I know whatever you said but actually i need the sum of that amount with the formula
suppose these are my outstanding amount and someone pay the 4556.92, then I want to see which invoices amount the concerned paid
Last edited by geniusufo007; 11-03-2018 at 06:24 AM.
What do you mean? Do you seriously believe that the sum of A2 to A55 is 4556.92? It isn't - it's over 35000!!!
Type this into D1:
=SUM(A2:A55)
So, let's start again: what EXACTLY are you trying to do here?
someone ask me
So you have said twice now. Doesn't matter - unless I know how 'someone' has arrived at that number, I can't help you.
Look:
Excel 2016 (Windows) 32 bit
A B C D 1 35,994.20 2 77.74 3 83.06 4 89.40 5 116.14 6 126.69 7 144.77 8 160.62 9 185.58 10 192.65 11 194.58 12 219.10 13 222.52
Sheet: Sheet4
Last edited by AliGW; 11-03-2018 at 06:24 AM.
The amount shown in the sheet shown by you is the total amount but the person paid out the this amount, which is 4556.92, now if i want to check which amount is equal to 4556.92, so is there any formula which sum of the above figure
I give up - you just don't answer my questions.
Good luck with this.
Thanks for your follow up, just leave it
Just play along
=SUM(A2:A55)-SUM(A2:A55)+D1
my guess is that the OP wants to know which items in column A between A2 and A55 would be added together to get 4556.92.
Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
Sam Capricci
Yes, and I asked about just that in post #8 - the question was ignored. My guess is that the OP has been given this to work out - it's probably a homework task. I asked that, too - guess what? No response.
I have some code running to test that. So far, it's found 642 combinations that total 4556.92, with 0.4% of the combinations tested.
Now 809. There's an average of over 5,000,000 solutions to any possible result. I can explain why, but it's a little math-y.
Now 1,186.
1370 ... 1508 ... 2304 ... 2543 at 1% complete ...
Entia non sunt multiplicanda sine necessitate
I wondered if it could be done by a formula, I think it is an interesting problem and have been trying to contemplate how the formula would look.
Now, based on shg's comment I see it is likely a code based solution.
This looks like a subset sum problem (https://en.wikipedia.org/wiki/Subset_sum_problem ). As shg's post notes, it is usually solved by some variation of "try every possible combination and identify which one(s) add up to the resulting sum. The main difficulty is that there are a lot (millions or billions or trillions or more, depending on the specific problem) of possible combinations to try, so that the computational effort needed to find all possible solutions and try them is often huge.
Most "first attempt" excel solutions to the subset sum problem try using Solver: https://www.get-digital-help.com/201...lver-in-excel/
Most rigorous attempts will use VBA to generate all possible combinations -- something like this http://www.tushar-mehta.com/excel/te...e_combinations
Conceptually, the subset sum problem seems simple, but, as an NP-complete type problem, it is surprisingly difficult to program a rigorous solution into a computer.
Originally Posted by shg
19,085 at 4.7% complete
There is no "genius" formula to get what OP wants, it has to be a brute force sequence of sums until a valid combination of cells is found, there is no guarantee that a solution can be found, or that there is a unique solution.
Solver can try to find a solution:
Fill range C with range A times range B
In D2, sum range C, it's 0, as range B is empty
Solver
Objective: D2 value of 4556.92
By changing Variable Cells: $B$2:$B$55
Subject to the constrains: $B$2:$B$55 is binary
Click SOLVER button, sit and wait... it's over 50 variables combinations.
That gives one solution; what about the others?
30,319 at 6.5% complete.
I wonder if Tushar Mehta's "VBA code to find multiple matching combinations" could find the total number of combinations?
http://www.tushar-mehta.com/excel/te...ues/index.html
Myself I'll relax with a small glass of whiskey and Robert Kanigel's book "The man who knew infinity" where even if I don't understand the math described I will hopefully understand most of the words.
Alf
Thanks Mr Shorty for your attempt
Last edited by geniusufo007; 11-04-2018 at 07:31 AM.
This has been marked as solved - can you please confirm that it is?
yes a nice solution
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks