Wanted: Delete redundant double quotes of concatenated strings!

ahankhah

New Member
Joined
May 8, 2019
Messages
4
Hi everybody,

When I use concatenate function to combine two sentences (or words) in one cell with two rows, it is not as I want.

the following is a table in which first row shows the source code and the second row shows issued code. (I used directly texts instead of refers to cells just to simplifying the problem.)

=CONCATENATE("S1= ",CHAR(34),"string1",CHAR(34),CHAR(13),CHAR(10),"S2= ",CHAR(34),"string2",CHAR(34))​
S1= "string1"

S2= "string2"​

In Excel, the result looks fine, but when I copy the cel contents to other place (i.e. notepad), these are written this way:

"S1= ""string1""
S2= ""string2"""

How can I delete additional double quotes and get this:

S1= "string1"
S2= "string2"


I appreciate any reply.
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Do you want to delete the extra quotations in NotePad?
 
Upvote 0
Do you want to delete the extra quotations in NotePad?
Of course no,
that was just an example to show the extracted data has extra quotations.

I want make some batch commands and send them in group into Command prompt.
 
Upvote 0
Pasting into Word looks fine. Notepad it does not. That doesn't help, but if you paste to Word, then copy from Word and paste into Notepad, then it does look fine!
 
Upvote 0
Pasting into Word looks fine. Notepad it does not. That doesn't help, but if you paste to Word, then copy from Word and paste into Notepad, then it does look fine!
Thank you very much.

That's working, but I am seeking a method to make batch commands, then run them by sending to command prompt within Excel and without "copy&paste".
 
Upvote 0

Forum statistics

Threads
1,215,529
Messages
6,125,344
Members
449,219
Latest member
Smiqer

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