+ Reply to Thread
Results 1 to 5 of 5

How to Extract days in a given month from a given period?

  1. #1
    Registered User
    Join Date
    06-25-2022
    Location
    Norway
    MS-Off Ver
    M365
    Posts
    2

    How to Extract days in a given month from a given period?

    I am trying to make a table that can tell me how many of the days in a given period is in any given month. In D1 it should be possible to switch between the different months.

    Any suggestions?

    M365

    Dager.png
    Attached Files Attached Files
    Last edited by 6StringJazzer; 06-25-2022 at 03:59 PM. Reason: cleaned up title

  2. #2
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: How to Extract days in a given mont from a given periode?

    Hi,
    maybe like that?

    put in C1/C2 the first day/last day of the required month.

    D2:
    =MIN(C2,$D$1)-MAX(B2,$C$1)+1
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    06-25-2022
    Location
    Norway
    MS-Off Ver
    M365
    Posts
    2

    Re: How to Extract days in a given mont from a given periode?

    Quote Originally Posted by belinda200 View Post
    Hi,
    maybe like that?

    put in C1/C2 the first day/last day of the required month.

    D2:
    =MIN(C2,$D$1)-MAX(B2,$C$1)+1
    As simple as that..
    Thanks! I've been trying to figure this out for three days.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,720

    Re: How to Extract days in a given month from a given period?

    If your question has been answered please mark your thread as "Solved" so that members will know by looking at the thread title that your problem is solved. Go to the menu immediately above your first post to the thread and click on Thread Tools. From the dropdown menu select "Mark this thread as solved..."

    If a member helped you solve your problem, consider adding to their reputation by clicking addreputationiconsmall.jpg below their name.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  5. #5
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: How to Extract days in a given month from a given period?

    you're welcome Treklogg : )

+ 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: 2
    Last Post: 09-18-2022, 06:00 PM
  2. subtract a periode with another period(DATEDIF)
    By Habiler in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-30-2020, 06:11 PM
  3. [SOLVED] Change Macro for trial periode in excel sheet
    By abjac in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-19-2015, 06:32 PM
  4. [SOLVED] Calculate value in spesific time periode
    By tonny_hartono in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-20-2013, 04:29 PM
  5. VBA copie coller de donn嶪s sous condition de p廨iode
    By demahom08 in forum Non English Excel
    Replies: 2
    Last Post: 04-08-2013, 07:48 AM
  6. [SOLVED] Age with mont in decimal
    By UPRAYUP in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 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