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.

Unique IDTotal AmountIndividual AmountResult Option 1Result Option 2
123455529.5029.5012345 is a sum of 29.50, 29.50, -4.00
123455529.5029.5012345 is a sum of 29.50, 29.50, -4.00
1234555-73.00
1234555-4.00-4.0012345 is a sum of 29.50, 29.50, -4.00
1234555-450.40
1234555201.33

<tbody>
</tbody>

****** id="cke_pastebin" style="position: absolute; top: 262px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">
12345 is a sum of 29.50, 29.50, -4.00

<tbody>
</tbody>


Any thoughts would be greatly appreciated!
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

Forum statistics

Threads
1,214,897
Messages
6,122,151
Members
449,068
Latest member
shiz11713

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