Import ASCII Files with Nonstandard Extensions in Excel for Mac
Question details
Import plain-text ASCII files with nonstandard extensions into Excel for Mac as delimited or fixed-width data.

- Product
- Microsoft Excel for Mac
- Device & OS
- macOS
- Scenario
- A user needs to open scientific text files with extensions such as .pdb, .seq, .aln, .rsa, or .ddG in a spreadsheet.
- Observed behavior
- Excel's Open or Import dialog may not allow the files to be selected as text because of their extensions.
Confirm that the file contains plain text and identify whether its columns are separated by characters such as tabs or commas, or arranged at fixed positions. The correct import settings depend on that layout.
Import a copy with a .txt or .csv extension
Use a renamed copy when Excel's file picker does not accept the original extension.
In Finder, select the original file and choose File > Duplicate. Keep the original with its existing extension.
Select the copy in Finder, press Return, and change its extension to .txt. If the data is comma-separated, you can use .csv instead. Confirm the extension change if macOS asks.
In Excel, choose File > Open and select the renamed copy. If a text import wizard appears, choose delimited or fixed-width based on the file layout.
Review the worksheet for correctly separated columns and values. If Excel interpreted identifiers or leading zeros incorrectly, use the text import options, where available, to set those columns to Text and import again.

Import the original text file with a VBA macro
Use VBA when you want to import the original file without renaming it and can select it in the file picker.
Work with spreadsheets in WPS Office for Mac
WPS Office is a free, lightweight alternative with a familiar spreadsheet interface and Microsoft Office format compatibility, making it easier to move existing workbooks. It does not change Excel's file-picker behavior.

Frequently Asked Questions
Will changing the extension to .txt alter my scientific data?
Changing a filename extension does not change the file contents. In Finder, use File > Duplicate first, then rename the copy so the original retains its extension.
Should I choose delimited or fixed-width when importing?
Choose delimited if characters such as tabs or commas separate the fields. Choose fixed-width if fields occupy consistent character positions. Select the matching option in Excel's text import wizard when it is available.
Why did Excel remove leading zeros from an imported column?
Excel may have interpreted the values as numbers. Import the file again and, where the text import options allow it, set that column's format to Text before completing the import.
Can I import the original file without renaming it?
A VBA macro can use Workbooks.OpenText to import an accessible file as delimited or fixed-width text. Open Tools > Macro > Visual Basic Editor to create the macro and set the arguments to match the file.




