Detecting Blanks and Non Text Characters.

A

Alec Kolundzic

Help

=IF( E61="Cable",Q61,IF( E61
="Terminal",IF(ISBLANK(Q61),"",CONCATENATE($R$17," ",Q61)),""))

The above function concatenates the contents of R17 and Q61 in R61, this
works but some cells in Q61 contain blank spaces, therefore giving me
unwanted text in R61.

Is there any way I can perform the above function but with valid characters
only, ie ""a" to "z" and 1 to 9

Thanks
Alec
 
B

bj

I think that the problem is that ISBLANK gives false for cells with formulas
resulting in a "", if you dont have one which would result in a " " you cound
change to
=IF( E61="Cable",Q61,IF( E61
="Terminal",IF(countblank(Q61)=1,"",CONCATENATE($R$17," ",Q61)),""))
if there is a chance of a " " then
=IF( E61="Cable",Q61,IF( E61
="Terminal",IF(countblank(trim(Q61))=1,"",CONCATENATE($R$17," ",Q61)),""))
 
A

Alec Kolundzic

Thanks for your help

Alec



bj said:
I think that the problem is that ISBLANK gives false for cells with formulas
resulting in a "", if you dont have one which would result in a " " you cound
change to
=IF( E61="Cable",Q61,IF( E61
="Terminal",IF(countblank(Q61)=1,"",CONCATENATE($R$17," ",Q61)),""))
if there is a chance of a " " then
=IF( E61="Cable",Q61,IF( E61
="Terminal",IF(countblank(trim(Q61))=1,"",CONCATENATE($R$17," ",Q61)),""))
 
Top