+ Reply to Thread
Results 1 to 15 of 15

Time cell format no standard problem conversion

  1. #1
    Registered User
    Join Date
    10-27-2014
    Location
    Lyon, France
    MS-Off Ver
    2007
    Posts
    26

    Time cell format no standard problem conversion

    Hello,

    I have a problem for convert my time cell in second.

    I have time data in this format:

    mm’ss’’00

    This time format is not standard that you can see. It’s that why I have a problem to convert the time cell in second.
    I tried create a custom cell with this format. It’s not work.
    I join a file example for illustrate my demand.

    Thank for your help.

    PS: I don’t know if I post in good section (may be I need a macro…)
    Attached Files Attached Files

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Time cell format no standard problem conversion

    Try this assuming the original time will never contain Hours (only minutes seconds and milliseconds)

    =("0:"&SUBSTITUTE(SUBSTITUTE(F6,"''","."),"'",":"))*86400

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,651

    Re: Time cell format no standard problem conversion

    Try this and format as general:

    =LEFT(F6,SEARCH("'",F6)-1)*60+MID(F6,SEARCH("'",F6)+1,2)+RIGHT(F6,2)/100
    Quang PT

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,417

    Re: Time cell format no standard problem conversion

    Here's another one in G6:

    =(LEFT(F6,FIND(CHAR(39),F6)-1)&":"&SUBSTITUTE(MID(F6,FIND(CHAR(39),F6)+1,2),CHAR(39),"")&"."&RIGHT(F6,LEN(F6)-FIND(CHAR(39)&CHAR(39),F6)-1))*24*60*60

    then copy down. As you are in France, you might need to change the commas to semi-colons, so I've attached the file for you (I put the formula in J6).

    Hope this helps.

    Pete
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-27-2014
    Location
    Lyon, France
    MS-Off Ver
    2007
    Posts
    26

    Re: Time cell format no standard problem conversion

    Thank jonmo1 but i have a problem.

    This formula is ok : =SUBSTITUE(SUBSTITUE(F6;"''";".");"'";":")
    I have for F6 : 1:12,25

    But when i try to use tje complete formula i have this "#valeur"
    Last edited by Shami00; 02-10-2015 at 09:48 AM.

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,417

    Re: Time cell format no standard problem conversion

    Yes, I kept getting that as I was developing my solution. It's because the '' in your examples to denote seconds are not the normal quotes character (code 34), but rather two separate apostrophes (code 39).

    Hope this helps.

    Pete

  7. #7
    Registered User
    Join Date
    10-27-2014
    Location
    Lyon, France
    MS-Off Ver
    2007
    Posts
    26

    Re: Time cell format no standard problem conversion

    bebo021999,

    With your forumula i have : 00'00,00

    Pete_UK,

    It's ok ! It's work !

  8. #8
    Registered User
    Join Date
    10-27-2014
    Location
    Lyon, France
    MS-Off Ver
    2007
    Posts
    26

    Re: Time cell format no standard problem conversion

    Yes Peter i have the result that i would like with your solution.

    Thank att all for your help.

  9. #9
    Registered User
    Join Date
    10-27-2014
    Location
    Lyon, France
    MS-Off Ver
    2007
    Posts
    26

    Re: Time cell format no standard problem conversion

    Hello peter,

    I have a little problem and i don't understand.

    I have "#valeur" when i copy down your formula. Also when i click on enter button in the first cell, the result turns in "#valeur".
    I change the commas to semi-colons and convert in my language the terms of the formulas with excel-translator.de website.

    I search a solution but i don't find it. Maybe because i have excel 2007. I don't know.

    Thank for your help.

    Shami00.

  10. #10
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,417

    Re: Time cell format no standard problem conversion

    There was no need to translate the functions, as that would have been done for you if you had opened the file that I attached. Can you attach the workbook again?

    Pete

  11. #11
    Registered User
    Join Date
    10-27-2014
    Location
    Lyon, France
    MS-Off Ver
    2007
    Posts
    26

    Re: Time cell format no standard problem conversion

    Also i tested with your file in post 4. I have the same problem.

    Also when i copy and paste the formula in other cell i have the same problem that below.

    When i use enter button i have this message :
    Last edited by Shami00; 02-13-2015 at 10:19 AM.

  12. #12
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,417

    Re: Time cell format no standard problem conversion

    I can't view image files on this forum - please attach your workbook instead (remove any sensitive data first).

    Pete

  13. #13
    Registered User
    Join Date
    10-27-2014
    Location
    Lyon, France
    MS-Off Ver
    2007
    Posts
    26

    Re: Time cell format no standard problem conversion


  14. #14
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,417

    Re: Time cell format no standard problem conversion

    You have no values in column F. If you want the formula cells to be blank in this case, then you should wrap the items in red below:

    = IFERROR( ...existing_formula... ,"")

    around your existing formula (but translated into French, and using a semicolon instead of a comma).

    Hope this helps.

    Pete

    EDIT: I left the items in C3:D5 behind by mistake - you can delete these, as they have no effect on the formula.
    Last edited by Pete_UK; 02-13-2015 at 12:52 PM.

  15. #15
    Registered User
    Join Date
    10-27-2014
    Location
    Lyon, France
    MS-Off Ver
    2007
    Posts
    26

    Re: Time cell format no standard problem conversion

    It's Ok Pete.

    This thread is solved for me.

    Thank a lot

+ 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. Format time from military time to standard time
    By Valencia0307 in forum Excel General
    Replies: 7
    Last Post: 06-01-2014, 11:15 AM
  2. [SOLVED] Converting Standard Time format (hh:mm:ss) to number of minutes
    By xygrax in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-27-2014, 10:54 AM
  3. Replies: 1
    Last Post: 06-15-2012, 02:03 PM
  4. [SOLVED] how do i convert standard time format into seconds?
    By Raj in forum Excel General
    Replies: 4
    Last Post: 05-29-2006, 12:00 PM
  5. [SOLVED] Working w/ non-standard Time Format
    By carl in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-30-2005, 03:06 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