Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 6 of 6

Thread: Creating a date time cell

  1. #1
    New Member
    Join Date
    Mar 2002
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    How do you combine a date cell with a time cell to create a single date and time cell?

    example:
    A B C
    1 03/04/02 | 08:15 | 03/04/02 08:15 |

  2. #2
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Newcastle, UK
    Posts
    1,174
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    On 2002-03-04 12:55, RYork wrote:
    How do you combine a date cell with a time cell to create a single date and time cell?

    example:
    A B C
    1 03/04/02 | 08:15 | 03/04/02 08:15 |
    Simply adding the 2 together should do the trick!
    "Have a good time......all the time"
    Ian Mac

  3. #3
    New Member
    Join Date
    Mar 2002
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I tried that and get weird results.

  4. #4
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Sunny, spring-like Hull
    Posts
    3,339
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Try formatting your result cell as

    mm/dd/yy hh:mm

    Also, make sure cell C1 =A1 + B1 rather than A1 & B1.

  5. #5
    New Member
    Join Date
    Mar 2002
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    That's how I'm entering it. Here is the exact cell contents:
    2/19/02 7:25

    the results are 4/24/04 7:25

  6. #6
    New Member
    Join Date
    Mar 2002
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    One thing I didn't tell you was that the data was imported from an AS/400. When I enter the dates manually, adding the two fields works.

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •