Solved

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

Posted on 2011-05-02
491 Views
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
Question by:Berry Metzger

LVL 50

Expert Comment

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

LVL 43

Expert Comment

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

LVL 50

Accepted Solution

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

Author Closing Comment

Your solution solved the issue for me. Spot on. Thanks alot!
0

## Featured Post

### Suggested Solutions

Detect file exist or not 3 37
Import csv files to MS SQL 5 35
Excel 2010 question 3 23
VBA Help TT V-1.1 15 22
I've recently been in need of an Excel macro that could add a letter before the text on multiple cells in an Excel document. My English is as it is, so I will try explain what it does diffrently. If you have an excel document with 2000 rows an…
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.