blank (not empty) - treatment in countif statements using ""

cbjohn1

New Member
Joined
Jan 15, 2011
Messages
38
I have a formula that results in a number value or "" in "range"

using a countif formula the following two formulas produce internally inconsistent results. There are 27 total cells that are not empty in the range. 11 result in values and 16 result in ""

=countif(range,"") gives a result of 16
=countif(range,"<>"&"") gives a result of 27

What I'm trying to get is a formula that will count non-blank (""), non-empty cells

Is there anything that will work?
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Sure have, but it doesn't work as it returns count for all cells that are not empty. it does not distinguish between cells with a formula in the (i.e. not empty) and cells that return "".
 
Last edited:
Upvote 0
What I'm trying to get is a formula that will count non-blank (""), non-empty cells

Sure have, but it doesn't work as it returns count for all cells that are not empty. it does not distinguish between cells with a formula in the (i.e. not empty) and cells that return "".

I thought that was what you wanted.... and maybe we're thinking of different things here, but cells returning "" generally have a formula in them to return that blank. So, are you trying to distinguish between formulas returning "" and true blank cells with absolutely no value/formula in them?
 
Last edited:
Upvote 0
Not exactly. I want to count cells that return non-"" and non-empty.

E.g. - I have a formula that is iferror(1*somevalue,"") and copies down 30 cells. The formula results in a number value for 15 cells and, "" for 15 other cells and then are empty after that. I want a dynamic range of cells that return a number value.

Counta(range) doesn't work because it returns 30 i.e. any cell with a formula in it. Countif(range,"<>"&"") returns the same. Countif(range, "") returns both "" and empty cells.

Makes no sense.
 
Upvote 0

Forum statistics

Threads
1,223,910
Messages
6,175,318
Members
452,634
Latest member
cpostell

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