+ Reply to Thread
Results 1 to 3 of 3

Trendlines in charts with missing data

  1. #1
    Registered User
    Join Date
    02-12-2014
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2013
    Posts
    11

    Trendlines in charts with missing data

    Hi Everbody,
    I need to create a chart that shows two data series and trendlines for those series. The two series don’t overlap. One series starts in January and ends in June, while the other starts in July and ends in October. When I add trendlines to the chart the trendline extends beyond the end (or the beginning) of the data

    Does anybody have any ideas on how to get the trendlines to start and end with the start and end of each series? In other words, can the trendline for the series that starts in January and ends in June also start in January and end in June?

    Thanks in advance!
    Whoop92

    (A example spreadsheet is hopefully attached.)
    Attached Files Attached Files

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,619

    Re: Trendlines in charts with missing data

    While it is pretty easy to extend trendlines beyond data scope, it's not that easy to "shrink" them.

    My proposition is to calculate the trendlines and plot them on a graph as additional series.
    So to make life easy:
    - list numbers 1... number of your months in one row (say row 5). Always start with 1 even if your data starts in March or September
    - calculate slope and intercept for your data so in say M6 and N6:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and copy down
    in B6 calculated point on trendline:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    copy right and down (to B6:K7)
    add these two series to your graph, format to taste, and ... Enjoy!
    Attached Files Attached Files
    Best Regards,

    Kaper

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

    Re: Trendlines in charts with missing data

    You would need to use xy-scatter instead of line chart.
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

+ 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. How to compare trendlines of two different charts
    By hooman_teh in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 08-01-2010, 01:25 PM
  2. Trendlines in Pivot charts
    By filky in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 10-15-2007, 08:45 AM
  3. [SOLVED] some charts will not show trendlines
    By comfuted in forum Excel Charting & Pivots
    Replies: 8
    Last Post: 06-12-2006, 04:20 PM
  4. [SOLVED] Charts and Trendlines
    By shappy96 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-01-2005, 01:06 PM
  5. Replies: 1
    Last Post: 01-08-2005, 11:06 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