+ Reply to Thread
Results 1 to 2 of 2

Calculating time of a specific activity

  1. #1
    Registered User
    Join Date
    05-09-2011
    Location
    *
    MS-Off Ver
    Excel 2010
    Posts
    44

    Calculating time of a specific activity

    Hi there, I was wondering if there is a simple VBA/formula to calculate the total time of a specific activity (differentiated by ID)?
    To better explain please refer to the attached excel file.

    for example activity id 1, there could be many sub tasks until it is reported as 1 (column C). The total time will be calculated based on the same activity but only for the tasks before it gets reported (column c).

    I have to mention that the file I am working on is huge so I'm not sure if the use of formulas would be a good idea.

    Appreciate your input.

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,976

    Re: Calculating time of a specific activity

    In D2, enter the formula

    =IF(C2=0,0,SUMIFS(B:B,A:A,A2,C:C,0))
    Or use this, to hide the 0 values:
    =IF(C2=0,"",SUMIFS(B:B,A:A,A2,C:C,0))

    Then copy down.
    Last edited by Bernie Deitrick; 02-17-2016 at 11:00 AM.
    Bernie Deitrick
    Excel MVP 2000-2010

+ 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: 138
    Last Post: 06-17-2015, 02:47 PM
  2. Replies: 7
    Last Post: 06-01-2015, 03:11 PM
  3. Activity Time Tracker to capture activity selected from dropdown list
    By dillibabu in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-24-2013, 01:10 PM
  4. Need help with calculating total time of a particular event/activity
    By shailesh in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 01-14-2012, 05:55 AM
  5. Time Tracker - I need a macro that calculates the time spent on an activity
    By amark in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-01-2011, 09:55 AM
  6. Calculating a Premium Wage for a Specific Time Range
    By Ranjodh in forum Excel General
    Replies: 4
    Last Post: 06-22-2011, 03:02 PM
  7. Replies: 0
    Last Post: 09-03-2010, 05:36 AM

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