+ Reply to Thread
Results 1 to 4 of 4

Display all dates for given month

  1. #1
    Registered User
    Join Date
    10-29-2010
    Location
    Oud-Turnhout, Belgium
    MS-Off Ver
    Excel 2003
    Posts
    5

    Display all dates for given month

    Hi,

    I'm looking for a formula,

    Given
    cell B1: MONTH (ex. October)
    cell C1: YEAR (ex. 2010)

    Example Solution,
    Cell B5: 01-Oct-2010
    Cell B6: 02-Oct-2010
    Cell B7: 03-Oct-2010
    ...
    Cell B33: 29-Oct-2010
    Cell B34: 30-Oct-2010
    Cell B35: 31-Oct-2010

    Remark
    When the given month doesn't has 31 days it should give me in cell B35 Blank.
    When the given month doesn't has 30 days it should give me in cell B34 Blank as well. (ex february).
    When the given month doesn't has 29 days it should give me in cell B33 Blank as well. (ex february).

    So if in example the given month is November, it should only give me the dates until cell B34 with 30-Nov-2010 and a blank field in B35.


    Is there any way to fix this?

    Looking forward to hear from you!

    Thanks.

    Best regards,

    G

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: formula needed wich displays all dates for a givin month?

    Try this formula in B5

    =IF(ISERR((ROWS(B$5:B5)&B$1&C$1)+0),"",(ROWS(B$5:B5)&B$1&C$1)+0)

    format in required date format and copy down to B35
    Audere est facere

  3. #3
    Registered User
    Join Date
    10-29-2010
    Location
    Oud-Turnhout, Belgium
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: formula needed wich displays all dates for a givin month?

    Thanks! It worked

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: formula needed wich displays all dates for a givin month?

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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