Issue in sum of positive amount & Negative Amount

amkumar

New Member
Joined
Apr 5, 2016
Messages
45
Hi,

I have 4 values of amounts , 2 values are positive and remain two are negative. value of positive and negative amounts are same (below table). when i have sum all of these 4 value then the result should be 0 but there is some other value is coming out.

Please help me to coming out from this issue.

[TABLE="class: grid, width: 100"]
<tbody>[TR]
[TD]Value 1 [/TD]
[TD]336.47[/TD]
[/TR]
[TR]
[TD]Value 2[/TD]
[TD]5.72[/TD]
[/TR]
[TR]
[TD]Value 3[/TD]
[TD]-336.47[/TD]
[/TR]
[TR]
[TD]value 4 [/TD]
[TD]-5.72
[/TD]
[/TR]
[TR]
[TD]Result[/TD]
[TD]2.75335310107039E- 14[/TD]
[/TR]
</tbody>[/TABLE]


Thanks in advance
Amit Kumar
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
G'day Amit,

You have a very strange matter. If you increase the number of displayed decimals for your data, you will find that the Result has some numbers magically appear from about 14 decimal places in, without any corresponding decimals in the other four numbers.

If you change your cell format to Number and set the decimals to 2, the correct result is displayed

Edit to add - which is ok if you don't use that result for any other calculation - if you do then RasGhul's option is by far the better option.

Cheers

shane
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,165
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