count visible cells only

already

Board Regular
Joined
Nov 11, 2008
Messages
179
Hi

I have a range that returns (lookup) data (text).
I want to count only the cells that returns visible text in this range and not the cells with formulas. (the range is not filtered !)

How can I do this?

Thanks in advance

Kind regards

Al
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
I assume that means you want to avoid counting cells that have null strings ("") returned by their formulas?

Are the formulas that return other than "", returning numbers, text or possibly either?

What is the range?
 
Upvote 0
Try one of...
Rich (BB code):
=COUNT(Range)+COUNTIF(Range,"?*")
 
=SUMPRODUCT(1-(Range=""))

The first formula can be reduced to...
Rich (BB code):
=COUNTIF(Range,"?*")
if the look up formula is not expected to return any number.
 
Upvote 0
Thanks both of you.

the formula =COUNTIF(Range,"?*") did the job

Have a nice WE

Al
 
Upvote 0

Forum statistics

Threads
1,214,839
Messages
6,121,892
Members
449,058
Latest member
Guy Boot

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