+ Reply to Thread
Results 1 to 8 of 8

Date function- Help needed

  1. #1
    Registered User
    Join Date
    06-16-2014
    Location
    india
    MS-Off Ver
    2007
    Posts
    29

    Date function- Help needed

    Hi All,

    I have two columns of dates. But among each column few are in date format and others are in general format. I am not able to make into a uniform format. I have tried =Text(col1,"mm-dd-yyyy"). But its not working on few rows. Kindly help me solve the problem..

    I have attached the sheet also.Datefunctions.xlsx
    Last edited by yemnirmal; 09-17-2015 at 03:17 AM.

  2. #2
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Date function- Help needed

    Hi,

    Try the following formula in D2:

    =IFERROR(A2*1,DATE(RIGHT(A2,4),LEFT(A2,2),MID(A2,4,2)))

    Drag this across and down the cells. See the attached file.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    06-16-2014
    Location
    india
    MS-Off Ver
    2007
    Posts
    29

    Re: Date function- Help needed

    Thanks #cbatrody . But the dates are already in mmddyyyy. According to your formula there are few changes as like in D11 the date has changed.

  4. #4
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Date function- Help needed

    So, is D11 not 14-Jan-2013?

    Also, in your file A2 is "11/01/2010" Is it "11-Jan-2010" or "01-Nov-2010"?

  5. #5
    Registered User
    Join Date
    06-16-2014
    Location
    india
    MS-Off Ver
    2007
    Posts
    29

    Re: Date function- Help needed

    D11 is 14-Jan-2013. But A2 is 01-Nov-2010. You may think as already they all are in same format as 'mmddyyyy'. But the problem happens when i try to convert them to 'dd-mon-yyyy'. Only very few get converetd. and others remain same.

  6. #6
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Date function- Help needed

    Hi,

    Try the following formula in D2:

    =IFERROR(DATE(YEAR(A2),DAY(A2),MONTH(A2)),DATE(RIGHT(A2,4),LEFT(A2,2),MID(A2,4,2)))

    See the attached file.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    06-16-2014
    Location
    india
    MS-Off Ver
    2007
    Posts
    29

    Re: Date function- Help needed

    Thanks cbatrody!!

  8. #8
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Date function- Help needed

    If your question has been answered please mark your thread as "Solved" so that members will know by looking at the thread title that your problem is solved. Go to the menu immediately above your first post to the thread and click on Thread Tools. From the dropdown menu select "Mark this thread as solved..."

    If a member helped you solve your problem, consider adding to their reputation by clicking on the star icon below their name.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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. Formula needed for figuring out Due date based on start date and cycles
    By akikelly in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-14-2015, 08:54 AM
  2. [SOLVED] Give End Date Based on Start Date & Weekes Needed
    By mycon73 in forum Excel General
    Replies: 5
    Last Post: 12-08-2014, 01:36 AM
  3. [SOLVED] Formula assistance needed to sum data based on anniversary date and month date
    By lilsnoop in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-28-2012, 11:18 PM
  4. Template needed with footer containing date created and date modified
    By MitchHull in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-31-2012, 04:37 PM
  5. Replies: 1
    Last Post: 09-28-2012, 08:52 AM
  6. Correct formula for date based reporting function needed..
    By ajsullivan610 in forum Excel General
    Replies: 0
    Last Post: 09-16-2009, 10:51 AM
  7. [SOLVED] Help needed with date function
    By Cyber Guy in forum Excel General
    Replies: 1
    Last Post: 07-05-2005, 05:05 PM

Tags for this Thread

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