+ Reply to Thread
Results 1 to 11 of 11

How can I change the labels on a line graph?

  1. #1
    Registered User
    Join Date
    03-08-2020
    Location
    Devon, UK
    MS-Off Ver
    14.0.7237.5000 (32 bit)
    Posts
    25

    How can I change the labels on a line graph?

    I want to create a simple graph to help me manage my vehicle use. I have put the data in, highlighted it and inserted a line graph. All's well so far but Excel is not putting the years in on my X axis. How can I do this, please? I can't see how attached my file so that you can see it!

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,980

    Re: How can I change the labels on a line graph?

    Which version of Excel? Is that a Mac version? Is it 365?

    There are instructions at the top of the page explaining how to attach your sample workbook (yellow banner: HOW TO ATTACH YOUR SAMPLE WORKBOOK). Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    03-08-2020
    Location
    Devon, UK
    MS-Off Ver
    14.0.7237.5000 (32 bit)
    Posts
    25

    Re: How can I change the labels on a line graph?

    Hi Ali and thanks for your reply. Sorry, not very helpful of me, I have Windows 10 Home 64bit.

    I have MS Office Home and Student 2010, Excel version 14.0.7268.5000 (32bit).

    I
    Attached Files Attached Files
    Last edited by Kalkul8; 08-05-2023 at 08:09 AM.

  4. #4
    Forum Contributor
    Join Date
    09-03-2016
    Location
    Catania, Italy
    MS-Off Ver
    Excel 2019
    Posts
    164

    Re: How can I change the labels on a line graph?

    HI
    You don't have to enter years as a series.
    See the attachment.
    HI,
    Mario
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    03-08-2020
    Location
    Devon, UK
    MS-Off Ver
    14.0.7237.5000 (32 bit)
    Posts
    25

    Re: How can I change the labels on a line graph?

    Hi Mario,

    Thanks, the graphs that you have sent me look great. How did you add the year dates and how did you get the slanty year numbers in on the MoT graph?

    Can I add some sort of "predictive" line in so I can forecast future dates?

  6. #6
    Forum Contributor
    Join Date
    09-03-2016
    Location
    Catania, Italy
    MS-Off Ver
    Excel 2019
    Posts
    164

    Re: How can I change the labels on a line graph?

    HI
    Right-click the axis and then click the Edit button in the right part of the window. Enter cell references with years.

    For the other question, try deleting the Legend and see what happens.

    What do you mean by "predictive line"?

    HI,
    Mario

  7. #7
    Registered User
    Join Date
    03-08-2020
    Location
    Devon, UK
    MS-Off Ver
    14.0.7237.5000 (32 bit)
    Posts
    25

    Re: How can I change the labels on a line graph?

    Hi Mario and thanks for your reply.

    What I mean by "pedictive" is that I would like to be able to estimate what mileage I might cover in the future weeks, months or years. With the data I have, can I put in a date in the future and have Excel calculate an estimated mileage?

  8. #8
    Forum Contributor
    Join Date
    09-03-2016
    Location
    Catania, Italy
    MS-Off Ver
    Excel 2019
    Posts
    164

    Re: How can I change the labels on a line graph?

    HI
    Yes you can. If you settle for a percentage calculation the game is quite simple.
    HI,
    Mario

  9. #9
    Registered User
    Join Date
    03-08-2020
    Location
    Devon, UK
    MS-Off Ver
    14.0.7237.5000 (32 bit)
    Posts
    25

    Re: How can I change the labels on a line graph?

    Hi Mario and thanks again.

    Being a simple fellow, I would appreciate a few words to describe what I need to do to incorporate your suggestion into my data table and graph!

  10. #10
    Registered User
    Join Date
    08-04-2023
    Location
    Dubai, UAE
    MS-Off Ver
    Microsoft 365 (Version 2208 Build 16.0.15601.20644) 64-bit
    Posts
    5

    Re: How can I change the labels on a line graph?

    Try scatter chart where you can play around until the desired years, added prediction for 2024 and 2025, enable Display Equation on Chart.


    Test Year MoT Recorded miles
    2015 41,896.00
    2016 50,779.00
    2017 57,618.00
    2018 64,284.00
    2019 70,460.00
    2020 70,153.00
    2021 83,707.00
    2022 89,964.00
    2023 94,603.00
    2024 95,035.78
    2025 99,251.13


    Capture.PNG

    Capture2.PNG
    Attached Files Attached Files

  11. #11
    Forum Contributor
    Join Date
    09-03-2016
    Location
    Catania, Italy
    MS-Off Ver
    Excel 2019
    Posts
    164

    Re: How can I change the labels on a line graph?

    HI
    My English is "basic" and I wouldn't be able to explain what to do.
    The best thing I can suggest, especially with Graphs, is to try and try again, obviously on a copy of the file.

    HI,
    Mario

+ 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. Data Labels only on "Line Ends" on Excel line graph
    By NewEnglandMade in forum Excel General
    Replies: 3
    Last Post: 06-11-2023, 07:57 PM
  2. Replies: 0
    Last Post: 06-01-2021, 04:24 AM
  3. Excel not updating line graph labels
    By wmjenner in forum Office 365
    Replies: 3
    Last Post: 10-20-2017, 02:04 PM
  4. Want to add data labels to a simple line graph
    By JohnWM81 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 06-04-2017, 02:21 PM
  5. Replies: 1
    Last Post: 12-12-2012, 10:50 PM
  6. Multiple Data labels in line graph
    By NadeemMd in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 04-18-2012, 11:15 AM
  7. Change color of line in line graph
    By ptk in forum Excel General
    Replies: 4
    Last Post: 11-17-2011, 07:57 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