+ Reply to Thread
Results 1 to 5 of 5

Convert String Text to time in Minutes

  1. #1
    Registered User
    Join Date
    03-25-2019
    Location
    India
    MS-Off Ver
    2017
    Posts
    5

    Convert String Text to time in Minutes

    Hello,

    A string is generated from google distance matrix API which is containing time. i.e. "1 hour 25 min"? How can we convert it to minutes i.e. 85?
    Thank you

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Convert String Text to time in Minutes

    Hello and welcome to the forum.

    Try this:

    =LEFT(A1,FIND(" ",A1)-1)*60+TRIM(MID(SUBSTITUTE(A1," ",REPT(" ",100)),200,100))

    this should work too:

    =LEFT(A1,FIND(" ",A1)-1)*60+LEFT(RIGHT(A1,6),2)
    Last edited by 63falcondude; 03-27-2019 at 12:04 PM.

  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: Convert String Text to time in Minutes

    Or
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    v A B
    1 1 hour 25 min 85
    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

  4. #4
    Registered User
    Join Date
    03-25-2019
    Location
    India
    MS-Off Ver
    2017
    Posts
    5

    Re: Convert String Text to time in Minutes

    Thank you.. This is working.

  5. #5
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Convert String Text to time in Minutes

    Glad we could help. Thanks for the rep!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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. [SOLVED] Convert text string to date & time help
    By iantix in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 11-06-2017, 08:09 AM
  2. trying to convert a number into minutes and add minutes to a starting time
    By crbazzer in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-28-2013, 09:26 AM
  3. [SOLVED] Convert Text String to Time
    By sal2ahj0y in forum Excel General
    Replies: 2
    Last Post: 05-09-2012, 12:31 PM
  4. Using text function to convert time to minutes
    By koochandkai in forum Excel General
    Replies: 2
    Last Post: 08-09-2011, 08:28 AM
  5. Convert date and time to a text string
    By matpaulin in forum Excel General
    Replies: 2
    Last Post: 09-20-2008, 02:12 PM
  6. How do I convert a text string to a time format
    By knighttrader in forum Excel General
    Replies: 8
    Last Post: 01-29-2008, 04:19 AM
  7. [SOLVED] enter time in simple text and convert to hours/minutes
    By YanYan in forum Excel General
    Replies: 5
    Last Post: 06-22-2006, 10:10 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