Processes in Microsoft 365 for setting up Office apps, redeeming product keys, and activating licenses.
Close any open Office app.
Use the steps on this link to download the Office licence removal tool, and use that to remove the current Office licence on your Mac.
Then, open an Office app and log in with the Microsoft account you used to purchase the Microsoft 365 subscription.