+ Reply to Thread
Results 1 to 2 of 2

Using Time values for SUMIF Function

  1. #1
    Registered User
    Join Date
    11-06-2018
    Location
    New Brunswick, Canada
    MS-Off Ver
    2010
    Posts
    1

    Using Time values for SUMIF Function

    Hi there,

    I'm pretty new to excel and am working on a sheet to track how much time was spent per item from list.

    I work at a call center and I am trying to track the amount of time spent in each phone state.

    Whenever i use the SUMIF function the result is always 0 because the data is a time and not a number. If i change the time to a number it calculates it correctly but won't do it if its a time.

    I have created a drop down list for the states (B Column), and have it calculating the amount of time spent in each state (C Column). I just need it to total the time spent in each state (F Column)
    Attached Files Attached Files

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

    Re: Using Time values for SUMIF Function

    The formula in C2 returns a text value, which is producing the zeros. Change the formula in C2 to this:

    =IF(A3="",0,SUM(A3-A2))

    Apply a Custom Format of [h]:mm:ss to that cell, then copy down as far as you need to. Then you can change the formula in F2 to this:

    =SUMIF($B$2:$B$500, E2,$C$2:$C$500)

    Again, apply a Custom Format of [h]:mm:ss to that cell, then copy down.

    Hope this helps.

    Pete

+ 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: 8
    Last Post: 06-13-2018, 07:55 AM
  2. Replies: 3
    Last Post: 04-10-2012, 10:23 AM
  3. Replies: 1
    Last Post: 05-17-2011, 11:39 PM
  4. Multiple values in one cell for sumif function
    By bernard.x in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-08-2010, 08:41 AM
  5. SUMIF function with mutiple SUM_RANGE values
    By shep85 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-01-2010, 02:18 PM
  6. Replies: 4
    Last Post: 03-23-2010, 12:44 PM
  7. [SOLVED] SUMIF function referring to values on different Worksheet
    By TeeBee0831 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-03-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