Forum Discussion
damienid
Jun 14, 2022Copper Contributor
Empty cells are displayed in a chart when using FILTER() function, when I don't want them to be
I have a workbook with a series of tabs (worksheets) that use the FILTER() function to draw data from a "master" tab. I'm trying to plot 2 series of data on a chart and one of the series has a lot of...
- Jun 15, 2022
damienid As you have discovered, FILTER returns 0 (zero) when it encounters an empty cell. Zero is neither empty nor null. For your chart to work, you need to replace the empty cells in your table by #N/A's. Mocked up a small example to illustrate what I mean. See attached.
Riny_van_Eekelen
Jun 15, 2022Platinum Contributor
damienid As you have discovered, FILTER returns 0 (zero) when it encounters an empty cell. Zero is neither empty nor null. For your chart to work, you need to replace the empty cells in your table by #N/A's. Mocked up a small example to illustrate what I mean. See attached.
damienid
Jun 15, 2022Copper Contributor
Riny_van_Eekelen Great, thank you. I had tried to use #N/A before but had done it wrong so thanks for the example using the NA() function which looks like it has done the trick!