Excel chart dynamic range-selection

后端 未结 2 1211
星月不相逢
星月不相逢 2021-01-15 13:02

I have a client that has a simple yet complicated request for an excel sheet setup, and I can\'t for the world thing of where to start. I\'m drawing a blank.

We have

2条回答
  •  太阳男子
    2021-01-15 13:47

    If the chart is on the same sheet as the data:

    Name the first cell of the data (A2) as a named range, say TESTRANGE. Created a named range MYDATA as the following formula:

    =OFFSET(TESTRANGE, COUNTA($A:$A) - 5, 0, 4, 2)
    

    Now, go to the SERIES tab of the chart SOURCE DATA dialog, and change your VALUES statement to:

    =Sheet1!MYDATA
    

    Now everytime you add a new row, it'll change the chart.

提交回复
热议问题