logo

How to : Add Quotes with Excel Concatenate function

logo

I use excel to create the HTML code for large tables.

Whenever I need to publish a large table, I first  type it out in excel.
Then I open the next sheet, create my HTML code using the concatenate function.
Its a neat trick that has always worked well.
I just manage the data (in one sheet) and the code (in the other sheet) is managed on its own.

The only trick is to be able the add ” symbol on to the hyperlinks.

To create one ” symbol, you will need four “s in your code.
eg:
=concatenate(“”"”,”A”,”"”") produces the output “A”

So, now you know, even if you didn’t know already…

Related posts:

  1. links for 2010-07-01
  2. Excel Howtos
  3. links for 2010-06-30
  4. How to: Extract links from Rapidshare Linklists
  5. Howto: Change a menu in excel based on user input from another menu

7 Responses to “How to : Add Quotes with Excel Concatenate function”

  1. Joel says:

    Perfect! This is exactly the hint I needed. Thanks.

  2. Gayathri says:

    Thanks, was just the thing I was trawling the web for!

  3. Jean-Paul says:

    Good but even more trick when there is also a mix of text inside.

    I wanted to have this, with content of Cell A2 this MQL formula:

    disconnect bus “Business Unit” “Latches Division” 0000000003 rel Division to “VCS Design Organization” “A2″ -;

    So I had to put the following Excel formula:

    =”disconnect bus “”Business Unit”" “”Latches Division”" 0000000003 rel Division to “”VCS Design Organization”" “&”"”"&A2&”"”"&” -;”

  4. Jim says:

    I would be interested in knowing WHY this works. Intuitively, it doesn’t make sense that four double-quote symbols will render a one double-quote symbol. So, is it special code in Excel’s core? Otherwise, I can’t make logical sense of why it would work…

  5. Dan says:

    @Jim
    Actually not that hard, the actual special excel code is the double “” quote to create the ” in a line of text. It’s similar to how other programing languages deal with special characters, usually an escape character prior to the character you want.

    Now the “”"”, it’s
    “(for start of text) “”(to create the “) “(end of text)

  6. Shahin says:

    Thank you so much for helping me understand how to use the concatenate function in excel. Take care and all the best!

  7. Dave says:

    OK, one more variation: I needed to have quotes around the contents of another cell. In this case, it took *three* sets of quotes in the concatenate function, like this:

    =”blahblah_”"”&K7&”"”_blahblah”

    If K7 contained something like _text_, the output would be:

    blahblah_”text”_blahblah

Leave a Reply

logo
logo
Powered by Wordpress | Designed by Elegant Themes