Countif

chemexhants

New Member
Joined
Jul 12, 2011
Messages
16
I am attempting to use the COUNTIF function to count the number of cells in a column containing '0' (zero) but the command also counts cells containing a number including a zero, eg. 82.90.

Is there an easy way to get around this or should I be using a different function?

I am using Excel 2007 and XP.

Stephen
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
To count zeroes:
=COUNTIF(range,0)
 
Upvote 0
Welcome to the board.

Could you publish the formula as you have it currently?

I've not seen this behaviour before with that particular formula. I'm using 2003, but I can't see why they would've changed the formula this way for later versions.
 
Upvote 0
Thanks for the very prompt replies. I'm using

=COUNTIF(C8:C252,"=0")

But have also tried

=COUNTIF(C8:C252,0)
=COUNTIF(C8:C252,"=<1")
 
Upvote 0
COUNTIF will not count 82.90 with that formula, so there must be something else going on.
 
Upvote 0
The original data has been extracted from Sage Line50 accounts into an Excel workbook. The worksheet I am trying to calculate takes the information via a Hyperlink. Could this be causing the issue?
 
Upvote 0
What exactly do you mean by "takes the information via a Hyperlink"?
 
Upvote 0
Rory

Excuse the terminology, I am very new to Excel!

The command used is =HYPERLINK('Worksheet'!Cell) to link the front worksheet to that containing the Sage data.
 
Upvote 0
Are you saying that C8:C252 have the hyperlink formulas in them?
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,726
Members
452,939
Latest member
WCrawford

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
Back
Top