+ Reply to Thread
Results 1 to 2 of 2

Need Help Counting Specific Times In Filtered Table

  1. #1
    Registered User
    Join Date
    08-16-2017
    Location
    Overland Park, Kansas
    MS-Off Ver
    MS Office 2010
    Posts
    2

    Need Help Counting Specific Times In Filtered Table

    Hello,

    I have a table of phone calls that includes a duration in (h):mm:ss format. At the top of the table is a dashboard that shows total calls, unique calls, etc... I also need to show calls that fall below 30 seconds, between 30 seconds and 59 seconds, and above 1 minute. This needs to change appropriately if a filter is applied (e.g., a specific number or source). Here is what I have so far for calls below 30 seconds:

    =SUMPRODUCT(SUBTOTAL(103,OFFSET(A1,ROW(E19:E5018)-ROW(A1),0)),--(E19:E5019<"00:30"))

    It returns the #VALUE and no amount of tweaking on my part has been able to get a correct return that changes when filtered.

    I have attached a sample workbook. Basically, I need to count the calls below 30 seconds. The time duration is in column D (it was column E, but I removed a column for privacy purposes). I need the calculation in L13 to change if the data is filtered on any row.

    Any and all help is appreciated!
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Need Help Counting Specific Times In Filtered Table

    hi there. the error was due to your range not being the same:
    =SUMPRODUCT(SUBTOTAL(103,OFFSET(A1,ROW(D19:D5018)-ROW(A1),0)),--(D19:D5019<"00:30"))

    if you change that, you do get a number, but a wrong one:
    =SUMPRODUCT(SUBTOTAL(103,OFFSET(A1,ROW(D19:D5019)-ROW(A1),0)),--(D19:D5019<"00:30"))
    that's because of 2 reasons;
    1) putting double quotes makes Excel read it as a text. and texts are regarded as being bigger than numbers. hence D19:D5019 (time is regarded as numbers) is always going to be lesser than "00:30" (a text). you can convert it into a number by a few ways:
    TIMEVALUE("00:30")
    "00:30"+0
    --"00:30"
    2) "00:30" is 30 minutes, not 30 seconds. 30 seconds is "00:00:30"

    so your final formula should look like:
    =SUMPRODUCT(SUBTOTAL(103,OFFSET(A1,ROW(D19:D5019)-ROW(A1),0)),--(D19:D5019<--"00:00:30"))

    you could also help us by manually typing what the desired answer should be. is it 20? 20 is found in cells xx, xx, xx, etc. you can look at my signature for some tips.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

+ 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] Counting Minutes between two specific times
    By bynzer55 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-07-2017, 09:31 AM
  2. Replies: 16
    Last Post: 03-09-2017, 02:13 AM
  3. counting text within a filtered table
    By Justin280090 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-05-2016, 01:10 AM
  4. [SOLVED] Counting filtered data and matching to specific monthly headers
    By macrorookie in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-02-2014, 09:44 PM
  5. counting records in a filtered table
    By lustiggidi in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-22-2013, 11:54 AM
  6. Counting Only Specific Hours Between Two Times
    By Pondus in forum Excel General
    Replies: 13
    Last Post: 12-20-2011, 07:38 AM
  7. counting specific hours between two times
    By each in forum Excel General
    Replies: 4
    Last Post: 04-20-2009, 04:08 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