COUNTA OR COUNTAIF?????

Silo

Active Member
Joined
Mar 8, 2004
Messages
447
Hello everyone,

I’m very impressed with everyone’s expertise on this Forum and I’m confident that someone here can help me.

I have a spread sheet that is linked to others, the links works fine. My problem is that I have to do manual editing to complete the update I require.

In this spread sheet the values I’m retrieving are alphanumeric. They are actually the letter “X” which serves as a cell check signifying the acceptance for the associated cell.

My problem is that when the sheet links it also brings in the Zeros that represent a null entry for some cells. I need to sum all the “X’s” with a “Counta Formula” but the Counta Formula also counts the Zeros.

Example...

=COUNTA(C11:C27) :oops:

I need to add all cells that have the “X’s” that are brought in thru the link. How do I make Excel ignore the Zero’s??? (Null Values)

Please Help
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

acw

MrExcel MVP
Joined
Feb 13, 2004
Messages
4,814
HI

=countif(yourrange,"x") will count the Xs


Tony
 

Todd Bardoni

Well-known Member
Joined
Aug 29, 2002
Messages
3,042
How about something like:-

=COUNTIF(A1:A10,"*X*")

And what do you mean by you want to SUM the Xs? Do you mean you want to COUNT the Xs?
 

Silo

Active Member
Joined
Mar 8, 2004
Messages
447

ADVERTISEMENT

Got a #NAME error :oops: :(
 

Silo

Active Member
Joined
Mar 8, 2004
Messages
447

ADVERTISEMENT

=COUNTAIF(C11:C27, "*X*") This is what I tried
 

Silo

Active Member
Joined
Mar 8, 2004
Messages
447
tbardoni, Thanks, I found the error, thank you again :LOL:
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,152,088
Messages
5,768,034
Members
425,451
Latest member
JohnBrooksBiddle

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
Top