Inserting " in a formula

F

FARAZ QURESHI

How can I insert inverted commas in a formula. For example:
="The date today is "&TEXT(TODAY(),"dd-mmm-yyyy")
reflects:
The date today is 13-Aug-2008
but how can I achieve a result like:
The date today is "13-Aug-2008"
 
K

Kevin B

To concatenate a quotation mark to a text string use 4 quotation marks as
illustrated below:

=""""&TEXT(TODAY(),"dd-mmm-yyyy")&""""
 
P

Pete_UK

I prefer to use CHAR(34), like so:

="The date today is "&CHAR(34)&TEXT(TODAY(),"dd-mmm-yyyy")&CHAR(34)

Or you could do it this way:

="The date today is """&TEXT(TODAY(),"dd-mmm-yyyy")&""""

Hope this helps.

Pete
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top