Processes in Microsoft 365 for setting up Office apps, redeeming product keys, and activating licenses.
Which version of macOS do you have? For Microsoft Office to run, you will need macOS 12 or later.
Regarding Office versions, you will need a license which lets you run Office release 16.83 or later. Office 2019 is an example of a product which will not work anymore, following the certificate updates from Microsoft in July.
See https://www.brandwares.com/bestpractices/2023/03/most-recent-office-you-can-run-best-practices/ and https://support.microsoft.com/en-us/office/lifecycle/officeinstall/update-m365-office-macos-ios .