Count non blank cells

hsandeep

Well-known Member
Joined
Dec 6, 2008
Messages
1,224
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.
 
T.Valko,
Can you explain ?* in your formula. please i will also learn a little........
 
Upvote 0

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
T.Valko,
Can you explain ?* in your formula. please i will also learn a little........
Consider this sample data...

Book1
A
21
3x
4_
5_
6#N/A
Sheet1

Cell A4 contains a formula blank "" and cell A5 is EMPTY.

This formula returns the correct count of 2:

=COUNTIF(A2:A6,"?*")+COUNT(A2:A6)

The ?* are wildcards. This means count cells that start with any TEXT character followed by any other TEXT character(s) or no TEXT character(s) at all.
 
Upvote 0
Sir,
nice to know about ?*. But will it take care of values appearing like M429 in the column?
Here it starts with any TEXT character (M) followed by any other TEXT character(s) or no TEXT character(s) at all. 429 is not text character?
 
Upvote 0

Forum statistics

Threads
1,217,366
Messages
6,136,128
Members
449,993
Latest member
Sphere2215

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