Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 546
  • 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 MetzgerAuthor Commented:
Your solution solved the issue for me. Spot on. Thanks alot!
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

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