SOLVED

Highlighted
New Contributor

# Dynamic range of data for graph

After many days of trials I must ask for help.

I need to create a graph from range of data, which first cell is defined but the last cell changes based on value in another cell. All data is in one column so only row number changes. A have attached an example.

I hope this is possible.

5 Replies
Highlighted

# Re: Dynamic range of data for graph

To return the ADDRESS of the last cell, use this formula:
Highlighted

# Re: Dynamic range of data for graph

@TwifooThank you for your answer, but this is not the problem I have. Such formula I wrote already in cell F4.

The problem is how to use it in graph. The range like "=Sheet1!\$C\$3:\$C\$32" is OK but "=Sheet1!\$C\$3:ADDRESS(A3+2;3)" doesn't work.

Highlighted
Solution

# Re: Dynamic range of data for graph

In the attached file, I entered "=DynamicSeriesValues!SeriesValues" in the Series Values box of the Edit Series tab. SeriesValues is a named range with this formula:

=Arkusz1!\$C\$3:INDEX(Arkusz1!\$C:\$C,Arkusz1!\$A\$3+2)

Please modify the value in A3 to see the effect of the dynamic range on the chart.

Highlighted

# Re: Dynamic range of data for graph

@TwifooIt is exactly what I needed. Thank you very much.

Highlighted

# Re: Dynamic range of data for graph

You're very much welcome!