Forum Discussion

cmukesh19's avatar
cmukesh19
Copper Contributor
Sep 17, 2022

Charts do not accept ranges with hash #

I don't seem to use the dynamic ranges with #, which works fine in formula. Is this a known issue in charts? Is there any workaround?

To reproduce the problem, we create two sequences in A2 and B2 with =SEQUENCE(25,1,5,2) and =SEQUENCE(25,1,25,5) and use A2# and B2# in the chart "Select Data".

12 Replies

  • SergeiBaklan's avatar
    SergeiBaklan
    Diamond Contributor

    cmukesh19 

    With latest Beta charts are dynamically changes if spill size is changed, similar to tables. In initial chart use B2:B10, whatever, not B2#. If spill will be changed on B2:C14, chart will be shown for the latest.

    • cmukesh19's avatar
      cmukesh19
      Copper Contributor
      It doesn't work in all cases.
      Try putting number in cell A1 (use 50).
      Use two sequences in cell B1 and C1 as =SEQUENCE(A1,1,5,5) and =SEQUENCE(A1,1,17,9). Build a chart using B1:B50 and C1:C50.
      Now change cell A1 to 100, which will make both the sequences to generate 100 elements. The chart will still use only 50 elements.
      • SergeiBaklan's avatar
        SergeiBaklan
        Diamond Contributor

        cmukesh19 

        In my case it works

        Even if you are on Beta channel new functionality is deployed gradually, hope will come soon. 

         

    • PeterBartholomew1's avatar
      PeterBartholomew1
      Silver Contributor

      SergeiBaklan 

      I am not sure I am entirely comfortable with that.  It is undoubtedly clever to infer what the user would like (provided that is indeed what the user wanted) but that does not remove the need for Excel to accept correctly formulated dynamic array notation.

      • SergeiBaklan's avatar
        SergeiBaklan
        Diamond Contributor

        PeterBartholomew1 

        That's what we have. We can't use MyTable[MyColumn] in data validation list, conditional formatting, etc. but automatically expansion together with table and spill referenced directly is a good compromise.

  • cmukesh19 

    Just an added thought based on HansVogelaar 's strategy.  If you use sheet-local names rather than workbook scoped names, the fully qualified names used by the chart engine to address data can be shorter and more meaningful.  For example, if the sheet tab shows "cht", the series would read

    =SERIES(,cht!x,cht!y,2)

  • cmukesh19 

    This is a known limitation. As a workaround, create a named range X_Values that refers to =$A$2#, and another named range Y_Values that refers to =$B$2#.

    You can use X_Values and Y_Values in the Select Data dialog.

    See the attached demo workbook.

Resources