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

Posted on 2011-05-02
Last Modified: 2012-06-21
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
Question by:Berry Metzger
    LVL 50

    Expert Comment


    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
    LVL 43

    Expert Comment

    by:Saqib Husain, Syed
    Using this formula works. You may have to change dd/mm/yy to mm/dd/yy

    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

    Author Closing Comment

    by:Berry Metzger
    Your solution solved the issue for me. Spot on. Thanks alot!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Suggested Solutions

    Title # Comments Views Activity
    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.

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    6 Experts available now in Live!

    Get 1:1 Help Now