+ Reply to Thread
Results 1 to 7 of 7

Can't convert date format

  1. #1
    Registered User
    Join Date
    12-22-2023
    Location
    Denmark
    MS-Off Ver
    365
    Posts
    48

    Can't convert date format

    Hello everybody,

    // forgot to upload sample

    I have below date format and would like to convert it to "dd-mm-yyyy"
    The data come from SAP extract.

    Current date format:

    Sunday, 1 January 2023
    Wednesday, 1 February 2023
    Saturday, 1 April 2023


    Target date format:

    01-01-2023
    01-02-2023
    01-04-2023
    Attached Files Attached Files
    Last edited by varbergt; 01-10-2024 at 06:00 AM. Reason: Forgot to attach sample data

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,853

    Re: Can't convert date format

    Workbook, please!

    You can try:

    =--TEXTAFTER(A1,", ")

    Fiormat the column as custom: dd-mm-yyyy
    Attached Files Attached Files
    Last edited by AliGW; 01-10-2024 at 06:02 AM. Reason: Workbook added.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    12-22-2023
    Location
    Denmark
    MS-Off Ver
    365
    Posts
    48

    Re: Can't convert date format

    Forgot to attach - thanks for letting me know
    Tried with Textafter and returns #N/A

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,853

    Re: Can't convert date format

    Did you get the right cell reference?

    =--TEXTAFTER(A2,", ")

    AliGW on MS365 Beta Channel (Windows 11) 64 bit

    A
    B
    1
    Fiscal year/period.Fiscal year/period Level 01
    2
    Sunday, 1 January 2023
    01-01-2023
    3
    Sunday, 1 January 2023
    01-01-2023
    4
    Sunday, 1 January 2023
    01-01-2023
    5
    Sunday, 1 January 2023
    01-01-2023
    6
    Sunday, 1 January 2023
    01-01-2023
    7
    Sunday, 1 January 2023
    01-01-2023
    8
    Sunday, 1 January 2023
    01-01-2023
    9
    Sunday, 1 January 2023
    01-01-2023
    10
    Sunday, 1 January 2023
    01-01-2023
    11
    Sunday, 1 January 2023
    01-01-2023
    12
    Sunday, 1 January 2023
    01-01-2023
    13
    Sunday, 1 January 2023
    01-01-2023
    14
    Sunday, 1 January 2023
    01-01-2023
    15
    Sunday, 1 January 2023
    01-01-2023
    16
    Sunday, 1 January 2023
    01-01-2023
    17
    Sunday, 1 January 2023
    01-01-2023
    18
    Sunday, 1 January 2023
    01-01-2023
    19
    Sunday, 1 January 2023
    01-01-2023
    20
    Sunday, 1 January 2023
    01-01-2023
    21
    Sunday, 1 January 2023
    01-01-2023
    22
    Sunday, 1 January 2023
    01-01-2023
    Sheet: Sheet1
    Attached Files Attached Files

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,853

    Re: Can't convert date format

    If this doesn't work, then you may need to add a couple of lookup tables to convert the month and day names into Danish as part of the formula.

  6. #6
    Registered User
    Join Date
    12-22-2023
    Location
    Denmark
    MS-Off Ver
    365
    Posts
    48

    Re: Can't convert date format

    After adding the space after , (", ") it totally works!! THANK YOU

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,853

    Re: Can't convert date format

    The space was always there!

    Glad to have helped.

+ 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. Convert forced change of date to String or Text format back to Date format in a column
    By analystbank in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-20-2022, 09:17 AM
  2. [SOLVED] How to convert the unix date format to excel date format
    By sivaksekar in forum Excel General
    Replies: 1
    Last Post: 08-15-2016, 03:33 AM
  3. i have to convert the csv file date format to excel date format
    By arindamsenaxa in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-17-2015, 03:37 AM
  4. Convert date and time in serial number format to text format
    By nda13112 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-11-2013, 02:45 PM
  5. Cannot convert date (which is in text format) to date in numeric format
    By geniuspro in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 10-19-2012, 09:21 AM
  6. Need Formula/VBA Code to convert date in String Format to Normal Date format
    By Karthik Sen in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-18-2012, 04:54 AM
  7. [SOLVED] Date Format Question- convert into a usable date format.
    By Josh O. in forum Excel General
    Replies: 1
    Last Post: 02-10-2005, 06:06 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