+ Reply to Thread
Results 1 to 4 of 4

[SOLVED] CONCATENATE And Date Format

  1. #1
    Joseph Zuraski II
    Guest

    [SOLVED] CONCATENATE And Date Format

    I've always been doing formatting as =CONCATENATE(A4," - ",B4) where value is
    '12/20/2006 on A4 and '12/31/2006 on B4 (12/20/2006 - 12/31/2006 printed
    format).

    Without the ' on the formula it becomes numerical (39071 - 39082). Is there
    a way to make it read (12/20/2006 - 12/31/2006) without the ' symbols?

    Thanks,

    Joseph Zuraski II

  2. #2
    Gary''s Student
    Guest

    RE: CONCATENATE And Date Format

    By using a single quote (apostrophe), you are forcing a string rather than a
    real date.


    If you want to omit the single quote, then use the TEXT() function:

    =CONCATENATE(TEXT(A4,"m/d/yyyy")," - ",TEXT(B4,"m/d/yyyy"))
    --
    Gary's Student


    "Joseph Zuraski II" wrote:

    > I've always been doing formatting as =CONCATENATE(A4," - ",B4) where value is
    > '12/20/2006 on A4 and '12/31/2006 on B4 (12/20/2006 - 12/31/2006 printed
    > format).
    >
    > Without the ' on the formula it becomes numerical (39071 - 39082). Is there
    > a way to make it read (12/20/2006 - 12/31/2006) without the ' symbols?
    >
    > Thanks,
    >
    > Joseph Zuraski II


  3. #3
    Valued Forum Contributor
    Join Date
    03-25-2004
    Location
    Boston, MA US
    Posts
    1,094
    Joseph,

    =CONCATENATE(TEXT(A4,"mm/dd/yyyy")," - ",TEXT(B4,"mm/dd/yyyy"))

    Cheers,

    Steve

  4. #4
    CLR
    Guest

    RE: CONCATENATE And Date Format

    =TEXT(A1,"mm/dd/yyyy")&" - "&TEXT(B1,"mm/dd/yyyy")

    Vaya con Dios,
    Chuck, CABGx3



    "Joseph Zuraski II" wrote:

    > I've always been doing formatting as =CONCATENATE(A4," - ",B4) where value is
    > '12/20/2006 on A4 and '12/31/2006 on B4 (12/20/2006 - 12/31/2006 printed
    > format).
    >
    > Without the ' on the formula it becomes numerical (39071 - 39082). Is there
    > a way to make it read (12/20/2006 - 12/31/2006) without the ' symbols?
    >
    > Thanks,
    >
    > Joseph Zuraski II


+ 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