Home » excel » excel – Dynamic chart formula

excel – Dynamic chart formula

Posted by: admin May 14, 2020 Leave a comment


I’m having major problems with a dynamic chart.

I have two pivot tables where one is a “compare” and the other is todays live values.
Because the timestamps does not match up I use a vlookup to make them match.

enter image description here

As you can see the values in the pivots are unsynced and the C column has the vlookup to make sure they are in sync.

What I now want is to get a dynamic range chart which displays the values from when values are > 0 in column B (B18) and to the last row of column B.

What I have done so far is a index and match formula that finds the value 25 because it’s not 0 and matches the end of the table with = ""

This is the formula for column A:


If I select the formula and press F9 I see this:
enter image description here
It starts with “25.2” and ends with three zeros which is correct.
I use the same formula but with different return column for column B and C, and they too return the correct values.

I paste these formulas in the name manager and when I select the formula I can see that it selects the correct range.

All good, right?

I try to add them in the chart and I get an error message:

There is a problem with one or more of the formula references in the sheet.
Make sure the cell references, [unsure of the translation], named ranges and links to other workbooks in the formula is correct.

enter image description here

EDIT: Excel 365 if that makes any difference.

The exact formula is:

How to&Answers:

When you use relative cell references in range name formulas, these will be relative to the position of the current cell.

If the current cell is in row 100 when the range is defined, and it uses references to row 1, then change the cell selection to row 99, the range formula reference will point to row 1048576 and that may cause an error.

You may want to use absolute cell references instead.