Feb 19 2024 01:17 PM
Hi all,
I'm not understanding the logic here - can someone please explain the underlying philosophy?
If a formula references a #NA it returns #NA, but if a formula references a cell set to "" it ignores it.
Formula don't appear to differentiate between cells set to "" and an actual blank cell.
If a graph references a #NA it can be set to ignore it, but if it references a cell set to "" it treats it as a value of zero and graphs this point and includes it in a trendline.
BUT if a graph references a truely blank cell it does not graph it.
Why does graphing treat "" and an actual blank cell differently, whereas functions do not?
Why do functions treat #NA differently from graphing?
(I'm sure earlier versions of excel grapging did not treat "" differently from an actual empty cell - why did it change?)
thanks,
Matthew
Feb 19 2024 01:50 PM
Excel does not treat a cell with a formula that returns "" as blank, and never has.
For example, if A1 contains the formula ="", the formula =ISBLANK(A1) in B1 will return FALSE, and the formula =COUNTA(A1) will return 1.
In the "Hidden and Empty Cell Settings" dialog for a chart, you can specify how the error value #N/A will be treated, and how really empty cells (not "") will be treated.
Feb 19 2024 07:26 PM
Feb 20 2024 01:25 AM
You're right, there can be inconsistencies in how Excel handles different cell values, specifically regarding #NA, empty cells, and cells containing "". Here's a breakdown of the observed behaviors and potential explanations:
Formulas vs. Graphing:
Historical Changes:
Function-Specific Behavior:
Addressing Inconsistency:
While the observed inconsistencies might seem illogical, it's important to consider the context and purpose of formulas and graphs. Understanding these differences can help you interpret results correctly and potentially adjust your approach if needed.
For example, if you want to exclude both empty cells and cells containing "" from calculations or graphs, you can use functions like ISBLANK or IF statements to handle them explicitly.
Remember, Excel's behavior might evolve over time, so staying updated on any changes or clarifications from Microsoft is recommended
Feb 20 2024 02:28 AM
That is correct - a function such as COUNT or AVERAGE ignores both empty cells and cells that contain a text value such as "". So neither blanks nor "" is included in the result.
Feb 22 2024 02:36 AM