+ Reply to Thread
Results 1 to 10 of 10

Count the number of Saturdays that have passed in a month so far

  1. #1
    Forum Contributor
    Join Date
    02-09-2007
    Location
    UK
    MS-Off Ver
    2019 & 365
    Posts
    304

    Count the number of Saturdays that have passed in a month so far

    Morning All,

    The month start date is in cell D1

    I need a formula that will calculate the number of Saturdays that have passed so far in the month based on todays date.

    I have worked out the one to get weekdays but not Saturdays!

    =NETWORKDAYS(D1,TODAY()-1)

    Thanks in advance
    Last edited by Badvgood; 03-14-2014 at 05:59 AM.

  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: Count the number of Saturdays that have passed in a month so far

    Good morning to you too.

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


    Assuming that your system counts Saturday as the 7th day of the week.
    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 Contributor
    Join Date
    02-09-2007
    Location
    UK
    MS-Off Ver
    2019 & 365
    Posts
    304

    Re: Count the number of Saturdays that have passed in a month so far

    Thanks for the prompt reply.

    It does not seem to like that...

    error.jpg

  4. #4
    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: Count the number of Saturdays that have passed in a month so far

    Pictures are nice but workbooks are better!!
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    02-09-2007
    Location
    UK
    MS-Off Ver
    2019 & 365
    Posts
    304

    Re: Count the number of Saturdays that have passed in a month so far

    Perfect, thank you. Duly noted about pictures and workbooks.

  6. #6
    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: Count the number of Saturdays that have passed in a month so far

    You are welcome and thanks for the feedback & rep.

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

    Re: Count the number of Saturdays that have passed in a month so far

    Quote Originally Posted by Fotis1991 View Post
    =INT((TODAY()-(D1 + INDEX({6\5\4\3\2\1\0},WEEKDAY(D1,2))) + 1)/7) + 1
    Does this work? If I put last Sunday's date in D1, then because today is Friday I expect the answer 0 because there are no Saturdays in that range, but I get 1

    I'd use this formula

    =INT((WEEKDAY(D1)+TODAY()-D1)/7)
    Audere est facere

  8. #8
    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: Count the number of Saturdays that have passed in a month so far

    Quote Originally Posted by daddylonglegs View Post
    Does this work? If I put last Sunday's date in D1, then because today is Friday I expect the answer 0 because there are no Saturdays in that range, but I get 1
    But i think the question was for something else.

    The month start date is in cell D1

    I need a formula that will calculate the number of Saturdays that have passed so far in the month based on todays date.
    Unless my English are so bad..and Op just thought that got the correct answer!!

  9. #9
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,699

    Re: Count the number of Saturdays that have passed in a month so far

    Quote Originally Posted by Fotis1991 View Post
    But i think the question was for something else.
    OK, but in the workbook you posted D1 has a date and isn't the formula supposed to calculate the number of Saturdays from that date until today? Counting Saturdays from the start of the month until today would just be a specific example of that.

    If today is 14th June 2014 and D1 contains the 1st of that month, 1-Jun-2014, then your suggested formula gives the result 3......but there are only 2 Saturdays in that range

  10. #10
    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: Count the number of Saturdays that have passed in a month so far

    Quote Originally Posted by daddylonglegs View Post
    OK, but in the workbook you posted D1 has a date and isn't the formula supposed to calculate the number of Saturdays from that date until today? Counting Saturdays from the start of the month until today would just be a specific example of that.
    Exactly. In my Example D1 has the date 01/01/2014 and result as 11, using the formula that i suggested.I tested also using 01/02/2014 and 01/03/2014 and posted it.

    Of course you are correct with your example of 14/06/2014.

+ 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] populating current month Saturdays dates vba
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-27-2014, 06:52 AM
  2. [SOLVED] Workdays / Saturdays / Sundays in a Month
    By JcOrlando in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-03-2014, 12:59 AM
  3. [SOLVED] Count no of Saturdays within a given period
    By prashantha in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-19-2013, 06:21 AM
  4. Count number of networkdays for each month in a multi month period
    By dreddster in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-10-2013, 11:12 AM
  5. Replies: 4
    Last Post: 02-24-2012, 08:12 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