+ Reply to Thread
Results 1 to 11 of 11

Trendline for each Cluster Series

  1. #1
    Forum Contributor
    Join Date
    04-28-2024
    Location
    Pakistan
    MS-Off Ver
    Office 365
    Posts
    183

    Trendline for each Cluster Series

    Hello everyone,

    I need to draw trendlines for each cluster series. the sample data and sample is attached. Please guide how it can be created. What new data columns need to be added to draw trendlines. thanks.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    16,078

    Re: Trendline for each Cluster Series

    I think you will need to calculated the data for the trendlines in the spreadsheet, then build the chart as a clustered column + XY scatter combination chart. Spend some time with this tutorial to see how the chart is created: https://peltiertech.com/clustered-co...ination-chart/

    If you are unsure how to calculate the trend data, I would probably use the TREND() or FORECAST.LINEAR() function: https://support.microsoft.com/en-us/...3-9a7cf7b51ef1
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Contributor
    Join Date
    04-28-2024
    Location
    Pakistan
    MS-Off Ver
    Office 365
    Posts
    183

    Re: Trendline for each Cluster Series

    @MrShortly thanks for the reply. the link you have shared is not the same which I need. In the example, trend line for each series is provided whereas I need trend line for each cluster. The example in the the trend line for each cluster (Q1, Q2, Q3, Q4 for North) and same for other....

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    16,078

    Re: Trendline for each Cluster Series

    Perhaps I am misunderstanding then, because it looked like it should be readily adaptable to the picture you included in your sample file. The overall procedure I would expect:

    1) Calculate trend values in the spreadsheet.
    2) Enter/Calculate horizontal position values to go with the trend values. The only difference I see is that Peltier's example chose position values for trends across categories where you want position values for trends within a category. Is where you are having trouble understanding how to adapt Peltier's tutorial to your situation?
    3) Create and format the column + scatter combination chart. This should be straightforward once step (2) is completed.

    Let me know what I am misunderstanding.

  5. #5
    Forum Contributor
    Join Date
    04-28-2024
    Location
    Pakistan
    MS-Off Ver
    Office 365
    Posts
    183

    Re: Trendline for each Cluster Series

    @MrShorty

    Thanks once again. I think i am not able to explain the thing i want expect. I have found the following link which is good enought to meet my requirment. However in that link I am unable to calculate OFFSET values (-150, -100, -50 etc) due to which my trendlines are not the exactly which i want to generate.

    I will be greateful if you calculate trend values in the spreadsheet.

    https://peltiertech.com/precision-po...y-data-points/

    Yes this the difference between my requirement and what is available in the URL.

    The only difference I see is that Peltier's example chose position values for trends across categories where you want position values for trends within a category.

  6. #6
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    16,078

    Re: Trendline for each Cluster Series

    I'm not sure what you have tried. Here's what I did:

    1) In A2:A5, enter 1,2,3,4, to represent the desired X values for the trendline regression.
    2) In C11, I enter the trendline formula =TREND(B$2:B$5,$A$2:$A$5,$A2). Note the mix of relative and absolute references and Copy/paste/fill into C11:F14.
    3) Select D11:D14 -> Cut/paste/move into C16:C19. Select E11:E14 -> Cut/paste/move into C21:C24. Select F11:F14 -> Cut/paste/move into C26:C29 This column will become the values for the trendlines in the chart.
    4) Select B1:F5 and insert a clustered column chart.
    5) Bring up the "Select Data" dialog, add a data series using C11:C29 as the values. Dismiss Select Data dialog.
    6) Select this new series and change chart type to XY scatter (markers with lines is indicated in your picture).
    7) Bring up the "Select Data" dialog again, select the trends data series, and Edit the series to use B11:B29 for the X values.
    8) Start entering values in B11:B29 until you find good values to position the trend points where you want them. I started with 0.25 to 1 in B11:B14, then adjusted from there (ended up with about 0.7 to 1.2). From there, the subsequent quarterly groupings appeared to be 1 unit to the right (so B11+1 copied down).

    Try that and see how close you get to what you want.

  7. #7
    Forum Contributor
    Join Date
    04-28-2024
    Location
    Pakistan
    MS-Off Ver
    Office 365
    Posts
    183

    Re: Trendline for each Cluster Series

    @MrShorty

    Thanks a lot for spending time to provide this solution. It will be greatful if you do this on sample file which become more understandable. Anyhow thanks a lot

  8. #8
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    16,078

    Re: Trendline for each Cluster Series

    I won't be able to work on your file until some time tomorrow. Until then, is there a specific step that you are having trouble following?

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

    Re: Trendline for each Cluster Series

    I still have no idea what step you had trouble with. Here's what I ended up with. The values in B11:B14 still need some adjustment to get the right horizontal position.
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    04-28-2024
    Location
    Pakistan
    MS-Off Ver
    Office 365
    Posts
    183

    Re: Trendline for each Cluster Series

    Thanks a @MrShorty for providing the Excel Chart. I will try to use to my real data and if i find any difficutly, the I will let you know. Thanks a lot once again. Please guide how you have calculated .6, .8, 1, 1.2

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

    Re: Trendline for each Cluster Series

    I did not calculate those values. I just guessed them. They aren't perfect, so feel free to adjust them to get better horizontal positions. I usually prefer to just hand enter different guesses until I get something I'm happy with. If you feel they must be calculated, I will refer you again to Peltier's tutorial where he describes in some detail how Excel correlates the XY scatter horizontal axis against the category axis of the column chart.

+ 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. Overlapping Series in Cluster Chart?
    By jetsfan15 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 09-02-2022, 07:00 AM
  2. Cluster data by series in the X axis
    By TartedeMaçã in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-14-2016, 12:03 PM
  3. Row series above Column legend cluster graph
    By _MANNY_ in forum Excel Charting & Pivots
    Replies: 9
    Last Post: 09-27-2015, 11:10 AM
  4. Stacking a single series in a cluster bar chart
    By Bull Run in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 01-10-2014, 04:32 PM
  5. Replies: 3
    Last Post: 12-29-2010, 06:43 AM
  6. Chart with 2 series need one trendline
    By oddcarout in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-08-2009, 05:21 AM
  7. TRENDLINE based on ALL the series
    By strokebow in forum Excel General
    Replies: 1
    Last Post: 08-05-2008, 11:03 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