LibreOffice - it's free - has a word processor that can handle .doc and .docx files, as well as spreadsheet capabilities that can handle .xls and .xl files.
I use the spreadsheet capabilities. I cannot speak to the word processor and how it handles .doc and .docx.