Introduction
I was just reading a post on LinkefIn that included the writer pondering the use of IFERROR() in Excel. Should we end with 0 or ""?
Example, IFERROR(A5/B5,0) IFERROR(A5/B5,"") or, I will add, IFERROR(A5/B5,"-").
I left LinkedIn to create the screenshot below but when I came back, LinkedIn flew to the top of the current page and lost the post I was reading ... and no, I didn't make a note of anything! So, I lost the page!
Anyway, the screenshot below illustrates some of the ways in which not using and using IFERROR() might have an impact on the work you are doing.
I will highlight the bottom four rows that contain a descriptive statistics section that might help us to appreciate how we might use IFERROR() effectively.
IFERROR Function
My formulas in C5:F5 are, respectively:
C5=A5/B5
D5=IFERROR(A5/B5,0)
E5=IFERROR(A5/B5,"")
F5=IFERROR(A5/B5,"-")
AGGREGATE Function
I have used the AGGREGATE function in this example to help us to see what happens before and after correcting an error message in Excel.
This example shows quite clearly that it's not simply a matter of 0 or "" in IFERROR ... depending on how you go on to use those results.
No download needed: it would take you no time at all to reconstruct this example ... let me know if you disagree and would like my file ;)
Duncan Williamson
5th December 2026

No comments:
Post a Comment