Consulting

Results 1 to 4 of 4

Thread: Solved: Format Date data

  1. #1

    Solved: Format Date data

    Hi,

    I have the below data to be converted from left to right or vice versa.

    col1 col2
    Jan-08 200801
    Dec-05 200512
    Mar-08 200803

    I want from one col to another column. Please help me how to change them in excel, not with macros.

    Thanks a lot for your help.
    Thanks in Advance,
    Venki

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Try

    =TEXT(A1,"yyyymmdd")
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    Knowledge Base Approver VBAX Guru macropod's Avatar
    Joined
    Jul 2008
    Posts
    4,435
    Location
    Hi xld,

    There are no apparent day values in the source data or in the desired output. One could use:
    =TEXT(A1,"yyyymm")
    or, simply:
    =A1
    combined with a custom date format ("yyyymm").
    Cheers
    Paul Edstein
    [Fmr MS MVP - Word]

  4. #4
    Thanks a lot for your help.
    This solved the problem.
    Thanks in Advance,
    Venki

Posting Permissions

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