+ Reply to Thread
Results 1 to 7 of 7

Step curves

  1. #1
    Forum Contributor
    Join Date
    12-30-2013
    Location
    Falun, Sweden
    MS-Off Ver
    Excel 2007
    Posts
    112

    Smile Step curves

    Hi,

    I need a VBA-program for drawing step curves, i.e. the curve is horizontel until the y-value changes. The curves are thus discontinuous. A good example could be price curves.

    An example is enclosed where x represents quaters and then there are data series, in this case Y1, Y2 and Y3. In this example there should thus be three curves.

    Could some one help me?

    Kind regards,

    Jan
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,088

    Re: Step curves

    See next code
    Of course make a copy of the sheet
    Please Login or Register  to view this content.

  3. #3
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Step curves

    Please see the attachment, The closest that I could get was to use a histogram with overlapping bars and not fill.
    Attached Files Attached Files
    Martin

  4. #4
    Forum Contributor
    Join Date
    12-30-2013
    Location
    Falun, Sweden
    MS-Off Ver
    Excel 2007
    Posts
    112

    Re: Step curves

    Hi!

    Thank you very much for your macro.

    I suppose it is designed for 3 sets of Y columns.

    If you would like to change it to any number of columns , i.e. 2,4,5 etc. and not only 3, how would the macro be changed?

    Kind regards,

    Jan

  5. #5
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,088

    Re: Step curves

    Here we are
    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    12-30-2013
    Location
    Falun, Sweden
    MS-Off Ver
    Excel 2007
    Posts
    112

    Smile Re: Step curves

    Hi!

    Thanks for all help with the macro!

    It functions now properly!

    Kind regards,

    Jan

  7. #7
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,088

    Re: Step curves

    My pleasure
    PCI

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] For step loop, need step size to change based on reference cell in row
    By Telperion in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-22-2013, 03:41 PM
  2. Can anyone give me a step by step procedure on date expirations with color
    By Gracieline in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-07-2012, 08:35 AM
  3. [SOLVED] preventing simple zoom macro from running step by step
    By reece1984 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-11-2012, 06:13 AM
  4. Dependent validation to narrow down selection choices step by step
    By saschagraef in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-30-2010, 07:25 AM
  5. Directly print cell formula values step by step
    By SMM in forum Excel General
    Replies: 0
    Last Post: 07-08-2010, 08:27 PM

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