Question : Substitute function in Excel - Replace a comma by a comma with double quotes around it

This must be an easy question but i don't seem to find the answer.

I have a string: ARMSTRONG COUNTY MEM HOSPITAL,ARNOLD PALMER CANCER PAVILION,ATKINS,AYLESWORTH
And I want to make it: "ARMSTRONG COUNTY MEM HOSPITAL","ARNOLD PALMER CANCER PAVILION","ATKINS","AYLESWORTH"
That is, I want to replace the commas by double quote-comma-double quote
I am using: substitute(cell,",","","")
But Excel does not like it. Excel does not like replacing with double quotes.
Any idea how I can achieve this easily?
Thank you for a quick answer.

Answer : Substitute function in Excel - Replace a comma by a comma with double quotes around it

Use two double quotes in sequence:

=""""&SUBSTITUTE(A1,",",""",""")&""""


Kevin
Random Solutions  
 
programming4us programming4us