How to Open an Apple Health XML Export in Excel and Fix Out of Memory Errors
Question details
The user is trying to open an Apple Health data export in XML format using Excel but is prevented by a memory limitation error.

- Product
- Microsoft Excel
- Device & OS
- Windows 11
- Scenario
- Attempting to import a comprehensive Apple Health data export (XML format) into a spreadsheet to analyze personal health and fitness data.
- Observed behavior
- Microsoft Excel fails to load the file, displaying an error message stating: 'Unable to connect. We encountered an error while trying to connect. Details: Evaluation ran out of memory and cannot continue.'
Before attempting to open the Apple Health XML file, check the file size and ensure your computer has sufficient available RAM, as comprehensive health data exports can be exceptionally large and memory-intensive to parse.
Import XML Data Using Power Query
Use Excel's built-in 'Get Data' feature to cleanly import and transform the XML data structure into a spreadsheet format.
The Power Query import method is generally more stable than opening the file directly, as it allows Excel to interpret the XML schema and filter the data before fully loading it into a worksheet.
Launch Microsoft Excel, open a blank workbook, and navigate to the 'Data' tab on the top ribbon.
Click on 'Get Data' located on the far left, then select 'From File' followed by 'From XML'.
Browse your Windows 11 file directory, select the 'export.xml' file downloaded from Apple Health, and click 'Import'. Follow the Power Query Navigator prompts to select and load the specific health metrics you want to analyze.

Open Directly via Windows Context Menu
Quickly force the XML file to open directly in Excel using the right-click menu.
Convert XML to CSV Before Importing
Bypass Excel's XML parsing limitations by converting the massive Apple Health file into a lighter CSV format first.
Edit and Manage Large Datasets Effortlessly with WPS Office
If Microsoft Excel continues to struggle with memory limits when handling large Apple Health exports, consider WPS Office as a lightweight, fast, and free alternative. It provides excellent performance for everyday data analysis without heavily taxing your computer's resources.
- 1. Download and Install: Get the free WPS Office suite from the official website and install it on your Windows PC.
- 2. Open WPS Spreadsheet: Launch WPS Spreadsheet, which offers an interface highly familiar to Excel users.
- 3. Load Your Data: Use the standard 'Open' dialog to select your converted CSV or XML health data files and start analyzing your metrics instantly.

Frequently Asked Questions
Why does Excel run out of memory when opening Apple Health XML?
Apple Health exports contain millions of individual data points spanning years, such as step counts and heart rates recorded every few minutes. Excel attempts to load the entire complex XML tree structure (DOM) into memory at once during the import process, which can quickly exhaust system RAM and trigger the 'evaluation ran out of memory' error.
Can I filter the Apple Health XML before Excel crashes?
If the file is moderately sized, you can use the Power Query Navigator (Data > Get Data > From XML) to select only specific tables or columns before clicking 'Load'. However, if the file is extremely large (e.g., over 500MB), Excel's Power Query evaluation process may still run out of memory before the filtering options even appear.
How do I find specific health metrics like step count in the data?
Once you successfully import the data or convert it to CSV format, look for the main 'Record' rows. You can then apply a filter to the 'type' column and select 'HKQuantityTypeIdentifierStepCount' to view and graph your daily step data.




