ronski2 Thanks for your reply.
you say
Go into the macro editor
Put the cursor at the start of the macro
Somewhere is says Alt+F11 opens the vba editor. I did that. Now how do I know what macro I want to look at.
Thanks. SweetTasha.
I thought you already knew ...
.
I guess we have to take a step farther back. Are you asking about debugging a formula in a cell, not a macro?
.
Debugging formulas in a spreadsheet is another kettle of fish. Is this more of what you are looking for?
.
How to edit, evaluate and debug formulas in Excel
https://www.ablebits.com/office-addins-blog/2016/01/28/evaluate-debug-formulas-excel/
by Svetlana Cheusheva | updated on March 4, 2021
In this tutorial, you will learn a few quick and efficient ways to check and debug formulas in Excel. See how to use the F9 key to evaluate formula parts, how to highlight cells that reference or are referenced by a given formula, how to determine mismatched or misplaced parentheses, and more.
In the last few tutorials, we have been investigating different aspects of Excel formulas. If you've had a chance to read them, you already know how to write formulas in Excel, how to show formulas in cells, how to hide and lock formulas, and more.
Today, I'd like to share a few tips and techniques to check, evaluate and debug Excel formulas that will hopefully help you work even more efficiently with Excel.
Another way to debug formulas is to use the Precedents and and Dependants feature to find the cells that contribute to a formula or the cells that are dependent on the results of this cell.
.
Trace Precedents
https://corporatefinanceinstitute.com/resources/excel/study/trace-precedents/
Cells or group of cells that affect the value of the active cell
Home › Resources › Excel Resources › Study › Trace Precedents
What are Trace Precedents?
Trace precedents are cells or groups of cells that affect the value of the active cell. Microsoft Excel provides users with the flexibility of doing complex calculations using formulas such as average, sum, count, etc.
However, the formulas may sometimes return wrong values or even give an error message that you must resolve in order to get the correct values. Excel makes it easier to resolve calculation errors by providing easy-to-use tools such as Trace Precedents that one can use to audit the calculations.
Summary
- Trace Precedents tool helps audit a formula in order to understand the relationship between the active cell and other cells.
- To access trace precedents, go to Formulas Tab > Formulas Auditing > Trace Precedents.
.
Trace Dependents
https://corporatefinanceinstitute.com/resources/excel/study/trace-dependents/
Cells or group of cells that are affected by the selected cell
Home › Resources › Excel Resources › Study › Trace Dependents
What are Trace Dependents?
Trace Dependents are defined as the cells or group of cells that are affected by the selected cell. When using the formula auditing tool, Excel displays blue arrows that link the cells that are related to the active cell.
An Excel spreadsheet sometimes contain multiple formulas, and understanding the relationship between the cells would be a difficult task in the absence of the Trace Precedents and Trace Dependents features in Excel.
Summary
- Trace Dependents helps users to analyze the relationship between the cells in a worksheet.
- Trace dependents are used to show the cells that are affected by the active cell.