I am having troubles adding the excel reference to my project. I have already installed Primary Interop Assemblies.
The project is detecting the Microsoft.Office.Interop
I installed Microsoft office PIAs, but I had the same problem, cannot find microsoft.office.interop.excel dll, I also I installed Visual Studio 2010 Tools for the Office System 4.0 Runtime Service Pack 1 but still the problem persist.
Finally I resolve the problem with an add of Office / SharePoint development package to my Visual Studio 2017 installation:
Go to Tools > Get Tools and Features ..
And then check Office / sharepoint development and modify your installation.