Counting Text when the cells have formulas that enter the text

Tennisguuy

Well-known Member
Joined
Oct 17, 2007
Messages
564
Office Version
  1. 2016
Platform
  1. Windows
I am trying to count the number of cells with text. I used this formula countif(B5:30,"*"). However in cells B5:B30 I have formulas that will enter the text based on the condition of the formula. Therefore when I use this formula countif(B5:B30,"*") regardless of how my of the cell actually contain text it returns 26. For example, in cell B5 it shows PA and B6 it shows LA. In this example I would want the formula to show a count of 2 but because the range of cells all have formulas in them it returns 26 regardless of how many of them don't have actual text.

Is there a way to count text when the cells have formulas.
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Please post the formula that you have in those cells that are returning your values.
 
Upvote 0
Here's the formula I have in the cell {=IF(ROWS($V$29:V29)<=Rates!$A$6,INDEX(Rates!$B$8:$B$400,SMALL(IF(Rates!$A$8:$A$400=1,ROW(Rates!$A$8:$A$400)-ROW(Rates!$A$8)+1),ROWS($V$29:V29))),"")}
 
Upvote 0
Try
=countif(B5:B30,"?*")
 
Upvote 0
Thanks Joe and Fluff for your responses really appreciate your help. Fluff adding the question marked perfectly. Thanks again
 
Upvote 0
Glad we could help & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,691
Members
448,978
Latest member
rrauni

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