• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 555
  • Last Modified:

Time-Series Chart that skips weekend dates along the X axis... can it be done?

I use this formula (below) in a column to create workday dates that skip Sat & Sun.  However, the time-series chart linked to these dates display continuous dates including the Saturdays and Sundays.  Question: Is there a way to coax Excel into skipping the Saturday & Sunday dates on the chart to suppress (skip) weekends?  Or is Excel's X-axis hard wired with regard to dates with time-series charts.

=IF(OR(WEEKDAY(A2+1)=1,WEEKDAY(A2+1)=7),A2+3,A2+1)... where A2 contains a date
0
Berry Metzger
Asked:
Berry Metzger
  • 2
1 Solution
 
Ingeborg Hawighorst (Microsoft MVP / EE MVE)Microsoft MVP ExcelCommented:
Hello,

What kind of chart are you using? In an XY chart, there's not much you can do, but for other charts you can set the X axis to category instead of time, then only the data points that are in your source will appear on the X axis.

cheers, teylyn
0
 
Saqib Husain, SyedEngineerCommented:
Using this formula works. You may have to change dd/mm/yy to mm/dd/yy

=TEXT(IF(OR(WEEKDAY(A2+1)=1,WEEKDAY(A2+1)=7),A2+3,A2+1),"dd/mm/yy")
0
 
Ingeborg Hawighorst (Microsoft MVP / EE MVE)Microsoft MVP ExcelCommented:
No need to change the data to text. Just click the chart, then Chart > Chart Options > Axis tab and select Category Axis. See attached for two charts off the same data. One includes weekends, the other does not.

cheers, teylyn
Book2.xls
0
 
Berry MetzgerLean process improvement consultantAuthor Commented:
Your solution solved the issue for me. Spot on. Thanks alot!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now