+ Reply to Thread
Results 1 to 7 of 7

No of days in Month excluding Sundays

  1. #1
    Forum Contributor
    Join Date
    11-10-2019
    Location
    India
    MS-Off Ver
    2013
    Posts
    350

    No of days in Month excluding Sundays

    Hello

    I need to know how many days in month and year excluding Sundays.

    Month is formatted as mmm-yy

    Example Jan-23 has 31 days and has 5 sundays so the result should be 26

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: No of days in Month excluding Sundays

    Try

    =SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(A1& ":" &A2)),2)<7))

    A1=01/01/2023

    A2=31/01/2023
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

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

    Re: No of days in Month excluding Sundays

    Another option:

    if A1 contains the first day of the month: (format does not matter), please try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by HansDouwe; 01-07-2023 at 05:53 AM.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: No of days in Month excluding Sundays

    Or with ANY date in the month in question:

    =NETWORKDAYS.INTL(A1,EOMONTH(A1,0),"1111110")

    Edit: I was away doing other stuff and forgot to refresh. This is identical to HD's... in BOTH cases it does NOT have to be the 1st of the month
    Last edited by Glenn Kennedy; 01-07-2023 at 06:10 AM.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

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

    Re: No of days in Month excluding Sundays

    in BOTH cases it does NOT have to be the 1st of the month
    if A1 is NOT the first of the month our formula counts too little days!

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: No of days in Month excluding Sundays

    LoL. Not enough coffee (no coffee...) today!! You're right.

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

    Re: No of days in Month excluding Sundays

    I see your problem has been solved. I'm curious how.
    Have you benefited from any of our contributions? Should that be so, Glad to have helped.

    Please consider adding reputation to all helpers, who you think they deserved because of the help provided.
    If you want to, please click *Add reputation at the bottom left of their answers.

+ 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] No of days in a Month excluding Sundays
    By grcshekar in forum Excel General
    Replies: 10
    Last Post: 04-13-2020, 12:43 PM
  2. Counting number of days excluding sundays
    By Don Adeks in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-05-2018, 05:22 PM
  3. How to count days with excluding Sundays and split by month in one?
    By Efendi in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-24-2016, 08:32 AM
  4. To calculate number of days excluding sundays
    By palani_k15 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-22-2014, 09:02 AM
  5. Replies: 5
    Last Post: 12-11-2012, 01:20 AM
  6. counting days excluding saturdays and sundays
    By p_dhoke in forum Excel General
    Replies: 2
    Last Post: 04-24-2007, 04:34 AM
  7. [SOLVED] Excel - list days of a month, excluding Sundays
    By John in forum Excel General
    Replies: 1
    Last Post: 01-03-2006, 12:50 PM

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