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

前端 未结 19 1786
挽巷
挽巷 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:04

    Best way is use Empty

    Dim i as Integer
    For i = 1 to 1000
        If CPT_DB.Cells(i, 1) > 100 Then
           CPT_DB.Cells(i, 2) = CPT_DB.Cells(i, 1)
        Else
           CPT_DB.Cells(i, 2) = Empty //**********************
        End If
    Next i
    

提交回复
热议问题