excel导出设置分隔符_使用管道(或其他)定界符而不是逗号导出或保存Excel文件...

excel导出设置分隔符_使用管道(或其他)定界符而不是逗号导出或保存Excel文件...

excel导出设置分隔符

If you’re working with some awful corporate system that should have been retired in the dark ages, you might have had to produce a file from Excel with some weird delimiters other than comma or tab-delimited to import into the system. Here’s the trick on how to do it.

如果您正在使用一些本该在黑暗时代退役的糟糕的公司系统,则可能必须使用非逗号或制表符分隔的奇怪分隔符从Excel中生成文件,才能导入到系统中。 这是操作方法。

Naturally, this isn’t the type of article that most people will need to use, hopefully ever—but if you do need to know how to do it, the solution isn’t really obvious at first.

自然,这不是大多数人希望使用的那种文章,但是如果您确实需要知道如何做,那么解决方案一开始并不是很明显。

将Excel文件导出为管道分隔符 (Exporting Excel Files as Pipe Delimited)

For the purposes of this example, we’ll use this silly little Excel file.

出于本示例的目的,我们将使用这个愚蠢的小型Excel文件。

excel导出设置分隔符_使用管道(或其他)定界符而不是逗号导出或保存Excel文件...

To save the file as Delimited, you’ll need to click the Office button and choose Save As –> Other Formats.

要将文件另存为定界,您需要单击Office按钮,然后选择另存为–>其他格式。

excel导出设置分隔符_使用管道(或其他)定界符而不是逗号导出或保存Excel文件...

Then select CSV (Comma delimited)(*.csv) from the drop-down list, and give it a name.

然后从下拉列表中选择CSV(逗号分隔)(*。csv),并为其命名。

excel导出设置分隔符_使用管道(或其他)定界符而不是逗号导出或保存Excel文件...

Now here’s where the interesting part happens… Excel by default will use a comma as the delimiter, but if you open up Control Panel –> Region and Language, and then click the Additional settings button on the bottom…

现在这是有趣的部分发生的地方……默认情况下,Excel将使用逗号作为分隔符,但是如果您打开“控制面板”->“区域和语言”,然后单击底部的“其他设置”按钮...

excel导出设置分隔符_使用管道(或其他)定界符而不是逗号导出或保存Excel文件...

Now look very closely at the “List separator” item, which normally has a comma in the field, but for the purposes of illustration I’ve switched it to a Pipe character.

现在,请仔细查看“列表分隔符”项,该字段通常在该字段中带有逗号,但是出于说明目的,我将其切换为Pipe字符。

excel导出设置分隔符_使用管道(或其他)定界符而不是逗号导出或保存Excel文件...

Once you hit Apply, and then save your Excel file, you’ll notice that your file now has pipe characters as the delimiter.

单击“应用”,然后保存Excel文件后,您会注意到文件中现在具有竖线字符作为分隔符。

excel导出设置分隔符_使用管道(或其他)定界符而不是逗号导出或保存Excel文件...

You’ll probably want to change the List separator back to a comma just in case some other application needs it.

您可能希望将List分隔符改回逗号,以防其他应用程序需要它。

翻译自: https://www.howtogeek.com/howto/21456/export-or-save-excel-files-with-pipe-or-other-delimiters-instead-of-commas/

excel导出设置分隔符