+ Reply to Thread
Results 1 to 12 of 12

Turning weekends into weekdays?

  1. #1
    Registered User
    Join Date
    09-13-2013
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    4

    Turning weekends into weekdays?

    How do I make Excel skip weekends? Here's what I mean:

    I have a column in Excel with dates such as:

    Oct 10
    Oct 11
    Oct 12
    Oct 13

    Oct 12 is a Saturday and I'd like Excel to automatically turn all Saturdays and Sundays into the following Monday. So here, I'd like Excel to automatically turn Oct 12 (which is a Sunday) into Oct 14 (which is the following Monday).

    How can I do this?

    Thanks

  2. #2
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: Turning weekends into weekdays?

    Hi,

    This can be done by making use of the WEEKDAY function that is built into Excel. A Saturday will return a weekday of 7, and a Sunday will return a weekday of 1.

    Take a look at my attachment. The formula is in column B. Cell B2 has a different formula to get the list started, but cells B3 and down all have a consistent formula.

    Hope this helps
    Attached Files Attached Files

  3. #3
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Turning weekends into weekdays?

    If your data is really date, and formatted as mmm-dd..
    you can simply select the top cell..
    in the right bottom cornet, Fill handle series, a black point.
    select it with right click.. and drag downward.. without leaving the mouse button..

    after leaving right click.. select "Fill Workdays"
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  4. #4
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: Turning weekends into weekdays?

    Hi again,

    I have just uploaded a version of my workbook that is compatible with your version of Excel.

    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-13-2013
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Turning weekends into weekdays?

    Thanks ajryan88.

    I need Saturdays and Sundays to turn into the following Monday.

    In your workbook, Oct 12, which is a Sat, correctly turned into Oct 14, which is the following Mon.

    However, Oct 13 turned into Oct 15, which is the following Tues.

    Also, Oct 14, which is a Monday, should have remained Oct 14.

    I only want Excel to automatically turn all Saturdays & Sundays into the following Monday. All other days need to remain the same.

    Is this possible?

    Thanks a million!

  6. #6
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Turning weekends into weekdays?

    so you want mon tue wed thur fri mon mon mon tue wed thur fri mon mon mon
    dates starting in a1
    then in b1
    =IF(WEEKDAY(A1)=1,A1+1,IF(WEEKDAY(A1)=7,A1+2,A1))
    or
    =A1+LOOKUP(WEEKDAY(A1,2),{0,6,7},{0,2,1})
    Last edited by martindwilson; 09-15-2013 at 11:33 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  7. #7
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Turning weekends into weekdays?

    If you have Analysis ToolPak installed you can use WORKDAY function

    =WORKDAY(A1-1,1)
    Audere est facere

  8. #8
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: Turning weekends into weekdays?

    Sorry about my misunderstanding. Use this formula bobing:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Hope this helps

  9. #9
    Registered User
    Join Date
    09-13-2013
    Location
    london, england
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Turning weekends into weekdays?

    Guys, thanks very much. I tried both daddylonglegs and ajryan88 solutions and they both worked.

    One last thing I would like to exclude (along with the weekends) is holidays.

    How can I exclude holidays while also excluding the weekends?

    If I should start another thread for this, please let me know.

    You guys are a life saver for an Excel neophyte like me. Thanks.

  10. #10
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: Turning weekends into weekdays?

    Unfortunately, I don't think there is a built-in way to avoid holidays...

  11. #11
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Turning weekends into weekdays?

    Hi bobling..

    I have little doubt "Workday" function is available with analysis pack in Excel 2003, but guessing YES..
    try this..

    In A1 give your first date manually.. and in A2 use formula as ..

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    where HolidayList is named range or something like J1:j10 list of all dates of your region wise holiday dates..

  12. #12
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Turning weekends into weekdays?

    what do you meen by holidays? when do you want them to move to? fri to mondays? what if xmas day and boxing day on tues and wed? so both those move to thursday
    then you need
    =WORKDAY(A1-1,1,$E$1:$E$10) where e1:e10 hold the holiday dates
    to activate the analysis toolpak in excel 2003
    Open Excel
    then "Tools" menu. Click on "Add-Ins."
    Select the check box next to Analysis ToolPak under "Add-Ins."
    Click "OK."

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Seperate Weekdays/Weekends and Pull Data
    By cdc2787 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-14-2012, 04:20 PM
  2. WEEKENDS VS. WEEKDAYS
    By TLAngelo in forum Excel General
    Replies: 0
    Last Post: 07-10-2006, 02:04 PM
  3. WEEKENDS VS. WEEKDAYS
    By TLAngelo in forum Excel General
    Replies: 7
    Last Post: 05-12-2006, 12:35 PM
  4. IF statement with Weekends vs. weekdays
    By edwardpestian in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-07-2006, 04:13 PM
  5. [SOLVED] chart only weekdays when data set includes weekends?
    By [email protected] in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 08-17-2005, 10:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1