Refer to this article for tracing precedents in Excel using C#. It has the IDE settings, steps, and a sample code to fetch precedents and dependents in Excel with C#....empty Excel file using the Workbook class for analyzing precedents...and precedent and set the formula in the dependent cell accordingly...