Hi,
Use the Office troubleshooter to remove any Office installations:
Select the button below to start the uninstall troubleshooter.
Then do the following: Open the command prompt (admin) and run the commands: sfc /scannow and dism /online /cleanup-image /restorehealth, wait for the process to finish and restart the computer.
Install offline: https://officecdn.microsoft.com/db/492350F6-3A01-4F97-B9C0-C7C6DDF67D60/media/en-US/O365HomePremRetail.img
After the download is complete, disconnect from the internet > right click > select Mount > go to Windows Explorer > My Computer > select the Office icon > right click > open > Go to the office folder > Go to setup64.exe
Give feedback if the information was useful or not.
Thanks