Office 2019, a one-time purchase, supports PCs running Windows 10 and Macs running the latest three versions of macOS. For more information, including requirements for Apple® and Android™ tablets, view full system requirements.
Apple has 'Pages' and 'Numbers' which are able to work with, respectively, Word and Excel files. You can purchase and download both from the App Store in your Dock. Both have the ability to export files as Word and Excel if you need to send files to other people who don't have Macs. Each is $20.
Or, you can purchase Microsoft Office for Mac 2011, which contains both Word and Excel. You can purchase and download it from the Microsoft website. It's $120 per computer, or $150 for three computers.