I have 2 cells that contain data that I need to wrap inside quotes like so:
"cell data 1"[tab]"cell data 2"
When I try and save the file from within excel, only some of the rows are quoted. Can someone help?
I have 2 cells that contain data that I need to wrap inside quotes like so:
"cell data 1"[tab]"cell data 2"
When I try and save the file from within excel, only some of the rows are quoted. Can someone help?
Maybe you can use a text editor (like TextPad or Notepad++) for this kind of job. Find replace is more powerful in these editors.
If your data is tab separated, you can easily copy paste data between Excel and Textpad/Notepad++ without losing any formatting.
Could you detail "some of the rows"?
Do you escape your other string for quotes ? This is usually the issue when exporting data as text. You have some unwanted chars that broke your cells' value.
Still would like to know a little bit more.
cu
I'm also unclear as to what the required format is, but you could use the Char(9) function to get the ascii tab character.
Assuming your two cells are in columns a and b, if you use the formula
=A2&""""&CHAR(9)&""""&B2
and you save as CSV, you will see the result.
cell data 1,cell data 2,"cell data 1"" ""cell data 2"
You can then do a search and replace on "" to change it to " if that's what you need.