+ Reply to Thread
Results 1 to 10 of 10

How do I identify the number of days per month between 2 dates on Excel 2016 w/ a formula?

  1. #1
    Registered User
    Join Date
    12-19-2020
    Location
    Turkey
    MS-Off Ver
    2019
    Posts
    19

    How do I identify the number of days per month between 2 dates on Excel 2016 w/ a formula?

    Hello everyone!

    I am trying to identify the number of days per month between 2 specific dates which happen to not start and end in on the 1st and 31st of their respective months. For example, if the dates were 5/01/2023 and 17/03/2023, I would like to form a formula which would give me the results of 26 for January, 28 for February and 17 for March. I also need this to be a non-VBA solution.

    I have attached a sample spreadsheet of what I am trying to achieve below.

    Number of Days Worked per Month v2.xlsx

    Thank you so much for your help!
    Last edited by Allan91; 06-02-2023 at 08:09 AM.

  2. #2
    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,916

    Re: How do I identify the number of days per month between 2 dates on Excel 2016 w/ a form

    Please add some expected results to the sample workbook.
    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.

  3. #3
    Registered User
    Join Date
    12-19-2020
    Location
    Turkey
    MS-Off Ver
    2019
    Posts
    19

    Re: How do I identify the number of days per month between 2 dates on Excel 2016 w/ a form

    Do you mean, for example, fill in on of the rows? On each project, there are 2 dates - initiation and completion. I need to identify how many days per month there is going to be. The dates are due to change so if I could have the spreadsheet counting the number of days per month with a formula then I could dynamically change them when need be.

  4. #4
    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,916

    Re: How do I identify the number of days per month between 2 dates on Excel 2016 w/ a form

    I don't know what results you are expecting to see and where - I am asking you to add some that you have manually calculated to illustrate what you are aiming for.

  5. #5
    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,916

    Re: How do I identify the number of days per month between 2 dates on Excel 2016 w/ a form

    I had already seen the spreadsheet.

    Let me ask in a different way: where in the spreadsheet have you mocked up some of the results that you want to see? Because all you have given us is an empty table.

  6. #6
    Registered User
    Join Date
    12-19-2020
    Location
    Turkey
    MS-Off Ver
    2019
    Posts
    19

    Re: How do I identify the number of days per month between 2 dates on Excel 2016 w/ a form

    Hey Ali,

    Thank you for the explanation. I have changed the spreadsheet and added the results I would like to get manually. Please have a look now.

  7. #7
    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,916

    Re: How do I identify the number of days per month between 2 dates on Excel 2016 w/ a form

    Thank you.

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

    Re: How do I identify the number of days per month between 2 dates on Excel 2016 w/ a form

    Please try in C14 and copy down and right
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Note: This formula includes the Startdate and there are no weekends and holidays.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    12-19-2020
    Location
    Turkey
    MS-Off Ver
    2019
    Posts
    19

    Re: How do I identify the number of days per month between 2 dates on Excel 2016 w/ a form

    Thank you Hans. This works.

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

    Re: How do I identify the number of days per month between 2 dates on Excel 2016 w/ a form

    You are welcome, thanks for the feedback and rep .

+ 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. Calculate number of Days for a particular month from two dates
    By Basit78082 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-06-2020, 03:53 PM
  2. [SOLVED] Formula to Count The Number Of Work Days between dates and in in the fiscal month
    By LCalvert in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-30-2020, 05:26 PM
  3. [SOLVED] Formula to calculate the number of days between dates (month wise)
    By arun.sj in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-22-2019, 12:51 PM
  4. Looking for help with excel formula to determine number of days in a month
    By sallysebern in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-11-2017, 03:44 PM
  5. Number of Days in each month between two dates
    By marshymell0 in forum Excel General
    Replies: 11
    Last Post: 06-15-2015, 01:28 AM
  6. [SOLVED] Calculate number of days in a month between two dates
    By schlomo87 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-04-2014, 12:32 AM
  7. [SOLVED] A formula to calc total number of days elapsed between two dates within any given month
    By paul.a.evans in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-03-2014, 01:29 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