+ Reply to Thread
Results 1 to 4 of 4

how to clear up mixed date/text column

  1. #1

    how to clear up mixed date/text column

    I have a column of mixed date/text in an Excel Workbook. The workbook
    is downloaded from SAP system.

    The column contains data that look like dates , but up sorting, they
    would appear at different places; the "istext" function would confirm
    they are text or data.

    03/21/2006 istext = true
    03/21/2006 istext= false

    How to fix problems like this?

    I tried:
    a) format->cell -> data -> date for the column etc.
    b) copy/special paste -> text/value etc

    but none worked for me.

    Thanks for suggestions.


  2. #2
    Ing. Luis Fernando Ortiz M.
    Guest

    Re: how to clear up mixed date/text column

    Hi:

    Try this:

    Make a loop in a range and use VBA function ISDATE. this feature can
    identify the text like dates and return true if is valid date.

    If you use format only change the aspect and not then contents


    Regars.

    Luis F. Ortiz


    <[email protected]> escribió en el mensaje
    news:[email protected]...
    >I have a column of mixed date/text in an Excel Workbook. The workbook
    > is downloaded from SAP system.
    >
    > The column contains data that look like dates , but up sorting, they
    > would appear at different places; the "istext" function would confirm
    > they are text or data.
    >
    > 03/21/2006 istext = true
    > 03/21/2006 istext= false
    >
    > How to fix problems like this?
    >
    > I tried:
    > a) format->cell -> data -> date for the column etc.
    > b) copy/special paste -> text/value etc
    >
    > but none worked for me.
    >
    > Thanks for suggestions.
    >




  3. #3

    Re: how to clear up mixed date/text column

    Thanks. I was using ISTEXT to identify those "NON Data" already.

    But how to convert those being identified not "Valid Date" entries such
    as "03/20/2006" to a valid date. I suspect those may have some some
    hidden identifer to make them non-date entries. How to remove those
    identifer(s)?


  4. #4
    Ing. Luis Fernando Ortiz M.
    Guest

    Re: how to clear up mixed date/text column

    Try this

    Use functions like MONTH, YEAR and DAY to extract a parts of date and joint
    it as you wish. later use CDATE to convert it in a valid date.

    Regards.


    <[email protected]> escribió en el mensaje
    news:[email protected]...
    > Thanks. I was using ISTEXT to identify those "NON Data" already.
    >
    > But how to convert those being identified not "Valid Date" entries such
    > as "03/20/2006" to a valid date. I suspect those may have some some
    > hidden identifer to make them non-date entries. How to remove those
    > identifer(s)?
    >




+ 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