Count non blank cells

hsandeep

Well-known Member
Joined
Dec 6, 2008
Messages
1,215
Office Version
  1. 2010
Platform
  1. Windows
  2. Mobile
I get values in a column R (R18:R9999) which are either
  1. values (alphabets, numericals or alphanumericals) or
  2. null "" throgh formula.
How to count no. of cells where values (serial no. 1) appear?
Please someone help.
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
I get values in a column R (R18:R9999) which are either
  1. values (alphabets, numericals or alphanumericals) or
  2. null "" throgh formula.
How to count no. of cells where values (serial no. 1) appear?
Please someone help.
If you're wanting to count the numeric values only...

=COUNT(R18:R9999)
 
Upvote 0
Thanks Firefly2012
=ROWS(R18:R9999) - COUNTBLANK(R18:R9999) WORKED.
Will it also be applicable if any cell value = #N/A?
 
Upvote 0
Thanks Firefly2012
=ROWS(R18:R9999) - COUNTBLANK(R18:R9999) WORKED.
Will it also be applicable if any cell value = #N/A?

Countblank won't count #N/A error values in cells - if you want the errors excluded too then perhaps an array formula like:

=COUNT(IF(1-ISERROR(R18:R9999),IF(R18:R9999<>"",1)))

which must be confirmed with Ctrl+Shift+Enter
 
Upvote 0
It gave me answer as 1. This is WRONG! Is there some mistake in the formula? It should not count null "" generated through formula or #N/A.
 
Upvote 0
Can you post the exact formula you are using please - copy it in from the Formula Bar. Did you confirm it with Ctrl+Shift+Enter (not just enter) and was the formula in the formula surrounded with curly braces {} which denote sucessful array formula entry?
 
Upvote 0
Sir, It WORKS.
BUT, it should not count null "" generated through formula or #N/A. Is it like that?
Plus
a blank left in the column R18:R9999, it should not count. I hope it will not count. Will it?
 
Upvote 0

Forum statistics

Threads
1,216,309
Messages
6,130,001
Members
449,551
Latest member
MJS_53

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