+ Reply to Thread
Results 1 to 6 of 6

HOW to convert csv decimal numbers correctly into DD-MM-YY?

  1. #1
    Registered User
    Join Date
    03-29-2020
    Location
    Austria
    MS-Off Ver
    Office for Mac 2016
    Posts
    3

    HOW to convert csv decimal numbers correctly into DD-MM-YY?

    Hello everybody!
    I have a csv file from a device, formatted as follows:

    20.02.17.17.56.0.110.071.064
    20.02.17.17.56.0.110.071.065
    20.02.17.17.56.0.110.071.066

    … where the first three comma blocks (20, 02, 17,) correspond to the date format DD, MM, YY.
    How can I import this file into the correct date format in Excel (1st cell would show up then 17-02-20)?

    As a solution I've already got the answer
    =DATWERT(C1&"."&B1&"."&A1)

    but putting this string as a function, I haven't been successful yet.

    Many thanks you for tips and solutions

    chris
    Last edited by chrimap; 03-29-2020 at 09:08 AM.

  2. #2
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,150

    Re: HOW to convert csv decimal numbers correctly into DD-MM-YY?


    There are no "comma" blocks here, but "dot/point" blocks ...

  3. #3
    Valued Forum Contributor
    Join Date
    06-22-2018
    Location
    Blackpool, England
    MS-Off Ver
    2019
    Posts
    408

    Re: HOW to convert csv decimal numbers correctly into DD-MM-YY?

    Re. the comma/dots.... this is just a language thing; it doesn't help, but in German, "eins-komma-zwei" means "one point two". Anyway...

    The problem is that you're feeding the DATEVALUE() a string with dots... Excel doesn't like it. If you use "/" instead it should work:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Personally, I wouldn't trust Excel's guessing skills.

    You might be better using DATE(YEAR,MONTH,DAY) instead - to avoid ambiguity. It would look like this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    (or whatever that function is called in German.

    HTH
    Tim


    EDIT: it's "DATUM()"
    Never stop learning!
    <--- please consider *-ing !

  4. #4
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,150

    Re: HOW to convert csv decimal numbers correctly into DD-MM-YY?

    Quote Originally Posted by harrisonland View Post
    ... the comma/dots.... just a language thing ...
    in German, "eins-komma-zwei" means "one point two" ...
    So ... maybe this "komma" "ist" from "kommen", then we have ... "one come/go two" ...
    So ... if "this is just a language thing" maybe we have not "HOW to convert csv ..." but "HOW to concrete csv ..." ...
    ... eyes ... ice ... what's the difference ...

  5. #5
    Registered User
    Join Date
    03-29-2020
    Location
    Austria
    MS-Off Ver
    Office for Mac 2016
    Posts
    3

    Re: HOW to convert csv decimal numbers correctly into DD-MM-YY?

    Quote Originally Posted by porucha vevrku View Post

    There are no "comma" blocks here, but "dot/point" blocks ...
    Sorry, for the unrealized COPY ERROR - but the original file is with comma
    Last edited by chrimap; 03-29-2020 at 04:05 PM.

  6. #6
    Registered User
    Join Date
    03-29-2020
    Location
    Austria
    MS-Off Ver
    Office for Mac 2016
    Posts
    3

    Re: HOW to convert csv decimal numbers correctly into DD-MM-YY?

    Thank you harrisonland, I'll try this
    chris

+ 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: 33
    Last Post: 02-23-2018, 05:59 AM
  2. [SOLVED] Subtraction of 2 decimal place numbers giving 12 decimal place answer
    By njb212 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-22-2018, 09:35 PM
  3. Replies: 4
    Last Post: 12-17-2015, 12:33 AM
  4. Replies: 3
    Last Post: 08-28-2013, 08:45 AM
  5. Replies: 4
    Last Post: 12-26-2012, 05:37 AM
  6. Replies: 2
    Last Post: 04-21-2010, 04:41 PM
  7. Replies: 4
    Last Post: 08-15-2006, 09:20 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