sum negative and positive numbers

majidsiddique

Board Regular
Joined
Oct 22, 2018
Messages
164
hi all,
i have a problem in SUM:
below mention showing last value of cell H1= C1 - G1
i want to add positive number and negative numbers separately from range H1 to h19. can anybody tell me this.
- number total = (.68)
+ number total = .14

this is small data:

thanks

[TABLE="width: 533"]
<colgroup><col><col><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD]MD-ONYX30026[/TD]
[TD="align: right"]5.00[/TD]
[TD="align: right"]196,293.75[/TD]
[TD][/TD]
[TD]MD-ONYX30026[/TD]
[TD]5[/TD]
[TD]196,293.76[/TD]
[TD="align: right"]-0.01[/TD]
[/TR]
[TR]
[TD]MD-ONYX30026[/TD]
[TD="align: right"]10.00[/TD]
[TD="align: right"]392,587.54[/TD]
[TD][/TD]
[TD]MD-ONYX30026[/TD]
[TD]10[/TD]
[TD]392,587.52[/TD]
[TD="align: right"]0.02[/TD]
[/TR]
[TR]
[TD]MD-ONYX30026[/TD]
[TD="align: right"]2.00[/TD]
[TD="align: right"]78,517.53[/TD]
[TD][/TD]
[TD]MD-ONYX30026[/TD]
[TD]2[/TD]
[TD]78,517.50[/TD]
[TD="align: right"]0.03[/TD]
[/TR]
[TR]
[TD]MD-ONYX30026[/TD]
[TD="align: right"]73.00[/TD]
[TD="align: right"]2,865,888.75[/TD]
[TD][/TD]
[TD]MD-ONYX30026[/TD]
[TD]73[/TD]
[TD]2,865,888.87[/TD]
[TD="align: right"]-0.12[/TD]
[/TR]
[TR]
[TD]MD-ONYX30030[/TD]
[TD="align: right"]11.00[/TD]
[TD="align: right"]431,846.30[/TD]
[TD][/TD]
[TD]MD-ONYX30030[/TD]
[TD]11[/TD]
[TD]431,846.27[/TD]
[TD="align: right"]0.03[/TD]
[/TR]
[TR]
[TD]MD-ONYX30030[/TD]
[TD="align: right"]1.00[/TD]
[TD="align: right"]39,258.74[/TD]
[TD][/TD]
[TD]MD-ONYX30030[/TD]
[TD]1[/TD]
[TD]39,258.75[/TD]
[TD="align: right"]-0.01[/TD]
[/TR]
[TR]
[TD]MD-ONYX30030[/TD]
[TD="align: right"]2.00[/TD]
[TD="align: right"]78,517.40[/TD]
[TD][/TD]
[TD]MD-ONYX30030[/TD]
[TD]2[/TD]
[TD]78,517.50[/TD]
[TD="align: right"]-0.10[/TD]
[/TR]
[TR]
[TD]MD-ONYX30030[/TD]
[TD="align: right"]70.00[/TD]
[TD="align: right"]2,748,112.50[/TD]
[TD][/TD]
[TD]MD-ONYX30030[/TD]
[TD]70[/TD]
[TD]2,748,112.61[/TD]
[TD="align: right"]-0.11[/TD]
[/TR]
[TR]
[TD]MD-ONYX30034[/TD]
[TD="align: right"]10.00[/TD]
[TD="align: right"]392,587.50[/TD]
[TD][/TD]
[TD]MD-ONYX30034[/TD]
[TD]10[/TD]
[TD]392,587.52[/TD]
[TD="align: right"]-0.02[/TD]
[/TR]
[TR]
[TD]MD-ONYX30034[/TD]
[TD="align: right"]7.00[/TD]
[TD="align: right"]274,811.25[/TD]
[TD][/TD]
[TD]MD-ONYX30034[/TD]
[TD]7[/TD]
[TD]274,811.26[/TD]
[TD="align: right"]-0.01[/TD]
[/TR]
[TR]
[TD]MD-ONYX30034[/TD]
[TD="align: right"]1.00[/TD]
[TD="align: right"]39,258.80[/TD]
[TD][/TD]
[TD]MD-ONYX30034[/TD]
[TD]1[/TD]
[TD]39,258.75[/TD]
[TD="align: right"]0.05[/TD]
[/TR]
[TR]
[TD]MD-ONYX30034[/TD]
[TD="align: right"]72.00[/TD]
[TD="align: right"]2,826,630.00[/TD]
[TD][/TD]
[TD]MD-ONYX30034[/TD]
[TD]72[/TD]
[TD]2,826,630.12[/TD]
[TD="align: right"]-0.12[/TD]
[/TR]
[TR]
[TD]MD-ONYX30038[/TD]
[TD="align: right"]21.00[/TD]
[TD="align: right"]824,433.75[/TD]
[TD][/TD]
[TD]MD-ONYX30038[/TD]
[TD]21[/TD]
[TD]824,433.78[/TD]
[TD="align: right"]-0.03[/TD]
[/TR]
[TR]
[TD]MD-ONYX30038[/TD]
[TD="align: right"]1.00[/TD]
[TD="align: right"]39,258.75[/TD]
[TD][/TD]
[TD]MD-ONYX30038[/TD]
[TD]1[/TD]
[TD]39,258.75[/TD]
[TD="align: right"]0.00[/TD]
[/TR]
[TR]
[TD]MD-ONYX30038[/TD]
[TD="align: right"]2.00[/TD]
[TD="align: right"]78,517.50[/TD]
[TD][/TD]
[TD]MD-ONYX30038[/TD]
[TD]2[/TD]
[TD]78,517.50[/TD]
[TD="align: right"]0.00[/TD]
[/TR]
[TR]
[TD]MD-ONYX30038[/TD]
[TD="align: right"]71.00[/TD]
[TD="align: right"]2,787,371.25[/TD]
[TD][/TD]
[TD]MD-ONYX30038[/TD]
[TD]71[/TD]
[TD]2,787,371.37[/TD]
[TD="align: right"]-0.12[/TD]
[/TR]
[TR]
[TD]MD-ONYX35008[/TD]
[TD="align: right"]10.00[/TD]
[TD="align: right"]375,133.40[/TD]
[TD][/TD]
[TD]MD-ONYX35008[/TD]
[TD]10[/TD]
[TD]375,133.39[/TD]
[TD="align: right"]0.01[/TD]
[/TR]
[TR]
[TD]MD-ONYX35012[/TD]
[TD="align: right"]10.00[/TD]
[TD="align: right"]392,587.50[/TD]
[TD][/TD]
[TD]MD-ONYX35012[/TD]
[TD]10[/TD]
[TD]392,587.52[/TD]
[TD="align: right"]-0.02[/TD]
[/TR]
[TR]
[TD]MD-ONYX35015[/TD]
[TD="align: right"]5.00[/TD]
[TD="align: right"]196,293.75[/TD]
[TD][/TD]
[TD]MD-ONYX35015[/TD]
[TD]5[/TD]
[TD]196,293.76[/TD]
[TD="align: right"]-0.01[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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