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#....and precedent and set the formula in the dependent cell accordingly...Create an empty workbook, set a formula in a cell, and access the precedents...