The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Stair Case Diagram with Microsoft Excel

    Discussion in 'Windows OS and Software' started by hendra, May 20, 2009.

  1. hendra

    hendra Notebook Virtuoso

    Reputations:
    157
    Messages:
    2,020
    Likes Received:
    6
    Trophy Points:
    56
    How do you create stair case graph with Microsoft Excel XP (2002) like the following one?
    [​IMG]

    I want to do this automatically and without having to insert false data in the original Excel table
     
  2. spam123

    spam123 Notebook Consultant

    Reputations:
    17
    Messages:
    155
    Likes Received:
    0
    Trophy Points:
    30
    i guess there would be more granular data (ie monthly) between the years - hence the look of the "stair-case", when in fact they are just smoothed lines between the months?
     
  3. ScuderiaConchiglia

    ScuderiaConchiglia NBR Vaio Team Curmudgeon

    Reputations:
    2,674
    Messages:
    6,039
    Likes Received:
    0
    Trophy Points:
    205
    What is the dataset? Specifically how many data points do you have representing the horizontal axis? If you don't have one for each "stairstep" you can't do this in Excel. It can't interpolate the intermediate points. Which is what I think you were driving at, right?

    Gary
     
  4. hendra

    hendra Notebook Virtuoso

    Reputations:
    157
    Messages:
    2,020
    Likes Received:
    6
    Trophy Points:
    56
    There are 64 data points on the horizontal axis. They represent the interest rate of my credit card in the past 64 months. So, each data point represents the interest rate of a particular month.

    I want to create a stair case graph just like in the picture, instead of regular graph in which each dot is directly connected by a line.
     
  5. spam123

    spam123 Notebook Consultant

    Reputations:
    17
    Messages:
    155
    Likes Received:
    0
    Trophy Points:
    30
    you won't even want to know what I do in code to create more jazzy stuff. LOL.

    okie dokie if you aren't doing it in VBA,
    then the closest approximation might be this -

    1. more data points between the years;
    so in this case if you're talking about your interest rates and not the fed funds rates, then you'll need to set up the x-axis with your timeline in MONTHS, and the interest rates in the y-axis

    2. once you have your data points, set these up as a scatter plot

    3. setup the x-error bars as a Plus, fixed value, with the value being
    the "fixed amount" being the width of the interval.
    (however, if you actually had setup the time-series as date data types,
    then that fixed value might have to be in days - I just used 30 though you could setup another column to be really precise)

    4. setup the y error bars as the Minus, and this time you'd really need to set up a separate column so that the height is precise.
    the first value would be 0. the next value would be t1 - t0
    (if you had set the y-series data in a column, it'd be row 2 - row1).

    sorry. the sample is easier.
    http://cid-ce904ab92828259b.skydrive.live.com/self.aspx/.Public/staircaseDemo.xls
     
  6. hendra

    hendra Notebook Virtuoso

    Reputations:
    157
    Messages:
    2,020
    Likes Received:
    6
    Trophy Points:
    56
    Thanks for the tip I will give it a try.
     
  7. kegobeer

    kegobeer 1 hr late but moving fast

    Reputations:
    836
    Messages:
    3,682
    Likes Received:
    0
    Trophy Points:
    105
  8. spam123

    spam123 Notebook Consultant

    Reputations:
    17
    Messages:
    155
    Likes Received:
    0
    Trophy Points:
    30
    interesting to find that my proposal using the error bars works.