Forum Discussion
Jim-5
Jun 29, 2019Copper Contributor
Counting in IF stmt
I have a small Investment spreadsheet. Currently I'm tracking six symbols. One column, H5 - H10, tracks the change for each symbol. I'm trying to do two basic things, count the number of winners and ...
SergeiBaklan
Jun 29, 2019Diamond Contributor
COUNTIF() shall work, but better if you provide small sample file
Jim-5
Jun 30, 2019Copper Contributor
I'm trying =COUNTIF(H5,<0,"") for the losers but it's not working. BTW - is there a SUMIF () for the totals ?
- SergeiBaklanJun 30, 2019Diamond Contributor
We may only make a guess where is what in your data. If H5:H10 is the range with numbers in dollars, when number of losers
=COUNTIF(H5:H10,"<0")
and for winners
=COUNTIF(H5:H10,">0")
- Excel_World_ChampionJun 30, 2019Brass Contributor
The COUTIF() function only has 2 parameters: range and criteria
The formula will work is you select the collection of cells containing winners as losers, making that your range (H5:H10) and your criteria to "L"