+ Reply to Thread
Results 1 to 3 of 3

Extract & Sum Time from text

Hybrid View

  1. #1
    Registered User
    Join Date
    11-07-2018
    Location
    Buenos Aires, Argentina
    MS-Off Ver
    2012
    Posts
    5

    Extract & Sum Time from text

    Hello all,
    I've got a column full of data. Some cells has a time in format HH:mm plus the word 'Hi'. Other cells, just random texts.

    Example:

    A1 = 01:00 Hi
    A2 = Chair
    A3 = 02:30 Hi
    A4 = Table
    A5 = Dog
    A6 = 00:30 Hi
    A7 = Bill Gates
    A8 = Excel Forum
    A9 = 04:00 Hi

    In A10, I'd like to extract the HH:mm from those cells, the onces that says Hi, and sum them all.
    So in A10 I'd like to have: A10 = 08:00
    (01:00 + 02:30 + 00:30 + 04:00)

    Is there any way to do this without a macro?

    Thank you all.

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2021
    Posts
    5,973

    Re: Extract & Sum Time from text

    Try this:

    =SUM(IFERROR(--LEFT(A1:A9,5),0))

    Array formula, enter with Ctrl+Shift+Enter

  3. #3
    Registered User
    Join Date
    11-07-2018
    Location
    Buenos Aires, Argentina
    MS-Off Ver
    2012
    Posts
    5

    Re: Extract & Sum Time from text

    Quote Originally Posted by Phuocam View Post
    Try this:

    =SUM(IFERROR(--LEFT(A1:A9,5),0))

    Array formula, enter with Ctrl+Shift+Enter
    You're the greatest. Thank you, it worked!

+ 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] Extract date and time from text string
    By iantix in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-14-2019, 10:30 AM
  2. Extract minimum time for a specified text string
    By Runner21 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-16-2017, 02:02 PM
  3. Extract time and date from Text
    By zxchan in forum Excel General
    Replies: 8
    Last Post: 06-30-2014, 11:16 PM
  4. [SOLVED] Extract time from date and time text string
    By pattem2013 in forum Excel General
    Replies: 5
    Last Post: 09-07-2013, 03:20 AM
  5. extract time-values from variable text
    By WilliamV in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 02-09-2012, 11:30 AM
  6. Extract the time from a text string
    By knighttrader in forum Excel General
    Replies: 5
    Last Post: 07-27-2008, 01:52 PM
  7. extract time from text import
    By HmxPete in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-18-2005, 06:05 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