+ Reply to Thread
Results 1 to 7 of 7

Excel 2016 List Workdays For Year

  1. #1
    Registered User
    Join Date
    01-31-2012
    Location
    Georgia, USA
    MS-Off Ver
    Excel 2016
    Posts
    14

    Excel 2016 List Workdays For Year

    I am using Excel 2016 and when using the formula "=WORKDAY(A2,1,$D$2:$D$14)" to list all workdays in year for date specified in cell A2. When I drag fill the formula past the last workday of the year in A2 in goes into the next year. Is there a way to drag fill the formula down past the last day of year in A2 and it not display the next year instead the cell will be blank? Thanks for your help, Frankie
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    82,856

    Re: Excel 2016 List Workdays For Year

    Try this:

    =IFERROR(IF(WORKDAY(A2,1,$D$2:$D$14)>=EDATE(A$2,12),"",WORKDAY(A2,1,$D$2:$D$14)),"")
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,318

    Re: Excel 2016 List Workdays For Year

    I suspect your saying dragging the formula down in B2. You could test for the year of A2.

    =IF(YEAR($A$2)=YEAR(A2),WORKDAY(A2,1,$D$2:$D$14),"")
    HTH
    Regards, Jeff

  4. #4
    Registered User
    Join Date
    01-31-2012
    Location
    Georgia, USA
    MS-Off Ver
    Excel 2016
    Posts
    14

    Re: Excel 2016 List Workdays For Year

    Thank you. Your formula worked like I needed. Thanks.

  5. #5
    Registered User
    Join Date
    01-31-2012
    Location
    Georgia, USA
    MS-Off Ver
    Excel 2016
    Posts
    14

    Re: Excel 2016 List Workdays For Year

    jeffreybrown thanks for your reply. When I drag fill your formula down in column b the first days of the following year is displayed.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2407 (Windows 11 23H2 64-bit)
    Posts
    82,856

    Re: Excel 2016 List Workdays For Year

    Glad to have helped.

    If you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

  7. #7
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,465

    Re: Excel 2016 List Workdays For Year

    This formula returns all workdays in a single cell formula in one go: (No copy down needed):

    Please try and confirm the formula with Ctrl+Shift+Enter:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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] Excel 2016 get data from SQL based on a year input
    By docGee in forum Excel General
    Replies: 17
    Last Post: 03-05-2023, 09:54 PM
  2. How to find duplicates and list them separately using VBA in Excel 2016
    By Orlando565 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 07-25-2019, 03:14 PM
  3. Replies: 1
    Last Post: 09-18-2017, 08:27 AM
  4. Pinned list in Excel 2016
    By dd_uk in forum Excel General
    Replies: 0
    Last Post: 11-24-2015, 02:29 AM
  5. Excel 2016 pinned list
    By dd_uk in forum Excel General
    Replies: 0
    Last Post: 11-23-2015, 06:07 PM
  6. Input Year and Quarter and receive workdays
    By tracer773 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-16-2014, 06:26 AM
  7. [SOLVED] Excel 2010: make a list of specific months workdays
    By M0seS in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-16-2012, 05:33 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