+ Reply to Thread
Results 1 to 8 of 8

How many Saturday and Sundays ?

  1. #1
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2019 PRO
    Posts
    3,616

    How many Saturday and Sundays ?

    Assume cell a1 has a date e.g. 01/08/2014
    Assume cell a1 has a date e.g. 31/12/2014

    What is the formula on a3 to find out how many
    weekends are there i.e. saturday and sunday ?

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: How many Saturday and Sundays ?

    =WEEKNUM(b1)-WEEKNUM(a1)
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: How many Saturday and Sundays ?

    =INT(A2-A1-NETWORKDAYS(A1,A2))

    Used Int() to set the cell formatting to general instead of changing as date.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: How many Saturday and Sundays ?

    or this

    =ABS(NETWORKDAYS(A1,A2)-(A2-A1))

    Format cell as General
    Last edited by AlKey; 07-16-2014 at 10:19 AM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: How many Saturday and Sundays ?

    If you're using Excel 2010 or later:

    A1 = start date
    B1 = end date

    To count how many Saturdays and Sundays within the date range (inclusive):

    =NETWORKDAYS.INTL(A1,B1,"1111100")
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  6. #6
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2019 PRO
    Posts
    3,616

    Re: How many Saturday and Sundays ?

    Thanks i took that of nathansav , shorter

    Sixthsense I will collection yours too , glad
    to tell you I am still using you branch stocking
    formula till date

    You had corrected it if you recall for the prior
    formula that had too many loops into one formula
    Last edited by makinmomb; 07-16-2014 at 10:29 AM. Reason: credit to sixthsense

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: How many Saturday and Sundays ?

    Apparently I misunderstood the question.

  8. #8
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2019 PRO
    Posts
    3,616

    Re: How many Saturday and Sundays ?

    Though I should start a next thread for this ,
    but it would be too short ,

    Also looking for how many Fridays between
    two range of dates

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: How many Saturday and Sundays ?

    Quote Originally Posted by makinmomb View Post

    Also looking for how many Fridays between
    two range of dates
    Try one of these...

    In Excel 2010 or later:

    A1 = start date
    B1 = end date

    =NETWORKDAYS.INTL(A1,B1,"1111011")

    This one will work in every version of Excel:

    =INT((WEEKDAY(A1-5,2)+B1-A1)/7)

+ 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. Replies: 5
    Last Post: 12-11-2012, 01:20 AM
  2. Excel 2007 : Formula WITHOUT Sundays?
    By elizabeth.anderberg in forum Excel General
    Replies: 4
    Last Post: 11-16-2011, 12:19 PM
  3. # of Sundays in a year
    By lsmft in forum Excel General
    Replies: 18
    Last Post: 04-27-2006, 09:30 AM
  4. No Sat & Sundays
    By lsmft in forum Excel General
    Replies: 5
    Last Post: 04-12-2006, 01:00 PM
  5. [SOLVED] Cell colour chg when formula results equal a weekend day, i.e., "Saturday" and a date that falls on a Saturday?
    By StargateFanFromWork in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-19-2005, 08:15 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