+ Reply to Thread
Results 1 to 3 of 3

Automatically get all the dates of a month, entering specific year and month

  1. #1
    Registered User
    Join Date
    11-17-2010
    Location
    Patras, Greece
    MS-Off Ver
    Excel 2003
    Posts
    11

    Automatically get all the dates of a month, entering specific year and month

    In a sheet I enter the following:
    ... in A1 a year (say 2012)
    ... in A2 a month, formatting as "MMM" (JAN, FEB, MAR etc.)

    How to automatically get in column A (say from A3) all the dates of the month entered, formatting as "D/M/YYYY" (e.g. 1/1/2012, 2/1/2012/ 3/1/2012, etc.)?
    Thanks in advance

  2. #2
    Forum Contributor dogberry's Avatar
    Join Date
    07-15-2012
    Location
    Wales, UK
    MS-Off Ver
    Excel 2010
    Posts
    624

    Re: Automatically get all the dates of a month, entering specific year and month

    Hi

    Never used your version but if it has autofil use that

    Chris
    Click my star if I helped Thanks

  3. #3
    Forum Guru Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Automatically get all the dates of a month, entering specific year and month

    Someone could come up with a shorter formula

    In A3
    Please Login or Register  to view this content.
    Copy down
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,142

    Re: Automatically get all the dates of a month, entering specific year and month

    hi agios59, try:
    =DATEVALUE(ROW(1:1)&$A$2&$A$1)

    or if you need to show blanks when any months is less than 31 days:
    =IF(DAY(DATE($A$1,MONTH(DATEVALUE($A$2&$A$1))+1,0))<ROW(1:1),"",DATEVALUE(ROW(1:1)&$A$2&$A$1))
    Last edited by benishiryo; 12-02-2012 at 01:21 AM. Reason: thread not updated

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

+ 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