Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Alec Kolundzic
 
Posts: n/a
Default Detecting Blanks and Non Text Characters.

Help

=IF( E61="Cable",Q61,IF( E61
="Terminal",IF(ISBLANK(Q61),"",CONCATENATE($R$1 7," ",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
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

You could change this part

IF(ISBLANK(Q61),"",

to

IF(LEN(TRIM(Q61))=0,"",

--
Regards,

Peo Sjoblom


"Alec Kolundzic" wrote in message
...
Help

=IF( E61="Cable",Q61,IF( E61
="Terminal",IF(ISBLANK(Q61),"",CONCATENATE($R$1 7," ",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


  #3   Report Post  
bj
 
Posts: n/a
Default

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,"",CONCATEN ATE($R$17," ",Q61)),""))

"Alec Kolundzic" wrote:

Help

=IF( E61="Cable",Q61,IF( E61
="Terminal",IF(ISBLANK(Q61),"",CONCATENATE($R$1 7," ",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

  #4   Report Post  
Alec Kolundzic
 
Posts: n/a
Default

Many thanks, this works a treat.

Alec


"Peo Sjoblom" wrote:

You could change this part

IF(ISBLANK(Q61),"",

to

IF(LEN(TRIM(Q61))=0,"",

--
Regards,

Peo Sjoblom


"Alec Kolundzic" wrote in message
...
Help

=IF( E61="Cable",Q61,IF( E61
="Terminal",IF(ISBLANK(Q61),"",CONCATENATE($R$1 7," ",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



  #5   Report Post  
Alec Kolundzic
 
Posts: n/a
Default

Thanks for your help

Alec



"bj" wrote:

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,"",CONCATEN ATE($R$17," ",Q61)),""))

"Alec Kolundzic" wrote:

Help

=IF( E61="Cable",Q61,IF( E61
="Terminal",IF(ISBLANK(Q61),"",CONCATENATE($R$1 7," ",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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:32 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"