+ Reply to Thread
Results 1 to 6 of 6

Problems in Graph using offset !!

  1. #1
    Registered User
    Join Date
    11-02-2012
    Location
    India
    MS-Off Ver
    2007
    Posts
    6

    Problems in Graph using offset !!

    Hello All,

    I have created a horizontal bar graph which has 5 bars in descending order. It is suppose to be a dynamic chart and the number of bars will vary.

    In excel, I am facing this problem wherein, the the bar appears in descending order in excel only if they are arranged in ascending order in the excel.

    Here is the problem : In excel, I need to arrange the values in cells in ascending order so if my values count reduced from 5 to say 4, I need to make the chart dynamic using offset but in the opposite direction.

    To be more precise: for example -

    =OFFSET(C2,2,0,count(C2:C10),1)

    here, instead of '2' i need to move it in the opposite direction but what should i mention & how. i have tried negative value but it isn't working?

    many thanks in advance!

  2. #2
    Forum Contributor
    Join Date
    09-29-2011
    Location
    Kolkata, India
    MS-Off Ver
    Excel 2003/2007
    Posts
    182

    Re: Problems in Graph using offset !!

    Hi,

    Suppose, your chart data is starting in A1 cell (ie Header1) and B1 contains Header2.

    Then, create a name range for Value range like this...

    =OFFSET(Sheet1!$B$2,0,0,COUNTA(Sheet1!$B:$B)-1,1)

    Say the name of the range is YAxis.

    Now, Edit the series data.
    Type "=Book1!YAxis" in Series value (here Book1 is the workbook name)

    Regards
    taps

  3. #3
    Registered User
    Join Date
    11-02-2012
    Location
    India
    MS-Off Ver
    2007
    Posts
    6

    Re: Problems in Graph using offset !!

    Dear Taps,

    Many thanks for your reply.

    I still have slight confusion as to whether I was able to explain the problem correctly or not!


    What I have done is I have attached an excel so that I can explain the problem better. May I request you to either answer the following question or else work on the excel (if possible) to provide a solution.

    Anyone in the forum is welcome to work on the excel attached and answer the following questions:

    1. I have to make sure that my bars are in descending order.

    2. How do I make sure that using offset, the bars will still be in descending order as shown in the right graph ?
    Attached Files Attached Files
    Last edited by themaverick2209; 11-12-2012 at 10:38 AM.

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,437

    Re: Problems in Graph using offset !!

    CHTLABEL: =OFFSET(Sheet1!$N$1,COUNTA(Sheet1!$N$2:$N$6)-COUNT(Sheet1!$O$2:$O$6)+1,0,COUNT(Sheet1!$O$2:$O$6),1)
    CHTDATA: =OFFSET(CHTLABEL,0,1)


    revised series formula.
    =SERIES(,'Offset in the reverse direction.xlsx'!CHTLABEL,'Offset in the reverse direction.xlsx'!CHTDATA,1)
    Cheers
    Andy
    www.andypope.info

  5. #5
    Registered User
    Join Date
    11-02-2012
    Location
    India
    MS-Off Ver
    2007
    Posts
    6

    Re: Problems in Graph using offset !!

    Hi Andy,

    Thanks for your time!

    I didn't understand where to use the following formula and also how is it possible to use "=series" (I know this is a silly question : but it would be really kind of you to clarify this)

    revised series formula.
    =SERIES(,'Offset in the reverse direction.xlsx'!CHTLABEL,'Offset in the reverse direction.xlsx'!CHTDATA,1)

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,437

    Re: Problems in Graph using offset !!

    See named ranges
    http://peltiertech.com/Excel/Charts/Dynamics.html

    The SERIES formula is displayed when you select a series in the chart

+ 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