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

前端 未结 19 1616
挽巷
挽巷 2020-12-03 04:25

I am attempting to create a chart with a dynamic data series. Each series in the chart comes from an absolute range, but only a certain amount of that range may have data, a

相关标签:
19条回答
  • 2020-12-03 05:08

    This is what I found as I was plotting only 3 cells from each 4 columns lumped together. My chart has a merged cell with the date which is my x axis. The problem: BC26-BE27 are plotting as ZERO on my chart. enter image description here

    I click on the filter on the side of the chart and found where it is showing all the columns for which the data points are charted. I unchecked the boxes that do not have values. enter image description here

    It worked for me.

    0 讨论(0)
  • 2020-12-03 05:09

    If you make the vertical scale on your chart (using format axis) run from 0.0001 (say) then a value that Excel thinks is zero will not be plotted. Your axis in the chart will still look like it runs from zero upwards.

    0 讨论(0)
  • 2020-12-03 05:10

    Please note that when plotting a line chart, using =NA() (output #N/A) to avoid plotting non existing values will only work for the ends of each series, first and last values. Any #N/A in between two other values will be ignored and bridged.

    Example Plot Here

    0 讨论(0)
  • 2020-12-03 05:10

    You are correct that blanks "" or a string "#N/A" are indeed interpreted as having values in excel. You need to use a function NA().

    0 讨论(0)
  • 2020-12-03 05:14

    I had the same problem with a full line appearing.

    The end of my data only had #N/A.

    When I changed the chart type from a stacked line to line then the end of the line was removed from the chart.

    This did not work if the #N/A was in the middle of the data, only when it was in the trailing data.

    0 讨论(0)
  • 2020-12-03 05:19

    Select the labels above the bar. Format Data Labels. Instead of selecting "VALUE" (unclick). SELECT Value from cells. Select the value. Use the following statement: if(cellvalue="","",cellvalue) where cellvalue is what ever the calculation is in the cell.

    0 讨论(0)
提交回复
热议问题