• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Concatenate if data

I have a piece of code below which adds a field if he answer is x. Is it possible to have it add the field if anything is placed into the cell.
Code below. =CONCATENATE(IF(F62="x",Request!B62&",","")&" "&IF(F63="x",Request!B63&",","")&" "&IF(F64="x",Request!B64&",",""))
 
Hi Lesley ,

Try this :

=SUBSTITUTE(TRIM(CONCATENATE(IF(F62<>"",Request!B62&" ","") & " " & IF(F63<>"",Request!B63&" ","") & " " & IF(F64<>"",Request!B64,"")))," ",",")

Narayan
 
Back
Top