Share via

Office 2021: Excel: In just last few days my main Excel files will not open

John Mitchell 0 Reputation points
2026-05-03T07:26:01.28+00:00

Excel has been great for many years. I was using Excel before it was called Excel!

For about 2 days when I try to open my standard Excel files they will not open. Get a message as shown below:

"Excel cannot open the file 'file name.xlsx' because the file format or file extension is not valid. Verify that the

file has not been corrupted and that the file extension matches the format of the file"

This applies to all Excel files in the one directory that I have used for ages. If I go to another directory files (older) are OK.

I recently purchased a new laptop (Lenovo IdeaPad 32Gb RAM, 1 Tb storage). I had to recover older Excel files (like a cashflow) and build them up again to date. After that, they were working fine until 2 days ago. I am using Windows 11 Home which is up-to-date. I also use the latest and full version of McAfee protection.

I have never, in over 50 years struck this problem with Excel files all displaying their correct Excel extension. Am desperate to recover from this problem.

Cheers,

[REMOVED PII]

Microsoft 365 and Office | Excel | For home | Windows
0 comments No comments

2 answers

Sort by: Most helpful
  1. Norah-L 5,860 Reputation points Microsoft External Staff Moderator
    2026-05-04T06:55:34.27+00:00

    PII caution: Please note that this is a public forum for users. Do not post any private information here for your privacy and security. 


    Hello John Mitchell!

    From what you shared, I understand Excel files in a specific folder that used to work are now unable to open, while files in other locations are still fine. This suggests the issue may be related to that folder or how Excel is accessing files from it, rather than a general Excel problem.

    First, it’s worth checking for a path/name issue rather than the files themselves. Excel can fail to open workbooks if the full folder path or filename gets too long, so try renaming the parent folder (and any subfolders) to something short (e.g., C:\Excel) and shorten one file name (avoid using special characters), then test again.

    Q&A Assist’s Open and Repair is a good first test on a single file (it targets the workbook). If that doesn’t help across multiple files, repair the Office installation instead:

    • Start > Installed apps / Apps & features > Microsoft 365/Office > Modify > Quick Repair.
    • If Quick Repair doesn’t help, move to Online Repair using the same steps (choose Online Repair), then restart and test again.

    As a workaround, try uploading the file to OneDrive and opening it from there (or choose Open in App). This lets Excel access the file via the cloud location instead of the local synced path, which can sometimes avoid path or permission limitations.

    Additional step: Check McAfee > Navigation > Quarantined and Trusted Items > Quarantined Items, and restore any Excel files only if you recognize and trust them (sometimes antivirus may block or isolate valid files).

    Hope one of these helps. If not, feel free to post back, I'm happy to support further!


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Q&A Assist
    2026-05-03T07:26:19.08+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    The error indicates that the workbook files in that specific directory either no longer match the .xlsx format or have become corrupted.

    Based on the available information, the following supported actions can be taken:

    1. Verify the file extension and format
      • Confirm that the affected files truly are Excel workbooks and not another type of file renamed with .xlsx.
      • If the files were inadvertently renamed, open them in Excel and then save them in the correct format with the appropriate extension.
    2. Consider file corruption and attempt repair
      • The message can appear when a workbook is unreadable or corrupted and its contents no longer resemble the expected Excel format.
      • Use Excel’s repair capability:
        1. Open Excel.
        2. Select File > Open > Browse and navigate to the folder containing the affected file.
        3. Select the file once.
        4. Use the drop-down arrow next to Open and choose Open and Repair.
        5. If prompted, choose Repair to try to recover as much of the workbook as possible.
    3. If the file came via email
      • If any of the affected workbooks were received as email attachments, save the attachment to the local drive first and then open it from Excel (rather than opening directly from the email program).
      • If the sender is trusted and the file still will not open, ask the sender to resend the workbook in Excel Binary Workbook (*.xlsb) or Excel 97-2003 Workbook (*.xls) format.
    4. Evaluate the folder and storage
      • Because only files in one directory are affected, check whether anything changed about that folder or its storage (for example, moved from one drive to another, copied from a USB device, or restored from backup).
      • If the files were on removable media or an external drive, ensure the device is healthy and that it was not disconnected while files were open, as this can cause corruption.

    If the files remain unreadable after using Open and Repair, this indicates corruption beyond what Excel can recover. In that case, restoring from a backup (if available) is the only supported recovery path.


    References:

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.