Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 30
Default concatenate a double-quote

Trying to create a text string with ". The best I can do is generate
a single-quote and then find/replace the single for a double-quote. I
also tried using chr(34).

I want to create a text sring from two cells in Excel.
="copy "&A2&" "&$A$1

I'd like the result to be== copy "f:\file" "l:\directory" <==
generating the double-quotes before and after the filename and
directory.

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 915
Default concatenate a double-quote

Jack Deuce wrote:
Trying to create a text string with ". The best I can do is generate
a single-quote and then find/replace the single for a double-quote. I
also tried using chr(34).

I want to create a text sring from two cells in Excel.
="copy "&A2&" "&$A$1

I'd like the result to be== copy "f:\file" "l:\directory" <==
generating the double-quotes before and after the filename and
directory.

Thanks.


The unintuitive answer is to use quadruple quotes:

="copy " & """" &A2& """" & " " & """" &$A$1& """"

You could also place " in a cell and refer to that instead of the
quad-quotes.
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 30
Default concatenate a double-quote


thanks.

On Sun, 28 Jun 2009 15:46:20 -0400, smartin
wrote:

Jack Deuce wrote:
Trying to create a text string with ". The best I can do is generate
a single-quote and then find/replace the single for a double-quote. I
also tried using chr(34).

I want to create a text sring from two cells in Excel.
="copy "&A2&" "&$A$1

I'd like the result to be== copy "f:\file" "l:\directory" <==
generating the double-quotes before and after the filename and
directory.

Thanks.


The unintuitive answer is to use quadruple quotes:

="copy " & """" &A2& """" & " " & """" &$A$1& """"

You could also place " in a cell and refer to that instead of the
quad-quotes.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can the SUBSTITUTE function replace a double quote? Florence Excel Worksheet Functions 6 April 3rd 23 02:26 PM
How do I change text qualifier from double quote? viof Excel Discussion (Misc queries) 1 September 7th 07 12:40 PM
Double quote delimiter script Mr BT[_2_] Excel Worksheet Functions 0 June 10th 07 06:18 PM
Exporting single or double quote delimited files Greegan Excel Worksheet Functions 2 April 18th 05 05:25 AM
how do I create comma and double quote delimited file mikeb Excel Discussion (Misc queries) 1 November 29th 04 10:01 PM


All times are GMT +1. The time now is 09:54 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"