+ Reply to Thread
Results 1 to 10 of 10

Find how many Fridays in each month

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    10-03-2012
    Location
    USA
    MS-Off Ver
    2010
    Posts
    496

    Find how many Fridays in each month

    Hi,
    I have this file that was done by someone. It works if the year is 1900. This function shows in sheet2 (original)

    In line 2 of "Sheet2 (2)", B1 and A2, I change the year from 1900 to 2018. then B2:E2 prompt "#NUM!" error.

    In January there are 4 Fridays in 1/5, 1/12, 1/19. 1/26.

    Please advise
    Attached Files Attached Files
    Last edited by Rocky2013; 10-01-2018 at 01:22 AM.

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,179

    Re: Find how many Fridays in each month

    The formula for counting Fridays

    =NETWORKDAYS.INTL(B$1,EOMONTH(B$1,0),"1111011")
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    10-03-2012
    Location
    USA
    MS-Off Ver
    2010
    Posts
    496

    Re: Find how many Fridays in each month

    Quote Originally Posted by Phuocam View Post
    The formula for counting Fridays

    =NETWORKDAYS.INTL(B$1,EOMONTH(B$1,0),"1111011")
    It works. Thanks

  4. #4
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Find how many Fridays in each month

    Quote Originally Posted by Phuocam View Post
    The formula for counting Fridays

    =NETWORKDAYS.INTL(B$1,EOMONTH(B$1,0),"1111011")
    Perhaps =NETWORKDAYS.INTL(EOMONTH(B$1,-1)+1,EOMONTH(B$1,0),"1111011") would be a better suggestion, this will work with any date in B1, not just the 1st of the month.

  5. #5
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: Find how many Fridays in each month

    Hi, Apply the below formula in B2 and drag it down & across

    Formula: copy to clipboard
    =SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(B$1&":"&EOMONTH(B$1,0))),2)=MATCH($A2,{"Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"},0)))
    Click just below left if it helps, Boo?ath?

  6. #6
    Forum Contributor
    Join Date
    10-03-2012
    Location
    USA
    MS-Off Ver
    2010
    Posts
    496

    Re: Find how many Fridays in each month

    Quote Originally Posted by boopathiraja View Post
    Hi, Apply the below formula in B2 and drag it down & across

    Formula: copy to clipboard
    =SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(B$1&":"&EOMONTH(B$1,0))),2)=MATCH($A2,{"Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"},0)))
    Hi,
    There is an issue. The number of Fridays does not much the months (2018) in the calendar.

    Please advise.
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    10-03-2012
    Location
    USA
    MS-Off Ver
    2010
    Posts
    496

    Re: Find how many Fridays in each month

    Hi jason,
    Your formula gives incorrect numbers of Fridays. I copied the formula
    to B4, then to C4:M4. For example in March, there should ne 5 Fridays, but the formula
    gives 4 Fridays. Please see the comparison in row 6 and row 12 in the attachment.

    Thanks
    Attached Files Attached Files
    Last edited by Rocky2013; 09-30-2018 at 10:12 PM.

  8. #8
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,179

    Re: Find how many Fridays in each month

    See the attachment.
    Attached Files Attached Files
    Last edited by Phuocam; 10-01-2018 at 09:20 AM.

  9. #9
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Find how many Fridays in each month

    The formula is correct for the date in the attachment. March 2009 had 4 Fridays!

  10. #10
    Forum Contributor
    Join Date
    10-03-2012
    Location
    USA
    MS-Off Ver
    2010
    Posts
    496

    Re: Find how many Fridays in each month

    Quote Originally Posted by jason.b75 View Post
    The formula is correct for the date in the attachment. March 2009 had 4 Fridays!
    You are right. My mistake I did not check the month-year, rhe year should be 2018, not 2009. I change the years.
    Now it matches!

    Thanks

+ 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] A Formula Which Shows Second Fridays In The Month
    By zanshin777 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-28-2015, 01:37 PM
  2. [SOLVED] How do I find the number of Fridays in any given month
    By aresquare1 in forum Excel General
    Replies: 2
    Last Post: 11-14-2014, 10:36 AM
  3. Count the Number of Fridays in a Month
    By robert_shindorf in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-08-2014, 10:37 AM
  4. [SOLVED] Return the dates of all the mondays and fridays in a month
    By all4excel in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-28-2007, 07:20 AM
  5. how many Fridays in a specific month in Excel
    By Don Ray in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-08-2006, 11:45 PM
  6. [SOLVED] Calculating the number of Fridays in a month
    By Greg Ward in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-02-2005, 02:06 PM
  7. [SOLVED] Make an Excel series of first and third fridays of each month?
    By Elliot in forum Excel General
    Replies: 2
    Last Post: 01-16-2005, 11:17 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