+ Reply to Thread
Results 1 to 3 of 3

How to use literal quotes with concatenation

  1. #1
    Registered User
    Join Date
    02-03-2006
    Posts
    2

    How to use literal quotes with concatenation

    I have a cell that I would like to build that looks like this:
    -c:1006 -u:PC\USER -i:"D:\Program Files\SomeApp\My Server\file.txt"

    The only variable field is 1006 which is pulled from column B.

    So this is how it's setup:
    ="-c:"&(B7)&" -u:PC\USER -i:D:\Program Files\SomeApp\My Server\file.txt"

    However, I need the quotes to show up. I have tried '" (single quote double quote) but that gives errors. The only way around it is to put a quote in a place holder cell i2 then use:

    ="-c:"&(B4)&" -u:PC\USER -i:" & $I$2 & "D:\Program Files\SomeApp\My Server\file.txt"& $I$2 &""

    Isn't there a simple way to negate the quote so I can keep the formula within the one cell and not have to reference another one? Thanks!

  2. #2
    pinmaster
    Guest
    Here's a couple of ways:

    1 - use 4 double quotes """" to get a single " double quote
    or
    2 - use CHAR(34) which is the code for a double quote

    HTH
    JG

  3. #3
    Registered User
    Join Date
    02-03-2006
    Posts
    2
    Ah, thank you very much. It appears double quotes give you the single quote though?

    ="-c:"&(B2)&" -u:DOMAIN\USER -i:""D:\Some PAth\client.txt"""
    results:
    -c:ACOMPUTER -u:DOMAIN\USER -i:"D:\Some PAth\client.txt"

    Perfect, Thanks.
    Last edited by schieb; 02-03-2006 at 06:13 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1