I would like to add values in col J than are less than zero where the ref in Col D is "GEN"
Your assistance in this regard is most appreciated
I would like to add values in col J than are less than zero where the ref in Col D is "GEN"
Your assistance in this regard is most appreciated
Give this formula a try...
=SUMPRODUCT((D2: D13="GEN")*(J2:J13<0)*J2:J13)
Change the ranges as needed, but make sure each range spans the same number of cells.
EDIT NOTE: Remove the space between the colon and D13... without it, the "colon D" gets replaced with a smiley emoticon.
Last edited by Rick Rothstein; 07-12-2012 at 12:55 PM.
Hi
You could also try SUMIFS
=SUMIFS(J2:J13,D2: D13,"GEN",J2:J13,"<0")
Cheers !
Excel Range to BBCode Table
Use Social Networking Tools If You Like the Answers !
Message to Cross Posters
@ Home - Office 2010/2013/2016 on Win 10 (64 bit); @ Work - Office 2016 on Win 10 (64 bit)
Thanks for the help, much appreciated
Bookmarks