+ Reply to Thread
Results 1 to 17 of 17

Need help with dates conversion

  1. #1
    Forum Contributor
    Join Date
    08-23-2016
    Location
    India
    MS-Off Ver
    MS Office Professional Plus 2013
    Posts
    194

    Need help with dates conversion

    Hi Guys,

    Please help me out with the attached file. The dates are in UK format and i just need the correct value to come out of them when I run a pivot. Somehow 10/8/2016 18:03 show me 8-Oct when I convert it.
    Attached Files Attached Files
    Ash

  2. #2
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Need help with dates conversion

    You are misusing the 'call in the cavalry' subforum.

    You won't gain any friends, let alone help here doing that.



  3. #3
    Valued Forum Contributor
    Join Date
    08-04-2011
    Location
    UK
    MS-Off Ver
    Excel 2021
    Posts
    346

    Re: Need help with dates conversion

    try this

    =DATE(YEAR(A2),DAY(A2),MONTH(A2))

  4. #4
    Forum Contributor
    Join Date
    08-23-2016
    Location
    India
    MS-Off Ver
    MS Office Professional Plus 2013
    Posts
    194

    Re: Need help with dates conversion

    Thanks Alan but this is not working......... the dates highlighted in yellow are a bit different. This data is from a report which gets pulled from Sales Force. And sales force sucks big time in giving out raw data for dates.

    Looks like the highlighted data is in some other format...........I don't know which.
    Attached Images Attached Images

  5. #5
    Valued Forum Contributor
    Join Date
    08-04-2011
    Location
    UK
    MS-Off Ver
    Excel 2021
    Posts
    346

    Re: Need help with dates conversion

    so, you've a mixed UK/US dates in Column A?
    I can't see a solution, sorry.

  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: Need help with dates conversion

    Hi Ash,
    Please see attached file with corrected dates.
    Formula used
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    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

  7. #7
    Valued Forum Contributor
    Join Date
    08-04-2011
    Location
    UK
    MS-Off Ver
    Excel 2021
    Posts
    346

    Re: Need help with dates conversion

    Quote Originally Posted by AlKey View Post
    Hi Ash,
    Please see attached file with corrected dates.
    Formula used
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    the problem is how do we know 1/4/2016 is 1st April or 4th Jan?

  8. #8
    Forum Contributor
    Join Date
    08-23-2016
    Location
    India
    MS-Off Ver
    MS Office Professional Plus 2013
    Posts
    194

    Re: Need help with dates conversion

    It works!!!!!...........Thank you Sir AlKey


    Alan..........I suspect the problem is that some dates are like 12/7/2016 10:20:00 PM while some are like 13/07/2016 11:22............ wherever there is no AM/PM

  9. #9
    Forum Contributor
    Join Date
    08-23-2016
    Location
    India
    MS-Off Ver
    MS Office Professional Plus 2013
    Posts
    194

    Re: Need help with dates conversion

    Wherever there is no AM/PM.......... the formula was giving error............. But AlKey's formula works fine with both kinds of dates/times.

  10. #10
    Valued Forum Contributor
    Join Date
    08-04-2011
    Location
    UK
    MS-Off Ver
    Excel 2021
    Posts
    346

    Re: Need help with dates conversion

    Quote Originally Posted by Ash_Maverick View Post
    It works!!!!!...........Thank you Sir AlKey


    Alan..........I suspect the problem is that some dates are like 12/7/2016 10:20:00 PM while some are like 13/07/2016 11:22............ wherever there is no AM/PM
    are you sure it works?

    first line of your sample post #4 10/8/2016 >>> 10/8/2016
    second line 1/4/2015 >>> 4/1/2015

    which one is correct?

  11. #11
    Forum Contributor
    Join Date
    08-23-2016
    Location
    India
    MS-Off Ver
    MS Office Professional Plus 2013
    Posts
    194

    Re: Need help with dates conversion

    Hey Alan..........my apologies....... i am confused here..........in 4th post the dates in column A are in UK format and with your formula it gets converted to US format.....Its did not work for the ones highlighted in yellow.

  12. #12
    Forum Contributor
    Join Date
    08-23-2016
    Location
    India
    MS-Off Ver
    MS Office Professional Plus 2013
    Posts
    194

    Re: Need help with dates conversion

    or maybe not.............. I just wanted it like this
    Attached Images Attached Images

  13. #13
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Need help with dates conversion

    I concur with AlanY,

    I can't see a solution, sorry.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  14. #14
    Forum Contributor
    Join Date
    08-23-2016
    Location
    India
    MS-Off Ver
    MS Office Professional Plus 2013
    Posts
    194

    Re: Need help with dates conversion

    Some clarity ??
    Attached Images Attached Images

  15. #15
    Valued Forum Contributor
    Join Date
    08-04-2011
    Location
    UK
    MS-Off Ver
    Excel 2021
    Posts
    346

    Re: Need help with dates conversion

    Quote Originally Posted by Ash_Maverick View Post
    or maybe not.............. I just wanted it like this
    If this is what you wanted,

    try this

    =DATE(YEAR(A2),Month(A2),DAY(A2))

  16. #16
    Valued Forum Contributor
    Join Date
    08-04-2011
    Location
    UK
    MS-Off Ver
    Excel 2021
    Posts
    346

    Re: Need help with dates conversion

    Or just format the column as dates in "dd-mmm-yyyy"

  17. #17
    Forum Contributor
    Join Date
    08-23-2016
    Location
    India
    MS-Off Ver
    MS Office Professional Plus 2013
    Posts
    194

    Re: Need help with dates conversion

    Ok Alan.........your first formula works =DATE(YEAR(A2),DAY(A2),MONTH(A2)) with 'dd-mmm-yyyy' but it gives me #VALUE! wherever the data/time format is different from others(refer post# 8)

    So I believe AlKey's formula is a modified version of your formula with IFERROR condition!!!

+ 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. Replies: 5
    Last Post: 01-02-2020, 07:45 AM
  2. Conversion of European Dates to US dates
    By ttyler916 in forum Excel General
    Replies: 5
    Last Post: 02-18-2013, 04:58 AM
  3. Conversion of dates/times
    By DesCall in forum Excel General
    Replies: 4
    Last Post: 05-27-2012, 12:26 PM
  4. Conversion of dates times
    By DesCall in forum Excel General
    Replies: 1
    Last Post: 05-27-2012, 10:31 AM
  5. Conversion of dates from Text format
    By jayantabhattacharji in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-18-2011, 04:25 AM
  6. Replies: 1
    Last Post: 07-30-2009, 04:26 PM
  7. Problem with dates after conversion
    By John Kleinbohl in forum Excel General
    Replies: 2
    Last Post: 03-09-2006, 01:55 PM

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