Counting specific values

JodiEHBK

New Member
I need a formula to count specific values in a range of data. For example, say I have the values 0, 1, 2 and 3 in a column and want to know how many "1's" are in the column. I have experimented with combinations of IF and COUNT and DCOUNT without success.

It would be helpful if I can count specified text entries as well as numerical values.

Can anyone help?

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

Joe4

Try the COUNTIF function. See Excel's help for details.

Lewiy

Well-known Member
=COUNTIF(A:A,1)
will tell you how many 1's in column A

=COUNTIF(A:A,"text")
will tell you how many cells contain "text" in column A

Hope that helps!

JodiEHBK

New Member
Wow, that problem was quickly solved. Many thanks, jm14 and Lewiy. COUNTIF does the what I want perfectly.

Ahonymus

New Member
I'm using Excel 2003 in French and cannot find the function COUNTIF.
I'm trying to count the cells with nothing in there in ONE column. Everything I've tried says "circular"

If someone could help solving my request... Thanks a lot.

MrExcel MVP
I'm using Excel 2003 in French and cannot find the function COUNTIF.
I'm trying to count the cells with nothing in there in ONE column. Everything I've tried says "circular"

If someone could help solving my request... Thanks a lot.

It's:

NB.SI

One of:

=NB.SI(\$A\$2:\$A\$10;"")

=NB.SI(\$A\$2:\$A\$10;"=")

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.

1,164,086
Messages
5,835,294
Members
430,351
Latest member
ddalton

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.

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

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