Wordの表の文字を取り出す
- 選ぶ
- 確かめる
Wordの文書に表が入っていて、その中の文字を取り出したい。Wordから文字を取り出す は、表の中の文字も取り出します。セルは、タブで区切って出力されます。
手順
- 「.docx のWordファイルを1つ選びます」で、ファイルを選びます。
- 「取り出した文字」で、表の部分を確認します。
- 「文字をコピー」でコピーします。
- Excelのセルに貼り付けると、表に戻せます。
表がどう出るか
たとえば、Wordの表:
名前 | 年齢
山田 | 30
佐藤 | 25
取り出すと、各セルの文字が、タブで区切られ、1行が1つの行として出ます。
Excelに貼り付けるコツ
- 取り出した文字のうち、表の部分だけを選んでコピーする。
- Excelの、貼り付けたいセルを選ぶ。
- 貼り付ける。タブ区切りの文字は、自動で列に分かれる。
分かれないとき
- Excelの「区切り位置」機能を使い、区切り文字を「タブ」にする。
- テキストエディタで、一度確認する。
表以外の文字との区別
本文と表が混ざっていると、どこからが表か分かりにくくなります。表の前後の行を目印にして、必要な部分を選びます。
取り出せない表
- 画像として貼り付けられた表は、文字として取り出せない。
- 図形のテキストボックスの中の文字は、含まれない場合がある。
向いている場面
- Wordの表を、Excelに移したい
- 表の文字だけを、別の資料に使いたい
- 表の内容を、確認したい
例
Wordの見積書にある、品目と金額の表を、Excelで集計したかった。文字を取り出し、表の部分をコピーして、Excelに貼り付けた。きれいに列が分かれた。
つまずきやすい点
- セルの中に改行がある:1つのセルが、複数行に分かれて出る場合がある。
- 結合セルがある:列がずれることがある。
よくある質問
罫線や背景色は、取り出せますか?
いいえ。文字だけです。
まとめ
表の文字は、タブ区切りで出る。Excelに貼り付ければ、表に戻せます。
Wordから文字を取り出すを使う(無料)あわせて使えるツール
- PDFから文字を抜き出す:PDFの文字を取り出して、コピーまたは保存できます。
- PowerPointから文字を取り出す:PowerPointの文字を、スライドごとに取り出します。
- 文字数カウント(エントリーシート・レポート用):文章の文字数・行数・原稿用紙の枚数などを数えます。
同じツールの、ほかの解説
Extracting Text from Word Tables
- Choose
- Check
A Word document contains a table and you want to extract the text inside it. Extract Text from a Word File also extracts text inside tables. Cells are output separated by tabs.
Steps
- With "Choose one .docx Word file", choose the file.
- Check the table part in "Extracted text".
- Copy with "Copy text".
- Pasting into Excel cells restores the table.
How a table comes out
For example, a Word table:
name | age
Yamada | 30
Sato | 25
When extracted, each cell's text is separated by tabs and each row comes out as one line.
Tips for pasting into Excel
- Select and copy only the table part of the extracted text.
- Choose the cell in Excel where you want to paste.
- Paste. Tab-separated text splits into columns automatically.
When it doesn't split
- Use Excel's "Text to Columns" and set the delimiter to "Tab".
- Check once in a text editor.
Telling apart from non-table text
When body text and tables are mixed, it's hard to tell where the table begins. Use the lines before and after the table as landmarks and select the part you need.
Tables that can't be extracted
- Tables pasted as images can't be extracted as text.
- Text inside shape text boxes may not be included.
Good for
- Moving a Word table to Excel
- Using only the table's text in other material
- Checking a table's contents
Example
Wanted to total the table of items and amounts in a Word quotation in Excel. Extracted the text, copied the table part and pasted it into Excel. The columns split cleanly.
Common stumbling blocks
- Line breaks inside a cell: one cell may come out as several lines.
- Merged cells: columns may shift.
Frequently asked questions
Can borders and background colours be extracted?
No. Text only.
Summary
Table text comes out tab-separated. Pasting into Excel restores the table.
Use "Extract Text from a Word File" (free)Tools that go well with this
- Extract Text from PDF: Pull the text out of a PDF to copy or save.
- Extract Text from PowerPoint: Extract the text of each PowerPoint slide.
- Character Counter (for Applications and Reports): Count characters, lines and manuscript sheets of your text.