+ Reply to Thread
Results 1 to 11 of 11

Creating a data series with two different formatting schemes

  1. #1
    Registered User
    Join Date
    07-05-2018
    Location
    Toronto
    MS-Off Ver
    2016
    Posts
    5

    Creating a data series with two different formatting schemes

    I'm trying to post a picture but I guess I can't since I just made this account. Basically I have a graph right now that is three distinct data series: an Original Forecast line which runs all the way from Jan - Dec, An "Actuals" line which runs from Jan - June, and a "Reforecast" line which runs from July - Dec. The point is to make the Actuals and Reforecast data series into one continuous line that can be compared to the Original Forecast. Right now they are two different data series that just start and end on the same number so the line looks continuous. The Actuals line is a solid colour, and the Reforecast is a dashed line so you can tell where the switch happens.

    It looks pretty much exactly how I want it too right now, but the back-end is a bit messy and I can see it being a pain to readjust where the actuals end and the reforecast begins every month going forward (for approximately 12 divisions). I'm wondering if there is an easier way to make actuals and reforecast one data series where the formatting changes from solid line to dashed line at various points in the series. I guess if I do that though I may lose the separate legend entries for the two series which would be a different problem.

    Thanks.

  2. #2
    Valued Forum Contributor than_gold's Avatar
    Join Date
    10-17-2017
    Location
    Coimbatore India
    MS-Off Ver
    Office 365
    Posts
    646

    Re: Creating a data series with two different formatting schemes

    Welcome to the forum.
    Could you please provide the sample excel for better understanding of your issue & to assist you as well in better way.
    Regards,
    Thangavel D

    Appreciate the help? CLICK *

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Creating a data series with two different formatting schemes

    Hi ssfan and welcome to the forum,

    As I read your question I kept thinking a Conditional Formatting based on Today() was what you needed. Andy Pope is a Forum Guru here and is the expert graph person I know about. He has some examples on his own web pages at:

    http://www.andypope.info/charts/conditionalline2.htm

    See if his example helps with your problem.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Valued Forum Contributor than_gold's Avatar
    Join Date
    10-17-2017
    Location
    Coimbatore India
    MS-Off Ver
    Office 365
    Posts
    646

    Re: Creating a data series with two different formatting schemes

    Thank you MarvinP for giving intro to Andypope, by the way, can you share your personal blog website pls..

  5. #5
    Registered User
    Join Date
    07-05-2018
    Location
    Toronto
    MS-Off Ver
    2016
    Posts
    5

    Re: Creating a data series with two different formatting schemes

    Hi MarvinP, That conditional formatting looks pretty similar to what I would need except I would be switching it to test for a value (whatever month it is today) on the x axis instead of the y. I'll try playing around with it

  6. #6
    Registered User
    Join Date
    07-05-2018
    Location
    Toronto
    MS-Off Ver
    2016
    Posts
    5

    Re: Creating a data series with two different formatting schemes

    forecast.PNG

    The picture worked. this is what I have and basically exactly how I want it to look. The two green lines are actually separate data series that connect at the current month. It would be easier if they could become one series with different formatting.

    I can upload the excel file if necessary, but it will take me some time to scrub all of the company-sensitive data out of it. this is where all of the data from the graph comes from:

    forecast data.PNG

    The last two lines are not data series, they're just the variance values that I use to label the difference between the two lines at the current month and the end of the year.
    Last edited by skyscraperrrrrfan; 07-05-2018 at 11:15 AM.

  7. #7
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,811

    Re: Creating a data series with two different formatting schemes

    It would be easier if they could become one series with different formatting.
    Can I ask why you say this? I ask because, in my experience, when you want a line with two different types of formatting, it is almost always easier to do it like you have now -- two separate data series.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  8. #8
    Registered User
    Join Date
    07-05-2018
    Location
    Toronto
    MS-Off Ver
    2016
    Posts
    5

    Re: Creating a data series with two different formatting schemes

    My thought was that I would have to redefine the range of the two series every month as actuals now stretches one month further and reforecast becomes one month shorter. If there was an easy conditional formatting I could apply where I just said, "switch colours in August instead of July now" it would be easier to update.

    Edit: I guess I don't have to redefine the range as long as I delete out the old value as the month changes. In July I just delete the reforecast number from May and June and with no values the graph shouldn't show anything.
    Last edited by skyscraperrrrrfan; 07-05-2018 at 11:31 AM.

  9. #9
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,811

    Re: Creating a data series with two different formatting schemes

    Edit: I guess I don't have to redefine the range as long as I delete out the old value as the month changes. In July I just delete the reforecast number from May and June and with no values the graph shouldn't show anything.
    That's the way I would do it, if the values for Actuals and Reforecast are hand entered. If they are determined by a formula, nest the existing formula inside of an IF() function that will return the N/A error when it should not be included in the series =IF(test for when to include this value in this series,current formula,NA()).

  10. #10
    Registered User
    Join Date
    07-05-2018
    Location
    Toronto
    MS-Off Ver
    2016
    Posts
    5

    Re: Creating a data series with two different formatting schemes

    Ya I think I might just do that. I'll write an if test where I can enter the current month in one cell for all my graphs, and have any months < current go blank.

    Thanks a lot.

  11. #11
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,811

    Re: Creating a data series with two different formatting schemes

    Sounds like that might work. Just be very careful with what you mean by blank. Usually, that means return something like empty string "", which is a text string and Excel's charts will treat it as a 0. Excel's charts (usually) know how to ignore N/A errors, which is why I suggested returning NA(). A more detailed essay: http://peltiertech.com/mind-the-gap-...g-empty-cells/

+ 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. Creating Charts with Many Data Series'
    By Madtaxi in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 06-29-2017, 01:46 PM
  2. [SOLVED] Design Advice for WorkSheets Color Schemes and Formatting
    By chullan88 in forum Excel General
    Replies: 3
    Last Post: 06-05-2017, 03:40 PM
  3. Replies: 3
    Last Post: 01-22-2017, 10:06 PM
  4. Replies: 2
    Last Post: 11-11-2013, 05:37 PM
  5. Creating a chart with data series from several worksheets
    By AlphaBob in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 12-02-2008, 05:35 AM
  6. creating a series from alphanumeric data?
    By rykey in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-12-2006, 10:24 AM
  7. [SOLVED] Creating a data series using another worksheet?
    By Bob in forum Excel General
    Replies: 1
    Last Post: 07-08-2006, 09:25 AM

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