Auditing Formulas in Excel
Welcome to the 5th edition of my newsletter "Mastering Data Analytics"

Auditing Formulas in Excel

When Excel can not perform an operation or when there is an error in a formula, it shows an error. Some common errors are

??? #NAME? error. Occurs when Excel does not recognize text in a formula. Usually happens when you misspell the name of a function.

???? #VALUE! error. Occurs when a formula has the wrong type of argument. Usually happens when you try to performs mathematical operations with cells that does not contain numbers.

???? #DIV/0! error. Occurs when a formula tries to divide a number by 0 or an empty cell.

??? #REF! error. Occurs when a formula refers to a cell that is not valid. Usually happens when a formula refers to a deleted cell.

???? #NUM! error. Occurs when a formula or function contains invalid numeric values. For example when trying to calculate the square root of a negative number.

In complex formulas it could be difficult to detect the error. Fortunately, Excel provide some tools for tracking down errors.

Tracing formulas

The simplest procedure to trace formulas is double click a cell with a formula. This will show the cells referenced by the formula marked in different colours.

Another possibility is to trace precedents or dependents references. If you select a cell with a formula and click the Trace Precedents button of the Formula Auditing panel on the ribbon’s Formulas tab, Excel will show arrows to the cells that affect the value of the selected cell. And if click the Trace Dependents button of the Formula Auditing panel on the ribbon’s Formulas tab, Excel will show arrows to the cells that are affected by selected cell. To remove the arrow simply click the Remove Arrows button of the Formula Auditing panel on the ribbon’s Formulas tab.

Example This animation shows how to trace a formula to calculate the price of product without discount, with discount but without taxes and with discount and taxes.

Error checking

If some formula have an error, you can check where the error come from selecting the cell with the error and clicking the Error Checking button ?of the Formula Auditing panel on the ribbon’s Formulas tab. This will display a dialog with the formula expression, an explanation of the error and several options. If the error is in the selected cell you can click the option Show Calculation Steps to evaluate the formula (see the section Formula evaluation). But if the error is in a cell that affects the selected cell you can click the option Trace Error. This will show red arrows to cells where the error come from.

Example This animation shows how to check an error in a formula to calculate the price of product without discount, with discount but without taxes and with discount and taxes.

Formula evaluation

In general, you can evaluate any formula, even if it has no error, selecting the cell with the formula and clicking the Formula Evaluation button ?of the Formula Auditing panel on the ribbon’s Formulas tab. This will display a dialog where you can evaluate the formula step by step.

Example This animation shows how to check an error in a formula to calculate the price of product without discount, with discount but without taxes and with discount and taxes.

Nikhil Borole

AI & Tech Content Creator ????|| AI Enthusiast ?? || Sharing Latest AI Tools ?|| Helping Client's to Grow their Business ?? || DM for Promotion ??|| SDLC || STLC || Software Test Engineer specializing ||

11 个月

It's always insightful to dive into the world of data analytics. Your newsletter on "Mastering Data Analytics" is a valuable resource for professionals seeking to enhance their skills in Excel formulas. Vinayak Jadhav

回复

要查看或添加评论,请登录

Vinayak Jadhav的更多文章

  • TRIMRANGE Excel Function

    TRIMRANGE Excel Function

    Summary The Excel TRIMRANGE function removes empty rows and columns from a range of data. The result is a "trimmed"…

    28 条评论
  • The Future of Excel: Emerging Trends and Technologies

    The Future of Excel: Emerging Trends and Technologies

    Excel, the ubiquitous spreadsheet software, has been a staple in businesses for decades.1 But the landscape of data…

    16 条评论
  • Must Know Differences for Excel:

    Must Know Differences for Excel:

    ?? VLOOKUP vs INDEX MATCH: VLOOKUP: Searches for a value in the first column and returns a value in the same row from a…

    12 条评论
  • UNIQUE function - quick way to find unique values in Excel

    UNIQUE function - quick way to find unique values in Excel

    The introduction of the UNIQUE function in Excel 365 has changed everything! What used to be a rocket science becomes…

    17 条评论
  • XLOOKUP or INDEX MATCH

    XLOOKUP or INDEX MATCH

    XLOOKUP vs INDEX MATCH - syntax comparison First things first, let's break down the syntax of these formulas and…

    15 条评论
  • The Power of Dynamic Array Functions

    The Power of Dynamic Array Functions

    In the ever-evolving landscape of data analysis and spreadsheet management, Microsoft Excel has taken a monumental leap…

    15 条评论
  • New Formulas in Excel 2023 Can increase Our Productive

    New Formulas in Excel 2023 Can increase Our Productive

    Microsoft Excel is a powerful spreadsheet application that can be used to automate tasks, analyze data, and create…

  • Power BI interview questions and answers

    Power BI interview questions and answers

    1. Question: What is Power BI? Answer: Power BI is a business analytics service by Microsoft that provides interactive…

    12 条评论
  • Mastering Data Cleaning and Transformation for Powerful Data Analysis

    Mastering Data Cleaning and Transformation for Powerful Data Analysis

    In the realm of data analysis, two essential stages often go hand in hand: data cleaning and data transformation. Both…

    12 条评论
  • Essential Functions in Excel for Data Preprocessing

    Essential Functions in Excel for Data Preprocessing

    Microsoft Excel is a great tool for preprocessing and handling structured data. Excel has functions and techniques…

    15 条评论

社区洞察

其他会员也浏览了