+ Reply to Thread
Results 1 to 3 of 3

Dynamic chart problem

  1. #1
    Registered User
    Join Date
    03-16-2006
    Posts
    11

    Dynamic chart problem

    Hi Folks,

    I am trying to do a dynamic chart with a method I found on this forum some time back. The method is to define a named range by an OFFSET formula.

    For this specific chart that range might move on the worksheet so I made this function:

    =OFFSET(INDIRECT("G"&MATCH("Result";C:C;0);TRUE);0;0;1;43)

    This does not work in the chart. I get an error saying "A formula in this worksheet contains onr or more invalid references".
    If I look at "Name" it looks ok, the range get "highligted" if I select the formula.

    It seems to have to do with the INDIRECT function. If i use this function it works:

    =OFFSET(G71;TRUE);0;0;1;43)
    Any clues?

    Thanks
    Anders.
    Last edited by akullen; 11-18-2008 at 05:18 PM.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436
    Yes INDIRECT does not play nicely with named ranges for chart data source.

    Try this variation,

    =OFFSET(OFFSET(Sheet1!$G$1,MATCH("Result",Sheet1!$C:$C,0)-1,0,1,1),0,0,1,43)
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    03-16-2006
    Posts
    11
    Works perfect.

    Thanks!
    Anders
    Last edited by akullen; 11-18-2008 at 05:15 PM. Reason: [solved]

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1