+ Reply to Thread
Results 1 to 6 of 6

Calculating selective data

  1. #1
    Registered User
    Join Date
    04-17-2014
    Location
    Sofia
    MS-Off Ver
    Excel 2010
    Posts
    2

    Calculating selective data

    Hello All,

    I have a work report that I need to do but I cannot finish it so I'll be grateful if you help me do it.
    My issue is the following - there are two types of scripts (A & B) happening randomly.
    The data I get is whether it's script A or B and a time stamp. I need to calculate the time one of the scripts (no matter which of them) happened after the other (and not after the same one) and to sum it for a particular period.
    For example:

    1. A - 12:25:30
    2. A - 12:36:45
    3. B - 12:38:12
    4. A - 12:40:51
    5. B - 12:41:24
    6. B - 12:43:02
    7. B - 12:45:15
    8. A - 12:47:00
    9. B - 12:48:12

    I need the times for scripts A & B separately:
    A - I need the sum of the time 4 happened after 3 and 8 - after 7
    B - 3 after 2, 5 after 4 and 9 after 8.

    I am really sorry that I cannot explain it better.
    Thank you in advance!

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Calculating selective data

    With an helpcolumn.

    See the attached file.
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Calculating selective data

    I hope you're not offended by this...

    When to use "a" and "an"
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Calculating selective data

    @Tony Valko

    Thank you very much for the link.

    Off course I am not offended.

    It is very usefull.

    I hope I can write the words correct in the future.

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Calculating selective data

    ------

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Calculating selective data

    This is how I understand your question. When A changes to B subtract the value for A from B. When the value changes from B to A subtract the value of B from A and then sum the values for both A and B separately.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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: 5
    Last Post: 12-11-2012, 05:04 AM
  2. [SOLVED] Selective drop down data depending on target cells' data - Help
    By stiganovski in forum Excel General
    Replies: 2
    Last Post: 04-17-2012, 09:35 PM
  3. Listing of selective data
    By peri1224 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-23-2011, 10:07 PM
  4. [SOLVED] Need help merging selective data
    By JM in forum Excel General
    Replies: 1
    Last Post: 01-05-2006, 02:25 PM
  5. Selective Data
    By MattD in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-28-2005, 03:05 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