跳到主要內容

如何在Excel中將每一行導出/保存為文本文件?

通常,我們可以輕鬆地將工作表另存為單獨的文本文件,但是如何在Excel中將單行導出並另存為文本文件? 以及如何將每一行導出並保存為單獨的文本文件? 本文將介紹Kutools for Excel實用程序,以輕鬆解決它們。

使用Kutools for Excel將一行導出/保存為文本文件

使用Kutools for Excel將每行導出/保存為文本文件

在Excel中輕鬆批量保存每個工作表為單獨的PDF / CSV /文本文件或工作簿

通常,我們可以使用另存為功能將活動工作表另存為單獨的.pdf文件,.txt文件或.csv文件。 但是Kutools for Excel的 拆分工作簿 實用程序可以幫助您輕鬆地將每個工作簿另存為單獨的PDF / CSV /文本文件或Excel中的工作簿。

廣告拆分工作簿文字


Kutools for Excel的 將範圍導出到文件 實用程序可以將範圍保存為文本文件、csv 文件或 html 文件等。因此,我們可以應用此實用程序將整行導出為 Excel 中的文本文件。

Excel的Kutools - 包含 300 多個 Excel 基本工具。 享受全功能 30 天免費試用,無需信用卡! 現在下載!

1.選擇要另存為文本文件的整行,然後單擊 Kutools 加 > 進出口 > 將範圍導出到文件。 請參見下面的屏幕截圖:

2.在打開的將範圍導出到文件對話框中,選中 Unicode文本 選項,然後單擊瀏覽按鈕 旁邊的 保存目錄 框。

3. 在彈出的選擇導出文件的目錄對話框中,選擇要保存文本文件的文件夾,然後單擊 OK 按鈕。

4。 點擊 Ok 當它返回到 將範圍導出到文件 對話框。

筆記:

1.保存成功後,如果要打開文本文件,可以檢查 導出後打開文件 將範圍導出到文件對話框中的選項。

2.如果需要將多行保存為單獨的文本文件,則必須重複多次這些步驟才能將每一行保存為單獨的文本文件。 為了輕鬆將每一行保存為單獨的文本文件,請繼續查看以下方法。

Excel的Kutools - 使用 300 多種基本工具增強 Excel 功能。 享受全功能 30 天免費試用,無需信用卡! 立即行動吧!


實際上,如果您安裝了Kutools for Excel,我們可以按行將每一行拆分為一個新工作表 拆分數據 實用程序,然後應用其 拆分工作簿 實用程序將這些工作表另存為Excel中的單個文本文件。

Excel的Kutools - 包含 300 多個 Excel 基本工具。 享受全功能 30 天免費試用,無需信用卡! 現在下載!

1.選擇將每一行保存為文本文件的範圍,然後單擊 Kutools 加 > 拆分數據.

2.在“將數據拆分為多個工作表”對話框中,選中 固定行 選項和類型 1 在下面的框中,在 規則 下拉菜單,然後單擊 Ok 按鈕。

 

現在,每一行都被拆分為帶有標題行的新工作簿的新工作表。 如果您不需要新表格中的標題行,請取消選中 我的數據有標題 選項。

3.在新工作表中,單擊 Kutools 加 > 工作簿 > 拆分工作簿.

4.在打開的“拆分工作簿”對話框中,選中 保存類型 選項,選擇 Unicode文本(* .txt) 從下面的下拉列表中,然後單擊 分裂 按鈕。

doc將每一行導出為文本01

筆記:

(1)如果您不需要將隱藏的工作表另存為文本文件,請檢查 跳過隱藏的工作表 選項。

(2)如果您不需要將空白工作表另存為文本文件,請檢查 跳過空白工作表 選項。

5.在文件夾中指定要將文本文件保存到的文件夾。 選擇“文件夾” 對話框,然後單擊 選擇“文件夾” 按鈕。

如果有很多工作表,您將另存為文本文件,則將花費一些時間來拆分。

然後,您將看到每一行被拆分並另存為文本文件到指定的文件夾中。

Excel的Kutools - 使用 300 多種基本工具增強 Excel 功能。 享受全功能 30 天免費試用,無需信用卡! 立即行動吧!


 

Excel的Kutools:超過 300 個方便的工具觸手可及! 立即開始 30 天免費試用,沒有任何功能限制。 現在就下載!

最佳辦公生產力工具

🤖 Kutools 人工智慧助手:基於以下內容徹底改變數據分析: 智慧執行   |  生成代碼  |  建立自訂公式  |  分析數據並產生圖表  |  呼叫 Kutools 函數...
熱門特色: 尋找、突出顯示或識別重複項   |  刪除空白行   |  合併列或儲存格而不遺失數據   |   沒有公式的回合 ...
超級查詢: 多條件VLookup    多值VLookup  |   跨多個工作表的 VLookup   |   模糊查詢 ....
高級下拉列表: 快速建立下拉列表   |  依賴下拉列表   |  多選下拉列表 ....
欄目經理: 新增特定數量的列  |  移動列  |  切換隱藏列的可見性狀態  |  比較範圍和列 ...
特色功能: 網格焦點   |  設計圖   |   大方程式酒吧    工作簿和工作表管理器   |  資源庫 (自動文字)   |  日期選擇器   |  合併工作表   |  加密/解密單元格    按清單發送電子郵件   |  超級濾鏡   |   特殊過濾器 (過濾粗體/斜體/刪除線...)...
前 15 個工具集12 文本 工具 (添加文本, 刪除字符,...)   |   50+ 圖表 類型 (甘特圖,...)   |   40+ 實用 公式 (根據生日計算年齡,...)   |   19 插入 工具 (插入二維碼, 從路徑插入圖片,...)   |   12 轉化 工具 (數字到單詞, 貨幣兌換,...)   |   7 合併與拆分 工具 (高級合併行, 分裂細胞,...)   |   ... 和更多

使用 Kutools for Excel 增強您的 Excel 技能,體驗前所未有的效率。 Kutools for Excel 提供了 300 多種進階功能來提高生產力並節省時間。  點擊此處獲取您最需要的功能...

產品描述


Office選項卡為Office帶來了選項卡式界面,使您的工作更加輕鬆

  • 在Word,Excel,PowerPoint中啟用選項卡式編輯和閱讀,發布者,Access,Visio和Project。
  • 在同一窗口的新選項卡中而不是在新窗口中打開並創建多個文檔。
  • 將您的工作效率提高 50%,每天為您減少數百次鼠標點擊!
Comments (11)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Hi

I have a file with roughly 20,000 rows and these rows need to be saved as individual notepad files with a name from another column in the same file. Could you please let me know if this is possible.

Example:-
Name Text
Nm1 test file content - test 1
Nm2 test file content - test 2
Nm3 test file content - test 3

So for the table above in Excel, I would like 3 files created with 1st file saved as 'Nm1.txt' and content 'test file content - test 1'.

Could any of you please help.

Thanks
Divya
This comment was minimized by the moderator on the site
Hi there,

Are the names in the column in a regular way like Nm1, Nm3?
You cannot retrive name from a column, but you can create the names in a regular way. For example, when you click on Kutools Plus > Split Data, you can select Sequence Numbers in the Rules drop-down list (No. 2) under the New worksheets name section. And then add certain text in the Prefix and/ or suffix box.
https://cdn.extendoffice.com/images/stories/doc-excel/export-each-row-as-text/doc-export-each-row-as-text-6.png

For example, I select Sequence Numbers and enter Name- in the Prefix box, I will get the names of the text files like this: Name-1, Name-2, and so on.

Amanda
This comment was minimized by the moderator on the site
I am sadly getting the following error when trying to do this: "Access violation at address 0000000002D1F21B in module 'PaneforKutools64.dll'. Read of address 0000000101010060."
I may have gotten the number of zeros wrong as I cannot copy and paste... but what should I do?
This comment was minimized by the moderator on the site
Hi there,

Could you please advice which steps did you follow and then got wrong?
Please attach screenshots if possible.

Thanks in advance.

Amanda
This comment was minimized by the moderator on the site
Hello, Can I ask using a Kutools plus. When I use 'Workbook->Split Workbook, how to save text file that is type of 'utf-8'?
This comment was minimized by the moderator on the site
Hi tae-woo,
Thanks for your comment. At present Kutools supports to save worksheets as Unicode text files, CSV, Workbooks, PDF. Perhaps, Kutools will support to save worksheets as UTF-8 text files in future.
This comment was minimized by the moderator on the site
각각의 행을 각각의 텍스트 파일로 저장할 수 있는 방법은 무엇인지요?
This comment was minimized by the moderator on the site
this program saves text file with unicode encoding...but i want to save it with utf8....i dont know how...please help me
This comment was minimized by the moderator on the site
Hi,
Kutools for Excel only supports to save as Unicode text. If you prefer to UTF8 text, I am afraid you need to save each row manually one by one, or apply VBA code.
This comment was minimized by the moderator on the site
I really appreciate tou.....this program is very helpfull to me
This comment was minimized by the moderator on the site
Sir, I want seclect perticuler Range like colom A and B , if i salect A and B in One worksheet then autonaticalyy A and B salected in Each worksheet and Now "Export Range " salect for all worksheet and convet as TXT file according there currect Sheet Name
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations