=Countif(A2:A500,"*") not giving accurate count

Noir

Active Member
Joined
Mar 24, 2002
Messages
362
This formula is simple enough yet, i have never been able to figure out why it "sometimes" gives an incorrect reading (eg:lines A2:A49 filled with data but, formula returns count of 46).

Any ideas why this is?

Thx,
Noir
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
You may need to Trim() your data, perhaps uCase() it, etc.

I don't exactly know what you are searching for, since the board's page code generator may have mangled your post.
 
Upvote 0
On 2002-08-21 08:13, Noir wrote:
This formula is simple enough yet, i have never been able to figure out why it "sometimes" gives an incorrect reading (eg:lines A2:A49 filled with data but, formula returns count of 46).

Any ideas why this is?

Thx,
Noir

=COUNTIF(Reference,"*")

does not count numbers in Reference when their underlying format is number.

What kind of data do you have in A2:A49?

And, did you try COUNTA or COUNT?
 
Upvote 0
Yes, the board did mangle the post but, i am looking for any within A2:A500 or "*". Just can't figure out why it gives wrong counts.
 
Upvote 0
No, i did not try COUNTA or COUNT but, i will. I have alpha-numeric serial numbers listed in A2:A500.

Noir
 
Upvote 0

Forum statistics

Threads
1,225,727
Messages
6,186,683
Members
453,368
Latest member
xxtanka

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