Concatenate with quotations

Jon Melone

Board Regular
Joined
Mar 10, 2008
Messages
109
I need to concatenate two cells and display with quotations. The cells are A1 and B1 and contain only text.

For example, the output in C1 should display quotations around the text in A1, concatenate a semi colon, concatenate B1 with quotes, and finally concatenate another semil colon. The output to the screen in C1 will show as (where A1 = text1 and B1 = text2): "text1";"text2";

The easy part is =A1&";"&B1&";". How do I display quotes within quotes? I'm vaguely familair with escape characters, but haven't found reference to them in Excel Help menu. Do I have learn how to use ASCII?

Jon
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Success!
I was reading in Help about holding the Alt key while typing the decimal code, which did not produce any result. I'll have to read-up on CHAR.

Thank you!
Jon
 
Upvote 0
I need to concatenate two cells and display with quotations. The cells are A1 and B1 and contain only text.

For example, the output in C1 should display quotations around the text in A1, concatenate a semi colon, concatenate B1 with quotes, and finally concatenate another semil colon. The output to the screen in C1 will show as (where A1 = text1 and B1 = text2): "text1";"text2";

The easy part is =A1&";"&B1&";". How do I display quotes within quotes? I'm vaguely familair with escape characters, but haven't found reference to them in Excel Help menu. Do I have learn how to use ASCII?

Jon
Here's another one...

=""""&A1&""""&";"&""""&B1&""""&";"
 
Upvote 0
Hey, that works too! Actually, it's what I tried to do the first time, but couldn't keep track of my quotes. I see my error now. Thanks!

Jon
 
Upvote 0
Hey, that works too! Actually, it's what I tried to do the first time, but couldn't keep track of my quotes. I see my error now. Thanks!

Jon
Yeah, it doesn't make sense, really.

To quote a quote you'd think that this is how you'd do it: " " ".

But, we're dealing with Excel! :laugh:

So it's: " " " "

Thanks for the feedback! :cool:
 
Upvote 0

Forum statistics

Threads
1,224,516
Messages
6,179,231
Members
452,898
Latest member
Capolavoro009

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top