複数のシートがあるExcelを変換する
- 選ぶ
- 切り替える
Excelのファイルに、複数のシートがある。ExcelをCSV・JSONに変換する では、変換したいシートを選んで、1シートずつ変換します。
手順
- 「.xlsx のExcelファイルを1つ選びます」で、ファイルを選びます。
- 「シート」の一覧から、変換したいシートを選びます。
- 「形式」を選びます。
- 「変換後」を確認し、保存します。
- 別のシートも変換したいときは、「シート」を切り替えます。
- シートごとに、結果を保存します。
なぜシートごとか
CSVやTSVは、1つの表しか表せません。複数のシートがあるExcelは、シートごとに分けるのが、自然です。
作業の流れ
- 1つ目のシートを選んで、結果をファイルで保存する。
- 2つ目のシートに切り替えて、保存する。
- 必要な数だけ、繰り返す。
保存したファイルに、シート名を含めておくと、あとで区別しやすくなります。
複数のシートを1つにまとめたい場合
- 各シートをCSVに変換して、保存する。
- テキストエディタや、CSVを結合するツールで、まとめる。
- シートの項目名(見出し)が、同じ形式のときに限る。
非表示のシート
Excelで非表示になっているシートも、一覧に出る場合があります。必要なシートか、確認してから選びます。
向いている場面
- 月ごとのシートがある、売上表の変換
- 部署ごとのシートがある、名簿の変換
- 複数のデータを、別々に取り出す
例
月ごとに12枚のシートがある売上表。1月から12月まで、順に切り替えて、12個のCSVを作った。
つまずきやすい点
- シートが多くて、選ぶのが大変:必要なシートだけを、変換する。
- シートによって、列の構成が違う:まとめるときは、揃っているか確認。
- シート名が日本語:保存するファイル名は、自分で付ける。
よくある質問
全シートを一度に変換できますか?
できません。シートごとに変換します。
まとめ
シートを選んで、1つずつ変換して保存。まとめたいときは、変換後に結合しましょう。
ExcelをCSV・JSONに変換するを使う(無料)あわせて使えるツール
- CSVをExcelファイルにする:CSVを、Excelで開ける .xlsx ファイルにします。
- CSVとJSONを相互変換する:CSVとJSONを、すぐに相互変換します。
- Wordから文字を取り出す:Wordファイルの本文を、文字だけで取り出します。
同じツールの、ほかの解説
Converting an Excel File with Several Sheets
- Choose
- Switch
An Excel file has several sheets. In Convert Excel to CSV or JSON you choose the sheet to convert and convert one sheet at a time.
Steps
- With "Choose one .xlsx Excel file", choose the file.
- From the "Sheet" list, choose the sheet to convert.
- Choose the "Format".
- Check "After conversion" and save.
- To convert another sheet, switch the "Sheet".
- Save the result for each sheet.
Why sheet by sheet
CSV and TSV can represent only one table. For Excel files with several sheets, separating by sheet is natural.
Workflow
- Choose the first sheet and save the result as a file.
- Switch to the second sheet and save.
- Repeat as many times as needed.
Including the sheet name in the saved file name makes them easy to tell apart later.
If you want to combine sheets into one
- Convert each sheet to CSV and save.
- Combine them with a text editor or a CSV combining tool.
- Only when the sheets' item names (headings) are in the same format.
Hidden sheets
Sheets hidden in Excel may also appear in the list. Check they are the sheets you need before choosing.
Good for
- Converting a sales table with a sheet per month
- Converting a roster with a sheet per department
- Extracting multiple data sets separately
Example
A sales table with 12 sheets, one per month. Switched from January to December in turn and made 12 CSVs.
Common stumbling blocks
- Many sheets make choosing hard: convert only the necessary sheets.
- Column structure differs by sheet: check they match when combining.
- Sheet names are in Japanese: name the saved file yourself.
Frequently asked questions
Can all sheets be converted at once?
No. Convert sheet by sheet.
Summary
Choose a sheet, convert and save one at a time. To combine, join them after conversion.
Use "Convert Excel to CSV or JSON" (free)Tools that go well with this
- Convert CSV to Excel (.xlsx): Convert a CSV to an Excel (.xlsx) file.
- Convert CSV and JSON: Convert between CSV and JSON instantly.
- Extract Text from a Word File: Extract the plain text from a Word file.