Dynamic chart range using INDIRECT: That function is not valid (despite range highlighted)

前端 未结 7 1178
太阳男子
太阳男子 2020-11-28 08:20

I\'m trying to create a chart with a range built dynamically using the INDIRECT function. Excel does recognize the range I am creating using INDIRECT

相关标签:
7条回答
  • 2020-11-28 08:55

    Just another answer for bits and googles..

    If you still want to refer to your start and end cells, you'll need to add a separate formula for your Day Range and your Values Range. Formulas are below and the screenshot shows the formulas used.

    Day Range:

    ="Sheet1!"&$F$2&":"&ADDRESS(ROW(INDIRECT($F$3)),COLUMN(INDIRECT($F$2)))

    Values Range:

    ="Sheet1!"&ADDRESS(ROW(INDIRECT($F$2)),COLUMN(INDIRECT($F$3)))&":"&$F$3

    enter image description here

    Then add two ranges referencing the INDIRECT values of those cells

    Press Ctrl+F3, Click New, and add a new range with the name "chart_days", referring to =INDIRECT(Sheet1!$F$4); and a new range with the name "chart_values", referring to =INDIRECT(Sheet1!$F$5)

    Finally, in your chart, add a series that refers to =nameOfYourWorkbook!chart_values

    and Edit the category to refer to =nameOfYourWorkbook!chart_days

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