Processes in Microsoft 365 for setting up Office apps, redeeming product keys, and activating licenses.
Which Microsoft Office product is this? If it is associated with an account at https://account.microsoft.com/services , you can install from there. Click the Install button next to the product name. Activation should be easy if you have a subscription, but for one-time purchase licenses, have a look at https://support.microsoft.com/en-us/windows/activation/activate-microsoft-perpetual-products-using-the-product-activation-portal.
If Office was preinstalled when you purchased your PC, and if it is an OEM license, you won't be able to transfer it to a new machine, unfortunately.