ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   help with sumproduct (https://www.excelbanter.com/excel-programming/352003-help-sumproduct.html)

Gary Keramidas

help with sumproduct
 

trying to get the count of values less than zero when a cell ="GR". i thought
this would work, but it doesn't

=SUMPRODUCT(A3:A183="GR")*(I3:I183<0)

can someone point out what's wrong?
--


Gary




Dave Peterson

help with sumproduct
 
Try adding some more parentheses:

=SUMPRODUCT((A3:A183="GR")*(I3:I183<0))





Gary Keramidas wrote:

trying to get the count of values less than zero when a cell ="GR". i thought
this would work, but it doesn't

=SUMPRODUCT(A3:A183="GR")*(I3:I183<0)

can someone point out what's wrong?
--

Gary


--

Dave Peterson

Jim Thomlinson[_5_]

help with sumproduct
 
You need more brackets, something like this...

=SUMPRODUCT((A3:A183="GR")*(I3:I183<0))

--
HTH...

Jim Thomlinson


"Gary Keramidas" wrote:


trying to get the count of values less than zero when a cell ="GR". i thought
this would work, but it doesn't

=SUMPRODUCT(A3:A183="GR")*(I3:I183<0)

can someone point out what's wrong?
--


Gary





Gary Keramidas

help with sumproduct
 
thanks dave and jim, i guess i was close, but not close enough. but at least i
was on the right track

--


Gary


"Jim Thomlinson" wrote in message
...
You need more brackets, something like this...

=SUMPRODUCT((A3:A183="GR")*(I3:I183<0))

--
HTH...

Jim Thomlinson


"Gary Keramidas" wrote:


trying to get the count of values less than zero when a cell ="GR". i thought
this would work, but it doesn't

=SUMPRODUCT(A3:A183="GR")*(I3:I183<0)

can someone point out what's wrong?
--


Gary








All times are GMT +1. The time now is 12:38 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com