Web Applications Stack Exchange is a question and answer site for power users of web applications. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a spreadsheet of product id codes that I'd like to turn into links, and from everything I've read, the concat or concatenate functions in Google Docs should work for that, but so far everything I try results in an error.

What I want to get:

Brand   Product Code        URL 
AP  X527W       http://example.com/search.php?Code=X527W    
AP  X522M       http://example.com/search.php?Code=X527W
AP  Y500M       http://example.com/search.php?Code=X527W        

What actually happens, when I use the formula =concat('http://example.com/search.php?Code=', B2)

or =concatenate('http://example.com/search.php?Code=', B2)

or ='http://example.com/search.php?Code=' & B2



So how do I concatenate strings in Google Docs?

share|improve this question
up vote 21 down vote accepted

Always enclose string literals in double quotation marks.

= "http://example.com/search.php?Code=" & B2
share|improve this answer

This works OK for me:

=concatenate("http://example.com/search.php?Code="; B2)
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.