You may be able to use Office for the web to edit your files, it's free.
https://www.microsoft.com/en-us/microsoft-365/free-office-online-for-the-web
If you want to edit in a desktop program, you'll have to install Office on your Mac. It depends on which version of Office your purchased or subscribed to, whether you can install an extra copy.