+ Reply to Thread
Results 1 to 2 of 2

Translation of Multiple Date Types

  1. #1
    Registered User
    Join Date
    01-17-2014
    Location
    Fenton Missouri
    MS-Off Ver
    Excel 2007
    Posts
    54

    Translation of Multiple Date Types

    I am looking for a formula that can accomplish the following

    In column A (text field) I have dates that were pasted from 2 different applications
    The dates can be in two different formats (1/6/2015 or 06/Jan/15 04:01 AM CST)
    In column B I need a formula that provides me a date with the 1/6/2015 format.

    I have the formula (below) that will translate the 06/Jan/15 04:01 AM CST to the format that I need
    =IF(A1="","",IF(ISNUMBER(SEARCH("C",A1)),DATEVALUE(LEFT(A1,13)),A1))

    But now I need to add logic to this formula that basically says:
    If the format in A is 1/6/2015 then the value in B is 1/6/2015
    If the format in A is 06/Jan/15 04:01 AM CST then the value in B is still 1/6/2015

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Translation of Multiple Date Types

    This worked for both examples...

    =DATEVALUE(LEFT(A1,9))

    Format as Date

    Data Range
    A
    B
    1
    06/Jan/15 04:01 AM CST
    1/6/2015
    2
    1/6/2015
    1/6/2015
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Dealing with different types of date data in the same field
    By pickslides in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-20-2014, 05:04 AM
  2. Replies: 1
    Last Post: 12-19-2012, 09:39 PM
  3. Input Box with multiple types
    By borgeklungerbo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-20-2012, 10:30 PM
  4. Replies: 1
    Last Post: 02-03-2012, 07:39 PM
  5. Date Format Translation
    By annelise in forum Excel General
    Replies: 6
    Last Post: 11-07-2011, 08:49 AM
  6. Re: Date Format Translation
    By Yashika in forum Excel General
    Replies: 0
    Last Post: 11-06-2011, 04:30 PM
  7. Filtering for multiple pay types
    By dew23456 in forum Excel General
    Replies: 8
    Last Post: 09-10-2009, 09:32 AM
  8. [SOLVED] Multiple chart types
    By Rob T in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 11-25-2007, 07:12 AM

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