+ Reply to Thread
Results 1 to 3 of 3

Combining cells, keeping date format.

  1. #1
    Registered User
    Join Date
    02-19-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    1

    Combining cells, keeping date format.

    So, I'm trying to combine two cells with dates in them. The format from microsoft suggests this: =(A1&" - "&B1)

    However, when you put dates in there it moves from something like 1/2/2010 & 2/1/2010 it gives you something along the lines of 40180 - 40210. How do I get it to keep the format for the dates in the referenced cells?

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,718

    Re: Combining cells, keeping date format.

    Try this:

    =TEXT(A1,"m/d/yyyy")&" - "&TEXT(B1,"m/d/yyyy")
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    02-26-2016
    Location
    Dublin.Ireland
    MS-Off Ver
    2013
    Posts
    1

    Re: Combining cells, keeping date format.

    The formula worked-excellent thank you.

+ 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