Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add Data in Cell in double quotation

Status
Not open for further replies.

Dina01

Programmer
Mar 26, 2002
204
0
0
CA
Hello,

Can anyone please tell me how to add all the data in a spreadsheet in quotation.

For example if I have number 12345 in a cell I would like to be able to add that number in double quotation. Like this "12345".

I tried the following formula
=Char(34) & A1 & Char(34)
But keep on getting error #NAME?

I don't want to use the custom format, because I would have to use two diffrent format for the decimal number...

I want to use a formula.
Does anyone know how to do this..

Thanks
 
Because the double quote is used as a delimiter, Excel requires two double quotes in a row to be identified as a double quote. In you formula, you need to quote the quote, so a total of four double quotes are required on each side of the number:

A1: 12345
B1: =""""&A1&""""

Hope that helps.
 
Hello Dina01,
try the concatenate function, it will give you what you are looking for
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top