Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

excel txt file

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Excel as .txt file

Excel as .txt file

ResolvedVersion 365

Isabel has attended:
Excel Intermediate course

Excel as .txt file

Hi,

This might be a shot in the dark as it not strictly .xlsx-related but I thought I'd give it a go.

For running scripts with our main database, I prepare a two-column spreadsheet and save it as a tab delimited .txt file. If one of the cells contains a text string, this is transformed into a " text string " in the .txt file (with quotation marks) but only if it contains a comma. The text in quotation marks is needed for running scripts successfully, so we would ideally want all cells to be transferred with quotation marks. I have tried (with ="symbol"&cell1&"symbol" and copying over the value rather than the formula into the file) to make non-comma-containing cells adopt the quotation marks in the transfer to .txt but this solution has only led to the quotation marks being doubled or tripled in the .txt file which stops the script from running.

Is there a way the formatting of the cell could be changed to stop this from happening?

Apologies if this is not your area of expertise - if you know anyone who might be able to help with .txt-related things, do let me know and I'm happy to contact them. I appreciate this is a bit outside the Excel realm.

Many thanks for your help in advance,
Isabel

RE: Excel as .txt file

Just wanted to mark this as resolved as I have found a solution for this just now!

Excel tip:

Finding cells that have data restrictions

Click anywhere on the worksheet.
On the Edit menu, click Go To.
Click Special.
Click Data validation.
Click All.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.