+ Reply to Thread
Results 1 to 9 of 9

Excel Find Starting and finishing Time

  1. #1
    Registered User
    Join Date
    07-14-2012
    Location
    Lisboa, Portugal
    MS-Off Ver
    Excel 2007
    Posts
    24

    Excel Find Starting and finishing Time

    Hello there

    I'm having trouble find the right idea for a new project i have and i was wondering if the following is possible. you see i have the fallowing table...


    TASK Starting Time Finishing Time TEST
    Agendamentos Recolhas 11:15 11:26
    Agendamentos Recolhas 11:31 11:40 BREAK
    Reagendamentos 11:41 11:45
    Reagendamentos 11:46 11:49
    Reagendamentos 11:50 11:54 BREAK
    Agendamentos Recolhas 15:03 15:12
    Agendamentos Recolhas 15:13 15:21
    Agendamentos Recolhas 15:22 15:34 BREAK
    Confirmacoes Comerciais 16:07 16:08
    Confirmacoes Comerciais 16:20 16:41 BREAK
    Agendamentos Recolhas 19:00 19:10
    Agendamentos Recolhas 19:36 19:46
    Agendamentos Recolhas 19:47 20:02 BREAK



    There are different task that one person performes througth the day and in most of the cases they are done in alternative ways and not straight foward.

    My question is... is it possible that every time that the word "BREAK" appears it counts the first starting and the last finishing time together in a new column? the point is to know when i started and stopped that task.

    Am i making sense? sorry for the bad english and for the table... for some reason i canīt add attachs or images...

    Thanks in advance
    Last edited by Iceman1988; 07-14-2012 at 06:31 AM.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Excel Find Starting and finishing Time

    Hi Iceman,

    Welcome to the forum.

    Try using below formula:-
    {=IF(D2="break",MAX(IF($A$2:$A$14=$A2,$C$2:$C$14,""))-MIN(IF($A$2:$A$14=$A2,$B$2:$B$14,"")),"")}

    See attached: Starting & End time of task.xlsx

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

  3. #3
    Registered User
    Join Date
    07-14-2012
    Location
    Lisboa, Portugal
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Excel Find Starting and finishing Time

    Hi dilipandey,

    Thank you for the reply

    The formula worked great however i was looking for something a little different... i know my 1 post was not very well explained but i think with the attachment explain better what i really need

    See here : Starting & End time of task.xlsx

    Thank you again

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Excel Find Starting and finishing Time

    Hi Iceman1988,

    Earlier you said in your post#1 that :-
    for some reason i canīt add attachs or images...
    and now you are able to ... that's good

    I have gone through with the attachment and can see only three tasks spread in different time zones ;-

    Agendamentos Recolhas
    Reagendamentos
    Confirmacoes Comercials


    How do we tell Excel to recognise if they should be considered more than once ?
    I can still do that.. but wanted to be sure of that you have given every possible detail(s)

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  5. #5
    Registered User
    Join Date
    07-14-2012
    Location
    Lisboa, Portugal
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Excel Find Starting and finishing Time

    Hi again

    For some reason my browser was preventing me from posting attachments but thats solved

    About the problem there are more than those task and they are done throughout the day but the thing is:

    I start "Agendamentos Recolhas" task at "11:15" and finished the 1st item of that task at "11:26" like in the first row.
    Then i do the 2nd item of that same task from "11:31" to "11:40" but after this my boss asks me to do another task and a shift to "Reagendamentos".

    What i'm need is a formula that can tell me the time when i started and then finished the first task thats why i put "11:15 - 11:40" on the attach

    Sorry for all the trouble and thanks

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Excel Find Starting and finishing Time

    In E2 and copy down,

    =IF(A2=A3, "", TEXT(INDEX(B:B, MATCH(A2, A$1:A2, 0)), "hh:mm - ") & TEXT(C2, "hh:mm"))
    Entia non sunt multiplicanda sine necessitate

  7. #7
    Registered User
    Join Date
    07-14-2012
    Location
    Lisboa, Portugal
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Excel Find Starting and finishing Time

    That was it!

    I'm sorry for the late reply but I don't work on sunday so I didn't had access to the project to try it out...

    However i still have one little problem... if a task is repeated it shows the 1st value in the "starting time" instead of the new one... is there a way to make this happen without it repeating the values in starting time?

    Starting & End time of task.xlsx the attach has the ones i am talking about highlighted!

    Thanks again and sorry for all the trouble
    Last edited by Iceman1988; 07-16-2012 at 08:42 AM.

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Excel Find Starting and finishing Time

    Try

    =IF(A2=A3, "", TEXT(LOOKUP(2, 1/((A$1:A1<>A2)*(A$2:A2=A2)), B$2:B2), "hh:mm - ") & TEXT(C2, "hh:mm"))

  9. #9
    Registered User
    Join Date
    07-14-2012
    Location
    Lisboa, Portugal
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Excel Find Starting and finishing Time

    Thank you so much that did it :D

    The formula Worked perfectly, you're the master :D

    Thanks again and a lot :D

+ 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