I have created a line graph based on dates and the values associated with those dates. However, it is inserting dates into a graph which I do not want. The dates run in chronological order, I only want the graph to display weekday dates whereas the graph actually inserts the weekend dates which are not in my data. Can anybody help?

enter image description here

  • Ive not got enough rep to add any attachments yet! – kyle Nov 18 '14 at 15:22
  • Are you referring to labels on an axis or data points? – fixer1234 Nov 18 '14 at 15:30
  • I have uploaded the image. the url is - imgur.com/FFAYTrD – kyle Nov 18 '14 at 15:30
  • 1
    I can understand your frustration; however, I have verified (by using a ruler and holding it up to my screen) that no data points relate to any of the weekend dates; the graph merely continues as normal. Now, I know that this doesn't answer your question but it may well instil a little calm within you. – SnookerFan Nov 18 '14 at 16:33
  • I'm guessing you are using a scatter chart so the X axis is shown as chronologically correct. The weekend dates are placeholders on the axis. If you only want to show dates with data, use a line graph. That will treat the dates as categories and just place them one after the other (make sure the data is pre-sorted because the dates will be interpreted as just labels with no numerical meaning). – fixer1234 Nov 18 '14 at 17:01
up vote 5 down vote accepted

You have two options if you don't like Excel's default assumption that you want your line chart to show "in between" dates where you have no specific data points.

Option 1 - show them as blanks

If you add the weekend dates into your data, but leave the values blank, your chart does this. This might be what you're looking for.

enter image description here

Option 2 - skip the dates like they don't exist

Right-click the date axis. Select Text axis under Axis Type:. This will treat your dates as any other label - it could just as well be: "18/11/14","red","20/11/14","blue". It just treats it as text instead of a date, meaning your weekend dates aren't shown.

enter image description here

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.