Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
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
![]() |
|||
|
|||
![]()
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
![]() |
|||
|
|||
![]()
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 |
#4
![]() |
|||
|
|||
![]()
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 |
#5
![]() |
|||
|
|||
![]()
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 |
Display Modes | |
|
|