Array or other method to find individual amounts which add up to a total amount

alekos7

New Member
Joined
Feb 16, 2017
Messages
5
Hello,

I have a large population (30k+) of amounts which contribute to the total amount in another table. I was able to pull the two data-sets together, so I can see in one table the whole amount and all of the individual amounts. The issue is that for a given unique identifier (e.g., 12345), not all individual amounts add up to that. However, I am trying to determine which individual amounts add up to that whole amount. In some cases it's pretty straight forward where one of the amounts equals the total amount and I can distinguish those with ease, same goes for the instances where all of the amounts add up to the total amount. I'm having trouble coming up with a solution/formula to identify the individual amounts which aggregate to the total amount based on the unique ID.

For example, for unique ID 12345 I have a total amount of 55 and 7 individual amounts corresponding to that unique ID, but only 3 of them actually make up the 55 total amount (29.50, 29,50 and -4). I need to identify those 3 and call them our in a separate columns in some way. The whole amount will always be the same for a given unique ID.

[TABLE="width: 500"]
<tbody>[TR]
[TD]Unique ID[/TD]
[TD]Total Amount[/TD]
[TD]Individual Amount[/TD]
[TD]Result Option 1[/TD]
[TD]Result Option 2[/TD]
[/TR]
[TR]
[TD]12345[/TD]
[TD]55[/TD]
[TD]29.50[/TD]
[TD]29.50[/TD]
[TD]12345 is a sum of 29.50, 29.50, -4.00[/TD]
[/TR]
[TR]
[TD]12345[/TD]
[TD]55[/TD]
[TD]29.50[/TD]
[TD]29.50[/TD]
[TD]12345 is a sum of 29.50, 29.50, -4.00[/TD]
[/TR]
[TR]
[TD]12345[/TD]
[TD]55[/TD]
[TD]-73.00[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]12345[/TD]
[TD]55[/TD]
[TD]-4.00[/TD]
[TD]-4.00[/TD]
[TD]12345 is a sum of 29.50, 29.50, -4.00[/TD]
[/TR]
[TR]
[TD]12345[/TD]
[TD]55[/TD]
[TD]-450.40[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]12345[/TD]
[TD]55[/TD]
[TD]201.33[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

****** id="cke_pastebin" style="position: absolute; top: 262px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">[TABLE="width: 500"]
<tbody>[TR]
[TD]12345 is a sum of 29.50, 29.50, -4.00[/TD]
[/TR]
</tbody>[/TABLE]


Any thoughts would be greatly appreciated!
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.

Forum statistics

Threads
1,224,820
Messages
6,181,155
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top