+ Reply to Thread
Results 1 to 10 of 10

include dates excluding weekdays Friday and Saturday

  1. #1
    Forum Contributor
    Join Date
    02-12-2014
    Location
    al ain
    MS-Off Ver
    Excel 2016
    Posts
    149

    Cool include dates excluding weekdays Friday and Saturday

    Hi All,
    How can I pull dates in ColumnA from 15/02/2017 to 20/5/2017 excluding Fridays and Saturdays dates...
    Thank you

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,895

    Re: include dates excluding weekdays Friday and Saturday

    Assume your data is in column A. In B = weekday(A1) and copy down. Then using the built in Filter, exclude 6 and 7 from the criteria.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: include dates excluding weekdays Friday and Saturday

    hi there. another way is to use an array formula.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Attached Files Attached Files

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Forum Contributor
    Join Date
    02-12-2014
    Location
    al ain
    MS-Off Ver
    Excel 2016
    Posts
    149

    Re: include dates excluding weekdays Friday and Saturday

    that's not I wanted.. e.g. If I type date 15/2/2017 and drag it down till I reach 20/5/2017. I want all dates excluding the dates of Fridays and Saturdays... there is builtin auto fill option and works good but that excludes Saturdays and Sundays.. I want the exact thing but want to exclude Fridays and Saturdays..

  5. #5
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: include dates excluding weekdays Friday and Saturday

    Assume you have B2 having start date and B3 having end date try

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


    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Row\Col
    A
    B
    C
    D
    2
    15.02.2017
    15.02.2017
    StartDate Wed
    3
    16.02.2017
    20.05.2017
    EndDate Thu
    4
    19.02.2017
    Sun
    5
    20.02.2017
    Mon
    6
    21.02.2017
    Tue
    7
    22.02.2017
    Wed
    8
    23.02.2017
    Thu
    9
    26.02.2017
    Sun
    10
    27.02.2017
    Mon
    11
    28.02.2017
    Tue
    12
    01.03.2017
    Wed
    13
    02.03.2017
    Thu
    Last edited by shukla.ankur281190; 11-20-2017 at 01:26 AM.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  6. #6
    Forum Contributor
    Join Date
    02-12-2014
    Location
    al ain
    MS-Off Ver
    Excel 2016
    Posts
    149

    Re: include dates excluding weekdays Friday and Saturday

    O Thank you!! That's what I wanted.. Is there a way to edit builtin Auto fill option and replace Fridays and Saturdays..?

  7. #7
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: include dates excluding weekdays Friday and Saturday

    Which post helps you? and whom you are addressing ?

  8. #8
    Forum Contributor
    Join Date
    02-12-2014
    Location
    al ain
    MS-Off Ver
    Excel 2016
    Posts
    149

    Re: include dates excluding weekdays Friday and Saturday

    Mr. shukla.ankur281190 post helps me.. and I am addressing the same guy.. Thank you so much for the help.!!

  9. #9
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: include dates excluding weekdays Friday and Saturday

    For date may be it can not possible but You can create custom list for creating custom days list

    Press Alt-A-S-S-Order drop down->choose custom list->put new custom list for arranging days months or any kind of information as you required.

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

    Re: include dates excluding weekdays Friday and Saturday

    Try putting first date in A2 and then this formula in A3 dragged down

    =WORKDAY(A2+1,1)-1
    Audere est facere

+ 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. [SOLVED] Count days between 2 dates excluding Friday
    By Axmed.cm in forum Excel Formulas & Functions
    Replies: 22
    Last Post: 12-22-2016, 02:41 PM
  2. Find previous Saturday and next friday dates given a date
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 08-31-2016, 08:48 AM
  3. [SOLVED] Dates in Excel - If Saturday or Sunday, return Friday's date
    By gjrr4x1 in forum Excel General
    Replies: 6
    Last Post: 02-12-2015, 02:56 PM
  4. Replies: 4
    Last Post: 01-06-2014, 09:48 PM
  5. Excel Formula to calculate working hours between two dates excluding weekdays with wh
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-28-2013, 11:20 AM
  6. Weekdays + Saturday Calculating
    By Gary A.MacDonald in forum Excel General
    Replies: 2
    Last Post: 07-11-2012, 02:20 PM
  7. How to count all dates in column A using last friday and and next friday friday
    By rain4u in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-16-2011, 04:33 PM

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