+ Reply to Thread
Results 1 to 5 of 5

Date Formatting

  1. #1
    Registered User
    Join Date
    07-31-2007
    Posts
    19

    Date Formatting

    Hi guys and Gals.

    I've got a sheet with 3 Cells Populated.

    A1 has a name
    B1 has a time
    C1 has a date

    In Cell D1 I want to combine all three Cells together (with a | between then)
    using =a1 &"|"&b1&"|"&c1"|"

    My problem is that the DATE and TIME does not show correctly, due to formatting. The show as 36925 (date???) and 0.46656532 (time??)

    any body got any idea how i can change all that?

    Cheers!

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,099
    Try this in D1

    Please Login or Register  to view this content.
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Forum Moderator daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,676
    This should suffice

    =a1 &"|"&text(b1,"hh:mm")&"|"&text(c1,"dd/mm/yy")&"|"

    adjust date format as required

  4. #4
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,099
    Your absolutely right DLL

  5. #5
    Registered User
    Join Date
    07-31-2007
    Posts
    19
    Thanks Chaps.

    All very useful and works a treat with a litle tweeking.

    Much appreciated

+ 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