+ Reply to Thread
Results 1 to 7 of 7

Date problem

  1. #1
    Registered User
    Join Date
    08-11-2014
    Location
    Wellington
    MS-Off Ver
    2013
    Posts
    28

    Question Date problem

    Hi,

    I am having a spreadsheet where the U.S date format was entered in New Zealand date format. I am unable to correct it to right format.

    Please see the attached spread sheet.
    Attached Files Attached Files

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Date problem

    Delete duplicate
    Last edited by AlKey; 09-24-2014 at 06:56 PM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Date problem

    Try this formula:

    in B2 and copy it down

    =IFERROR(DATE(RIGHT(TEXT(LEFT(A2,FIND(" ",A2)-1),"DD/MM/YYYY"),4),MID(A2,FIND("/",A2)+1,2),LEFT(A2,FIND("/",A2)-1)),DATE(YEAR(A2),DAY(A2),MONTH(A2)))
    Attached Files Attached Files

  4. #4
    Forum Contributor Cerbera's Avatar
    Join Date
    07-06-2010
    Location
    Rotorua, New Zealand
    MS-Off Ver
    Excel 2007, 2013, 2016 & 365
    Posts
    137

    Re: Date problem

    I'm guessing you could play around with:

    =DATEVALUE(MONTH(X)&"/"&DAY(X)&"/"&YEAR(X))

    X being the original data cell reference.

    The only problem would be determining which ones to apply it to.

  5. #5
    Registered User
    Join Date
    08-11-2014
    Location
    Wellington
    MS-Off Ver
    2013
    Posts
    28

    Re: Date problem

    Thank you for your answers.

    Is there a way to change the way the data filter detects the dates. It usually follows the month/day/year format. So is it possible to make it follow day/month/year format?

  6. #6
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Date problem

    try this one next the B column on sheet that I uploaded earlier.

    =TEXT(B2,"dd/mm/yyyy")

  7. #7
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Date problem

    I use the same date format that you do and I have made sure that the default date system set in the Region and Language in the Control Panel is set correctly for Month/Day/Year format.

    I downloaded your file and selected the column of dates then used Text to Columns, Fixed width, and fixed the width to only include the date and not the time (didn't test to see if that matters). Selected the time part of the field and chose Do Not Import. Selected the other column and clicked on the date selection and chose MDY and clicked FINISH. All dates were converted to DMY format without affecting the dates that were already in the correct format.

    Could the problem that you are having be due to the fact that the dates are a mixture of real dates (can be reduced to the date serial number by changing the formatting to GENERAL) and text dates that will not be reduced to a serial number with the format change?
    Attached Files Attached Files
    Last edited by newdoverman; 09-24-2014 at 08:15 PM.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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. Advanced filter by date range, international date format problem
    By Senator685 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-21-2013, 08:16 AM
  2. [SOLVED] Problem with engaging an ERROR based on a date being <= another date
    By lsargent in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-28-2012, 01:24 AM
  3. =if problem with date
    By Davycc in forum Excel General
    Replies: 3
    Last Post: 11-11-2010, 10:43 AM
  4. 3 columns; date and two data, problem is sorting and calculating with respect to date
    By phosphorescence in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-29-2008, 04:21 PM
  5. [SOLVED] Date Problem's
    By bperks in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 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