+ Reply to Thread
Results 1 to 6 of 6

Date generation

  1. #1
    Registered User
    Join Date
    03-02-2011
    Location
    Swiss
    MS-Off Ver
    Excel 2007
    Posts
    49

    Question Date generation

    Hi everybody

    I am trying to prepare an excel where if I select date, month, year from 'drop down' in 3 different cell
    A2- Date
    B2-Month
    C2-Year
    I want that full date (dd mmm, yyyy) to be generated in another cell.
    D2- dd mmm yyyy

    Thanks in advance for your assistance

    Regards,
    Tanza

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Date generation

    see the DATE function (or translated equiv. pending local version)

    Please Login or Register  to view this content.
    Format D2 as dd mmm, yyyy

    If you want the above as a literal string then apply outer TEXT

    Please Login or Register  to view this content.
    Generally better to store dates as dates (ie number) however

  3. #3
    Valued Forum Contributor tlafferty's Avatar
    Join Date
    04-08-2011
    Location
    United States, Tacoma, WA
    MS-Off Ver
    Excel 2010, Excel 2013 Customer Preview
    Posts
    1,112

    Re: Date generation

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    03-02-2011
    Location
    Swiss
    MS-Off Ver
    Excel 2007
    Posts
    49

    Re: Date generation

    I tried the formula. It is working. Thanks a lot.

    Best regards,
    Tanza

  5. #5
    Registered User
    Join Date
    03-02-2011
    Location
    Swiss
    MS-Off Ver
    Excel 2007
    Posts
    49

    Re: Date generation

    Hi,

    I need one more help in that formula.

    Thanks
    Tanza
    Last edited by Tanza; 04-23-2011 at 08:09 AM.

  6. #6
    Registered User
    Join Date
    03-02-2011
    Location
    Swiss
    MS-Off Ver
    Excel 2007
    Posts
    49

    Re: Date generation

    Quote Originally Posted by DonkeyOte View Post
    see the DATE function (or translated equiv. pending local version)

    Please Login or Register  to view this content.
    Format D2 as dd mmm, yyyy

    If you want the above as a literal string then apply outer TEXT

    Please Login or Register  to view this content.
    Generally better to store dates as dates (ie number) however
    Hi,
    In my excel day, month, year to be selected from dropdown list (cell A2, B2, C2)
    In D2 the total date will be generated in dd-mmm-yyyy format
    I applied formula
    =TEXT(DATE(C2,B2,C2),"dd mmm, yyyy")
    Its working fine.
    But if by mistake i select any date like 31 april 2011, in D2 the date refelecting 01 May 2011 because April is 30 days.
    Is there anyway I can turn it to blank when I select a day which is not available in that month. Lets say 31 Feb

    Thank you
    Tanza

+ 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