Forum Discussion

Eric_at_work's avatar
Eric_at_work
Copper Contributor
Aug 19, 2021
Solved

Importing Text Files: Tab-deliminated text files vs CSV's

I routinely create text files in non-excel programs that are often manipulated in excel by other users.   I was under the impression that csv was the preferred format for data that may be used by e...
  • SergeiBaklan's avatar
    Aug 19, 2021

    Eric_at_work 

    The only difference is that tab is always tab, for "comma separated" separator could be not only comma but semicolon and in general, any other symbol. Default one depends on regional setting of your Windows, but in general could be changed on any other one. However, with that it could be side effect for other apps / files within your system.

    Another way it to add as first line of csv file

    sep=,

    if comma is used by separator or

    sep=;

    if semicolon, etc.

    For example, if click on such csv file

    and such one

    Excel opens it exactly the same way

     

    Another point is that Excel could do some default transformation if you open csv file by double click. For example, 11-05 could be converted to November 05 of current year. Again, depends on regional settings. In such cases Import is more preferable since you may define columns type during the import. But will it be tab-delimited or comma-delimited - doesn't matter, they are imported by exactly same way.

Resources