If you have upgraded your office from 2013 to 2016 and after upgrade, if you want to debug your Excel-addin project, you will receive the below error.
you cannot debug or run
this project, because the required version of the Microsoft office application
is not installed
This issue is because in your project properties, target Office version is pointing to 2013 i.e 15.0 , you need to replace the 15.0 with 16.0 then it will work.
Select your project in the solution explorer, then unload the project, then again click on Edit your Excel-addin project after unloading as shown in the below window
The project file will be opened for editing. go to the below Tag line and replace 15.0 with 16.0. as shown below
<ProjectProperties HostName="Excel" HostPackage="{29A7B9D7-A7F1-4328-8EF0-6B2D1A56B2C1}"
OfficeVersion="15.0"
VstxVersion="4.0" ApplicationType="Excel"
Language="cs" TemplatesPath="VSTOTemplates"
DebugInfoExeName="#Software\Microsoft\Office\15.0\Excel\InstallRoot\Path#excel.exe" DebugInfoCommandLine="/x
" AddItemTemplatesGuid="{51063C3A-E220-4D12-8922-BDA915ACD783}"
/>
Reload the project and Set it as start up project then start debugging..! it should work now.