+ Reply to Thread
Results 1 to 9 of 9

Insert and Automate Brackets within Chart

  1. #1
    Registered User
    Join Date
    05-04-2015
    Location
    Canada
    MS-Off Ver
    Excel for Mac
    Posts
    19

    Insert and Automate Brackets within Chart

    Hi there!

    I'm wondering how these blue brackets are inserted into the chart and if their position can be automated based on the number in the "payback" period cell. For example, if the payback period is 4 years, the "investment recovered" bracket spans 4 years and the "profit" bracket spans 6.
    If someone has a better way of automatically distinguishing between investment recovered and profit data based on "payback" period, I'm all ears.

    brackets.jpg

    Any insight into this would be great! Thanks!
    Attached Images Attached Images
    Last edited by wizzle89; 05-05-2015 at 12:06 AM.

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

    Re: Insert and Automate Brackets within Chart

    Depending on the construction of you current chart you might be able to use xy-scatter series to draw the lines and add data labels, but it's difficult to tell from pictures.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    05-04-2015
    Location
    Canada
    MS-Off Ver
    Excel for Mac
    Posts
    19

    Re: Insert and Automate Brackets within Chart

    Sorry, I'm new to this but slowly finding my around. Is there anything I can show you that will help determining how my chart has been constructed?

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

    Re: Insert and Automate Brackets within Chart

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  5. #5
    Registered User
    Join Date
    05-04-2015
    Location
    Canada
    MS-Off Ver
    Excel for Mac
    Posts
    19

    Re: Insert and Automate Brackets within Chart

    Quote Originally Posted by Andy Pope View Post
    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Thanks very much Andy,

    I have attached a sample workbook. The data in there is what I currently have and I want the chart to have the same brackets and wording as the one shown in my original post. It needs to automatically adjust based on the payback period cell.

    workbook-for-forums2.xlsx

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

    Re: Insert and Automate Brackets within Chart

    This should give you the general idea. Basically you are drawing the bracket with a xy-scatter series on the secondary axis.
    Another series is positioned in the middle of the bracket so it can be labelled.

    You need to set the secondary horizontal axis so it has a maximum of (Number of Categories + 0.5) Then the center of the columns will be 0.5, 1.5, 2.5 etc
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    05-04-2015
    Location
    Canada
    MS-Off Ver
    Excel for Mac
    Posts
    19

    Re: Insert and Automate Brackets within Chart

    Quote Originally Posted by Andy Pope View Post
    This should give you the general idea. Basically you are drawing the bracket with a xy-scatter series on the secondary axis.
    Another series is positioned in the middle of the bracket so it can be labelled.

    You need to set the secondary horizontal axis so it has a maximum of (Number of Categories + 0.5) Then the center of the columns will be 0.5, 1.5, 2.5 etc
    Thank you very much Andy, I will play with what you've done here and let you know if I have any further questions.

    You've been a tremendous help!

  8. #8
    Registered User
    Join Date
    05-04-2015
    Location
    Canada
    MS-Off Ver
    Excel for Mac
    Posts
    19

    Re: Insert and Automate Brackets within Chart

    Hi Andy,

    I've been playing with the supplied chart. I understand how the data point affect the brackets, but can you please walk me though how you added the XY scatter to the secondary axis on my existing chart? I can't seem to recreate that process. I know this is might be relatively elementary, but I'd much appreciate a brief "step-by-step" instruction on how you accomplished that.

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

    Re: Insert and Automate Brackets within Chart

    Use the Select data dialog to add a new series
    Select the new series and via the format dialog change it to the secondary axis
    Change chart type of that series to xy-scatter
    Use select data dialog to set the x and y ranges
    format series as required.

    add another series for the label of the bracket. this time it should automatically add xy-scatter series to secondary axis so just set the range reference and format

+ 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] Automating Brackets, and Sum above Brackets in Excel Chart
    By cartica in forum Excel Charting & Pivots
    Replies: 10
    Last Post: 07-24-2014, 11:33 AM
  2. [SOLVED] Macro to vlookup and insert results in initial with brackets
    By cathchin in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-13-2013, 08:40 PM
  3. Replies: 5
    Last Post: 04-19-2012, 09:02 AM
  4. Insert brackets, based on how the graph looks
    By tullemann in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-10-2011, 09:54 AM
  5. Gantt Chart Automate
    By brndtaylor in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-22-2007, 09:12 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