Matching uneven negative and positive values in column that sums up to zero

Charlicito

New Member
Joined
Sep 10, 2014
Messages
2
Hi !

This is my first question here in this Forum, so if there is already an answer, please let me know.

I have a problem i cant solve. I need to match uneven positive and negative numbers in a column that sums up to 0. The most tricky part here is that if a certain negative number is very big it need more than one positive value to reach zero, and the sum wont be exact. See below for example, and below that the result i want to acquire:

FirmValue
1-48
2-1160
3853
4-298
5-1521
6721
7-9517
8-1269
9-944
10-3946
11-10153
1217635
135485
144664
15-501

<colgroup><col><col></colgroup><tbody>
</tbody>

I need the "best fit" of matching for example (if true): Firm 11 matched with Firm 13&14, Firm 5 with 3&6... and so forth until all firms are taken into account.

How do I do this?
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Forum statistics

Threads
1,214,943
Messages
6,122,376
Members
449,080
Latest member
Armadillos

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