ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   creating a formula (https://www.excelbanter.com/excel-discussion-misc-queries/64302-creating-formula.html)

wwoody

creating a formula
 

I have a col that i have plus and minus numbers in them and
i want a count of all the records in the col. but i want to exclude the
0 records. Currently i use =count(d3:d70)
and have tried countif((d3:d71)((<0)) with no luck.
any suggestions?


--
wwoody
------------------------------------------------------------------------
wwoody's Profile: http://www.excelforum.com/member.php...o&userid=17362
View this thread: http://www.excelforum.com/showthread...hreadid=499964


Elkar

creating a formula
 
Try this:

=COUNTIF(D3:D70,"<0")

HTH,
Elkar

"wwoody" wrote:


I have a col that i have plus and minus numbers in them and
i want a count of all the records in the col. but i want to exclude the
0 records. Currently i use =count(d3:d70)
and have tried countif((d3:d71)((<0)) with no luck.
any suggestions?


--
wwoody
------------------------------------------------------------------------
wwoody's Profile: http://www.excelforum.com/member.php...o&userid=17362
View this thread: http://www.excelforum.com/showthread...hreadid=499964



pinmaster

creating a formula
 
Try this array formula:
=SUM(IF(A1:A100<0,1))
entered using SHIFT+CTRL+ENTER

HTH
JG

"wwoody" wrote:


I have a col that i have plus and minus numbers in them and
i want a count of all the records in the col. but i want to exclude the
0 records. Currently i use =count(d3:d70)
and have tried countif((d3:d71)((<0)) with no luck.
any suggestions?


--
wwoody
------------------------------------------------------------------------
wwoody's Profile: http://www.excelforum.com/member.php...o&userid=17362
View this thread: http://www.excelforum.com/showthread...hreadid=499964



wwoody

creating a formula
 

Thanks guys i'll try each one


--
wwoody
------------------------------------------------------------------------
wwoody's Profile: http://www.excelforum.com/member.php...o&userid=17362
View this thread: http://www.excelforum.com/showthread...hreadid=499964



All times are GMT +1. The time now is 12:58 AM.

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