+ Reply to Thread
Results 1 to 2 of 2

Calculate duration based on a critera of another column

  1. #1
    Registered User
    Join Date
    05-10-2013
    Location
    Amstelveen, Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    12

    Calculate duration based on a critera of another column

    Hi everyone,

    I'm having trouble with making a correct excel formula.
    My data exists of two columns, one column with date and time and another column with either a '0' (not present) or a '1' (not present).
    What I want to do is calculate the duration of the absences through time.

    So, for example:

    21-05-11 11:23 1
    21-05-11 11:38 0
    21-05-11 11:53 1
    21-05-11 12:08 0
    21-05-11 12:23 0
    21-05-11 12:38 1

    The first absence lasts 15 minutes and the second absence lasts 30 minutes. I'm wondering if there is a formula which could provide that automatically?
    Hopefully someone can help me out.

    Greetings,
    Daphne
    Last edited by greendaffodil; 06-25-2013 at 11:15 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,601

    Re: Count if

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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