counting cells rather than their content

Stclements

Board Regular
Joined
Aug 6, 2008
Messages
236
I have a column of cells each numbered in numerical order, 1,2,3,4,etc
Is there a function in excel that allows me to count how many cells in that column have a value rather than calculating the value of the cells.

I:E 1,2,3,4,5,6,7,8 would equal 36, what I want it to return is 8 because that is the number of cells with a value.
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Hi Stclements

=COUNTIF(A1:A8,">0") , or =COUNTIF(A1:A8,"<>0") if the range contains negative numbers and you want to count those too.

Cheers

pvr928
 
Upvote 0

Forum statistics

Threads
1,207,111
Messages
6,076,620
Members
446,216
Latest member
BEEALTAIR

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