Microsoft 365 features that help users manage their subscriptions, account settings, and billing information.
Hello
You cannot extract product key from product serial number.
Also, if you purchased Office 2024 from third party and it came with the code, it is meant to be redeemed, so that it can be associated with your Microsoft account, then moving forward, your Msft account is the license and the code is considered redeemed/used.
Have you already redeemed it prior to this? If so, if you need to reinstall, just go ahead and do this:
Please go to https://account.microsoft.com/services
Sign in to the Microsoft account you used for the subscription.
You should then see your subscription listed. Find the option called "Install desktop versions of Microsoft 365 apps like Word, Excel and Powerpoint to your devices". It has a down arrow icon next to it.
Click on that. It should start downloading the installer file. Then you just need to run that installer file to install the apps.
==========
If you haven't redeemed yet and lost the code, you would need to contact the store you bought it from.