+ Reply to Thread
Results 1 to 3 of 3

How do I find the number of Fridays in any given month

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    04-15-2008
    Location
    Texas, USA
    MS-Off Ver
    M365 Excel Version 2210
    Posts
    216

    How do I find the number of Fridays in any given month

    My revenue for a given month depends on how many payrolls occur in that month. So, when a month has 5 Fridays, it has more revenue than the months with only 4 Fridays. Can someone help me calculate how many Friday's are in any given month?

    Thanks for your help.
    RR

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How do I find the number of Fridays in any given month

    Try

    Formula: copy to clipboard
    =INT((WEEKDAY(A1-6)-A1+a2)/7)


    a1=start date

    a2=end date
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: How do I find the number of Fridays in any given month

    Assuming you have first date of a month in A1 (like 1/11/2014), then you may try this to find the total number of Fridays in that month.
    =SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(A1&":"&EOMONTH(A1,0))))=6))
    Or assuming you have any date of a month in A1 (like 17/11/2014 etc.), then you may try this.....
    =SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(DATE(YEAR(TODAY()),MONTH(A2),1)&":"&EOMONTH(DATE(YEAR(TODAY()),MONTH(A2),1),0))))=6))
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

+ 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. 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
  2. [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
  3. 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
  4. [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
  5. 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