Consulting

Results 1 to 3 of 3

Thread: Nested Statement Help for Time Calculation.

  1. #1

    Nested Statement Help for Time Calculation.

    Folks I hope you can help. I receive daily data dumps of Call data, that I need to calculate the total activity time for but making allowance where Activity times over lap so we do not double count and allowing for gaps between a previous activity end time and the start of the next. In the example the total actvity time in minutes should be 270 for call 1 and 120 minutes for call 2.

    So I need the formula to check in column A the call number is the same and calculate and if not start afresh with a new calculation.
    I have entered a basic If statement that works for some but not all of it.
    Attached Files Attached Files

  2. #2
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    E2 Formula = "=IF(A2=A1,IF(C2>=D1,D2-C2,D2-D1),D2-C2)"
    Copy down
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

  3. #3
    Sam thanks very much worked a treat.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •