You hid a few rows, filtered a list, or hid a column such as an internal cost, and then saved the sheet as a CSV to send to someone. Did the hidden parts go into the file? We tested three cases in Excel, read the bytes of every file we saved, and tried one way to leave the hidden parts out of each.
Short answer from our test: saved as they were, all three cases wrote every row and column into the CSV. To leave them out, we copied only the visible cells to a new workbook and saved that. The steps differ a little between the three cases, and we list exactly what worked.
Tested in: Excel 2021 desktop (Version 2608) with an English interface, on Windows with Korean regional settings (list separator ,, decimal point .). Everything below describes what happened on that one setup. We did not test other Excel versions, other regional settings, or Mac, and results may differ there.
Our Test Sheets
We made three small workbooks with a script. Each has the same ten data rows in columns A to E:
On a phone, you can swipe this table sideways to see all the columns.
| id | customer | region | status | internal_cost |
|---|---|---|---|---|
| 1 | Acme Co | East | open | 110 |
| 2 | Bolt Ltd | West | closed | 220 |
| 3 | Cobalt Inc | East | open | 330 |
| 4 | Delta LLC | West | open | 440 |
| 5 | Echo GmbH | North | closed | 550 |
| 6 | Fjord AS | East | open | 660 |
| 7 | Gamma SA | West | closed | 770 |
| 8 | Helix BV | North | open | 880 |
| 9 | Iris Oy | East | open | 990 |
| 10 | Juno Pty | West | closed | 1010 |
- Workbook A, hidden rows: we hid the rows for id 3 and id 7.
- Workbook B, filtered rows: we filtered the region column to show only
West, so ids 2, 4, 7 and 10 stayed visible. - Workbook C, hidden column: we hid column E,
internal_cost.
We kept these workbooks as they were. Every CSV below was saved under a new file name as “CSV UTF-8 (Comma delimited)”. We did not test the other CSV format here; our byte-level comparison of the two CSV save options covers how they differ.
Step 1: Save As They Are
We opened each workbook and used File > Save As without changing anything. The result was the same in all three cases: the file had a header line and ten data lines, and every line had all five fields, including the rows we hid or filtered out and the hidden internal_cost column. The three files were byte-for-byte identical to each other.
So in our test, hiding a row, filtering it out, or hiding a column changed what Excel showed, not what it wrote. Our earlier post on what a CSV holds compared with what the cells display mentions hidden rows and columns in two short bullets; this post tests the three cases on their own.
Hidden Rows: Copy the Visible Cells Only

The screenshot shows workbook A with ids 3 and 7 hidden. The row numbers skip where the hidden rows are.
We first tried the plain way. We pressed Ctrl+A, then Ctrl+C, opened a new workbook with Ctrl+N, pasted with Ctrl+V and saved that as a CSV. The file still had all ten rows. In our test, an ordinary copy of manually hidden rows took them along.
What worked:
- Press Ctrl+A to select the sheet.
- Press Alt+; (Alt and the semicolon key). This is the shortcut for Select Visible Cells.
- Press Ctrl+C.
- Press Ctrl+N for a new workbook, then Ctrl+V.
- Use File > Save As and choose a CSV format, with a new file name.
The CSV had the header and eight data rows: ids 1, 2, 4, 5, 6, 8, 9 and 10. Ids 3 and 7 were not in the file, and the values in the other rows were unchanged.
Filtered Rows: Copy and Paste the Filtered List

The screenshot shows workbook B with the region filter set to West. The filter button on the region column shows that a filter is on.
Here the plain copy was enough. We pressed Ctrl+A, Ctrl+C, opened a new workbook, pasted, and saved as a CSV. The file had the header and four data rows: ids 2, 4, 7 and 10. The rows hidden by the filter were not in the file.
We did not try Alt+; on the filtered list, so we cannot say whether it changes anything there. We also do not know why a plain copy left out the filtered rows but not the manually hidden ones. We only saw that it did.
Hidden Columns: Copy the Visible Cells Only

The screenshot shows workbook C. The column letters jump from D to F because column E is hidden.
A plain copy and paste into a new workbook took the hidden column along: the new workbook had five columns, and the CSV saved from it still had internal_cost. With Select Visible Cells, it did not:
- Press Ctrl+A to select the sheet.
- Press Alt+;.
- Press Ctrl+C.
- Press Ctrl+N, then Ctrl+V.
- Use File > Save As and choose a CSV format, with a new file name.
The CSV had four fields on every line, id,customer,region,status, and ten data rows. The internal_cost values were not in the file.
How We Checked the Results
For each file we looked at the saved bytes outside Excel, not only at the sheet:
| Case | Way we saved | Data rows (header line not counted) | Fields per line |
|---|---|---|---|
| Hidden rows | As is | 10 | 5 |
| Hidden rows | Plain copy to a new workbook | 10 | 5 |
| Hidden rows | Select Visible Cells, copy to a new workbook | 8 | 5 |
| Filtered rows | As is | 10 | 5 |
| Filtered rows | Plain copy to a new workbook | 4 | 5 |
| Hidden column | As is | 10 | 5 |
| Hidden column | Plain copy to a new workbook | 10 | 5 |
| Hidden column | Select Visible Cells, copy to a new workbook | 10 | 4 |
For the files that used a workaround, we compared the remaining values with the source: nothing visible went missing, and none of the hidden ids or the internal_cost values appeared.
How We Would Use This
- Do not trust a hidden or filtered row to stay out of a CSV. In our test, only copying to a new workbook did that.
- For manually hidden rows or hidden columns, use Alt+; before copying. For a filtered list, a plain copy worked in our test.
- Before you share or upload the CSV, open it in a text editor or reopen it, and check that the rows or columns you meant to leave out are not in it, and that the ones you wanted are. We checked this by comparing the ids and column names in each saved file.
- Keep the original workbook, and save the CSV under a new file name.
Things to Know
- Scope. Everything above comes from three small test workbooks on Excel 2021 (Version 2608) with Korean regional settings and a comma list separator. Other Excel versions, other regional settings and Mac may behave differently.
- Not tested. Hiding rows and columns in the same sheet, grouped (outline) rows and columns, Excel tables and slicers, merged cells in the copied range, formulas that refer to hidden cells, using Alt+; on a filtered list, deleting the hidden column instead of copying, Power Query, macros, and Excel for the web.
- Unconfirmed. Why a plain copy kept manually hidden rows and columns but not filtered rows.
One-line Summary
In our Excel 2021 test, hidden rows, filtered-out rows and a hidden column were all written to the CSV when we saved as is, and copying the visible cells to a new workbook before saving left them out.
Sources
The screenshots and behavior described as “we saw” come from our own test in Excel 2021 on one setup. We did not rely on Microsoft documentation for the results above.













































