Summing Data Less than zero

howard

Well-known Member
Joined
Jun 26, 2006
Messages
5,701
Office Version
  1. 2019
Platform
  1. Windows
I would like a formula to add up data less than zero in Col J based on criteria "GEN" (Col D)

See attached sample data

Your assistance in this regard is most appreciated

Excel Workbook
CDEFGHIJ
2JM751JMIGEN404373162
3JM751JMIGEN40437423.69
4JM7517GEN4043751.6
5JM7527BGEN404380.02
6JM7527BGEN40438-0.04
7JM7517CGEN40441-422.93
8JM7520BGEN40443-183.48
9JM7520CGEN4044364.65
10JM7520FGEN4044439.28
11JM1542EGEN404481753.09
12JM1542FGEN4044844.19
132815PAY40448-1392
Sheet1
 

Some videos you may like

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

ramananhrm

Board Regular
Joined
Apr 19, 2011
Messages
156
A
B
C
D
JM751JMI
GEN
16-09-2010
3162
JM751JMI
GEN
16-09-2010
423.69
JM7517
GEN
16-09-2010
51.6
JM7527B
GEN
17-09-2010
0.02
JM7527B
GEN
17-09-2010
-0.04
JM7517C
GEN
20-09-2010
-422.93
JM7520B
GEN
22-09-2010
-183.48
JM7520C
GEN
22-09-2010
64.65
JM7520F
GEN
23-09-2010
39.28
JM1542E
GEN
27-09-2010
1753.09
JM1542F
GEN
27-09-2010
44.19
2815
PAY
27-09-2010
-1392

<tbody>
</tbody>

Copy the below mentioned function at the bottom of Column D (D14)


=SUMIFS(D2:D13,D2:D13,"<"&0,B2:B13,"GEN")

 

Watch MrExcel Video

Forum statistics

Threads
1,123,531
Messages
5,602,202
Members
414,513
Latest member
junbuggle

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
Top