+ Reply to Thread
Results 1 to 6 of 6

Bar Chart of Start and End point on a horizontal line

  1. #1
    Registered User
    Join Date
    09-21-2016
    Location
    Los Angeles
    MS-Off Ver
    2013
    Posts
    15

    Bar Chart of Start and End point on a horizontal line

    I'm trying to make a chart that will show where each name starts and ends on a horizontal line. The path is 1 through 5, but each name will start and end at different places. I believe a Bar Chart will show this well, where it is white for the stops that are outside the limits and colored for the area inside the limits, but not sure how to do that. Below is an example of the data and a drawing of what I want to create. Is there an easy way to do this I am missing in Excel 2010?

    Name Start Location End Location
    Paul 1 5
    John 2 4
    George 1 3
    Ringo 2 5
    example.jpg

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,926

    Re: Bar Chart of Start and End point on a horizontal line

    The way to do this is with a helper column. Create a new column that measures the length of the bar which is end point - start point.

    The create a stacked bar chart with series 1 as the start and series 2 as the length. Then assign no fill to series 1.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Registered User
    Join Date
    09-21-2016
    Location
    Los Angeles
    MS-Off Ver
    2013
    Posts
    15

    Re: Bar Chart of Start and End point on a horizontal line

    Fantastic! I knew it had to be simple and couldn't wrap my head around it. Thank you!

  4. #4
    Registered User
    Join Date
    09-21-2016
    Location
    Los Angeles
    MS-Off Ver
    2013
    Posts
    15

    Re: Bar Chart of Start and End point on a horizontal line

    Follow-up ... is there an easy way to show a single line if the journey where start location and end location are the same? (e.g. Pete starts at 5 and ends at 5)

  5. #5
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,926

    Re: Bar Chart of Start and End point on a horizontal line

    In a word, "CHEAT!"

    I changed the formula in Column D to: =C3-B3+0.05*(B3=C3). What this does is add 0.05 to the length if it otherwise would have been zero. So it produces a thin bar at the value. With additional helper columns. I could get it to center on the line instead of being on the right side of it.

  6. #6
    Registered User
    Join Date
    09-21-2016
    Location
    Los Angeles
    MS-Off Ver
    2013
    Posts
    15

    Re: Bar Chart of Start and End point on a horizontal line

    that is perfect, thank you again!

+ 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] How to change the start point of trend line?
    By qzqzjcjp in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 04-22-2015, 07:32 PM
  2. Straight Vertical and Horizontal line through a single scatter point.
    By jhall488 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 12-10-2012, 10:06 AM
  3. Replies: 2
    Last Post: 06-19-2012, 06:50 PM
  4. Replies: 5
    Last Post: 01-29-2012, 09:48 PM
  5. Replies: 2
    Last Post: 06-27-2011, 10:47 PM
  6. drawing a horizontal line at a specific point
    By Barry Au in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 05-14-2007, 11:57 AM
  7. how to produce horizontal line chart of point est & 95% ci's
    By w98user in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 11-09-2005, 07:10 AM

Tags for this Thread

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