How to Preserve Raw Data and Pivot Tables When Saving in Excel
Question details
The user needs to know how to prevent raw data and pivot tables from disappearing when saving an Excel workbook.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Saving a workbook that contains multiple sheets, including both raw data and complex pivot tables.
- Observed behavior
- Raw data and pivot tables disappear or are completely lost because the workbook is being inadvertently saved in the plain-text CSV format.
Before saving your document, ensure you have completed all pivot table adjustments and that your raw data is finalized in its respective worksheet.
Save the File as an Excel Workbook (.xlsx)
The most effective way to preserve both raw data and pivot tables is by saving your file in the standard Excel Workbook format instead of CSV.
CSV (Comma Separated Values) files are plain-text files. Because of their plain-text nature, they can only store data for a single active worksheet and strip away all formatting, formulas, and pivot tables.
To keep all your multiple sheets and complex data structures intact, you must use a standard spreadsheet format like .xlsx.
Click on 'File' in the top-left corner of your Excel window.
Select 'Save As' from the left-hand menu panel to specify a new format.
Click the 'Save as type' drop-down menu beneath the file name field.
Select 'Excel Workbook (*.xlsx)' from the list of available formats.
Click 'Save' to ensure your raw data, multiple worksheets, and pivot tables are fully preserved.

Use WPS Spreadsheet to Preserve Complex Data
WPS Office offers a fully compatible, free alternative to Microsoft Excel. With WPS Spreadsheet, saving complex workbooks with pivot tables, formulas, and multiple sheets in .xlsx format takes just a few clicks, ensuring absolutely no data loss.
- 1. Open your file in WPS: Launch WPS Spreadsheet and open your document containing the raw data and pivot tables.
- 2. Access the Save As menu: Click the 'Menu' button in the top-left corner and choose 'Save As'.
- 3. Select the correct format: In the format drop-down at the bottom of the dialog box, select 'Microsoft Excel Workbook (*.xlsx)'.
- 4. Save the document: Confirm your desired file name and click 'Save' to safely store all your multiple sheets and pivot tables.

Frequently Asked Questions
Why does Excel warn me about data loss when saving as CSV?
CSV formats only save the active worksheet's text and values. Excel warns you because any additional sheets, formatting, formulas, and pivot tables will be permanently removed if you proceed with saving in this plain-text format.
Can a CSV file have multiple sheets?
No, CSV files are strictly plain text and do not support multiple sheets or formatting. You must use a workbook format like .xlsx or .xls to store multiple worksheets.
How do I export my pivot table data to a CSV without losing the original file?
First, save your entire workbook as an .xlsx file. Then, create a new sheet, copy the values from your pivot table, paste them as plain text into the new sheet, and use the 'Save As' feature to save only that active new sheet as a CSV file.




