in2csv --sheet Sheet2 book.xlsx

Category: Data Science & Analysis

in2csv --sheet Sheet2 book.xlsx

Convert a specific worksheet to CSV

The --sheet flag selects a named worksheet, here Sheet2, instead of the default first sheet. Sheet names are case-sensitive and must match the workbook exactly. There is no --sheet-names flag for listing sheets, so use a spreadsheet tool or Python to enumerate them. The chosen sheet becomes the CSV on stdout.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.