+ Reply to Thread
Results 1 to 4 of 4

Concatening a text and a date

  1. #1
    Registered User
    Join Date
    07-19-2006
    Location
    Jamaica
    Posts
    86

    Concatening a text and a date

    Hi

    I'm having trouble concatenating a text string with a date:

    I cell a1 I have the date 03-may-06

    In a different cell I have the function:
    =CONCATENATE(" This date: ",a1)

    which returns:

    This date: 38840.

    I can't seem to find a function that converts the serial back to the date format that I entered.

    I could use =CONCATENATE("This date: ", DAY(A1),"/",MONTH(A1),"/",YEAR(A1))

    But that gives me
    This date: 3/5/2006

    I would prefer if the day was two digit and the month 3-letters.

    Anyone?

    /Møller
    Last edited by c991257; 07-19-2006 at 03:15 PM.

  2. #2
    Forum Contributor
    Join Date
    06-01-2006
    Posts
    324
    =CONCATENATE(" This date: ",TEXT(A1,"dd-mmm-yy"))
    Google is your best friend!

  3. #3
    Alan
    Guest

    Re: Concatening a text and a date

    Try with the date in A1,
    ="This Date: "&TEXT(A1,"dd-mmm-yy")
    Regards,
    Alan.
    "c991257" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi
    >
    > I'm having trouble concatenating a text string with a date:
    >
    > I cell a1 I have the date 03-may-06
    >
    > In a different cell I have the function:
    > =CONCATENATE(" This date: ",a1)
    >
    > which returns:
    >
    > This date: 38840.
    >
    > I can't seem to find a function that converts the serial back to the
    > date format that I entered.
    >
    > I could use =CONCATENATE("This date: ",
    > DATE(YEAR(A1),MONTH(A1),DAY(A1)))
    >
    > But that gives me
    > This date: 03/05/2006
    >
    > Anyone?
    >
    > /Møller
    >
    >
    > --
    > c991257
    > ------------------------------------------------------------------------
    > c991257's Profile:
    > http://www.excelforum.com/member.php...o&userid=36549
    > View this thread: http://www.excelforum.com/showthread...hreadid=563008
    >




  4. #4
    Registered User
    Join Date
    07-19-2006
    Location
    Jamaica
    Posts
    86

    Thumbs up

    Thanks

    /Møller

+ 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