+ Reply to Thread
Results 1 to 10 of 10

Total Days per month

  1. #1
    Registered User
    Join Date
    07-26-2020
    Location
    london
    MS-Off Ver
    365
    Posts
    4

    Total Days per month

    Hi,

    Hopefully someone can help. I have a data set with date range (from to To date) and i needed to know a formula which can tell how many days fall for each month

    i was looking for formula to give me total for every month as in highlighted yellow section. sorry if i am not able to explain properly

    Capture.JPG
    Attached Files Attached Files

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475

    Re: Total Days per month

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

    Custom format the cell to dd
    -----------------
    2022-06-19_9-19-53.jpg

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Total Days per month

    @Dave

    I don't think that's what the OP wants. The expected results are in cells H2 to S5, I believe.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Registered User
    Join Date
    07-26-2020
    Location
    london
    MS-Off Ver
    365
    Posts
    4

    Re: Total Days per month

    AliGW - Hi, yes you are right that is what i am looking for. Thanks

  5. #5
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475

    Re: Total Days per month

    Oh, I am thinking the OP wants to calculate how many days are in a month so he can calculate the days remaining for the job(F:F) for the next month.

  6. #6
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,781

    Re: Total Days per month

    H2=IFERROR(SUMPRODUCT(--(MONTH(ROW(INDIRECT($D2&":"&$E2)))=MONTH(H$1))),"")

    Copy across and down

    1/9/2022 to 2/5/2022 days 28 not 27

  7. #7
    Registered User
    Join Date
    07-26-2020
    Location
    london
    MS-Off Ver
    365
    Posts
    4

    Re: Total Days per month

    CARACALLA - Thank You, much appreciated.

  8. #8
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,039

    Re: Total Days per month

    Try this H2=MAX(0,MIN(EOMONTH(H$1,0),$E2)-MAX(H$1,$D2))+IF(AND(H$1>EOMONTH($D2,0),H$1<=$E2),1,0)< copy across and down.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    07-26-2020
    Location
    london
    MS-Off Ver
    365
    Posts
    4

    Re: Total Days per month

    josephteh - Thank You

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Total Days per month

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

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

+ 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] Average total by no. of days in a month excluding weekends
    By ibrmoh in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-14-2020, 04:52 PM
  2. Add extra days off if employee work Sat and Sun on a month > Total
    By topmayra in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-16-2018, 12:50 PM
  3. [SOLVED] Calculate Uptime in Days within the constraint of Total Days in Each Month
    By jchungerford in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 04-29-2017, 06:54 PM
  4. [SOLVED] How to calculate Year, Month and Day from total number of days?
    By Indra Rai in forum Excel General
    Replies: 4
    Last Post: 06-25-2014, 02:08 PM
  5. [SOLVED] Month convert into total days
    By michael_2013 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-23-2013, 07:43 AM
  6. Total # of project days in a month, excluding overlap
    By areichgott in forum Excel General
    Replies: 0
    Last Post: 11-30-2012, 03:17 PM
  7. [SOLVED] Formula which includes total days in the month, 30 or 31?
    By essee in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-21-2012, 06:44 AM

Tags for this Thread

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