lundi 30 janvier 2017

Excel: Use an if statement to return blank value for formulae and charts

Is there a way to have an if function return a value that will be ignored by both average functions and charts?

In Gnumeric, an open-source, Excel-like program, you can have an if function return "" and the cell will appear empty. If you take the average of a bunch of such cells, some with returned values and some with returned "", the "" will be completely ignored. And if you create a chart with those cells as data points, cells with "" will not have a point plotted.

However, doing the same thing in Excel doesn't seem to work. I've selected the "Show empty cells as: Gaps" option (described here) but it doesn't work. I think this is because the cell isn't technically empty.

Answers to similar questions suggest using "na()" in the if statement, but this messes with the averaging functions.

Does anyone know of a solution?


Note: While this subject area has been addressed before, I don't think this is a duplicate. Here are some similar questions:

IF statement: how to leave cell blank if condition is false ("" does not work)

Leave a cell blank if condition is false

Creating a chart in Excel that ignores #N/A or blank cells

Aucun commentaire:

Enregistrer un commentaire