+ Reply to Thread
Results 1 to 13 of 13

Computation of time and dates

  1. #1
    Registered User
    Join Date
    05-18-2017
    Location
    PHILIPPINES
    MS-Off Ver
    2010
    Posts
    26

    Computation of time and dates

    hi Guys,

    i would like to know if my release time is exact base on the release date prior to the following rules.

    1. if i have Holiday, Force or Weekend, i should extend my time based on the numbers of days difference from Research date and Release date.
    2. A day should extend my time for 30mins.
    3. My base release time is 11:00
    Attached Files Attached Files

  2. #2
    Forum Contributor jomaor1's Avatar
    Join Date
    10-08-2018
    Location
    Brasil
    MS-Off Ver
    Excel 2016
    Posts
    177

    Re: Computation of time and dates

    Hi, follow attached.

    Cheers!
    Attached Files Attached Files
    John.

    "I excel at jumping to conclusions"

  3. #3
    Registered User
    Join Date
    05-18-2017
    Location
    PHILIPPINES
    MS-Off Ver
    2010
    Posts
    26

    Re: Computation of time and dates

    Quote Originally Posted by jomaor1 View Post
    Hi, follow attached.

    Cheers!

    can you explain your formula sir.

    as you can see in my example, the diff for the first 5 dates is 5 days because they have the same release dates. it assume that, they create all research dates in 1 day(release date).

    thanks

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,855

    Re: Computation of time and dates

    @jomaor1

    Sorry for off-topic interjection:

    Although there is no official rule regarding this behavior, we request that wherever possible both the question AND the answer be provided in substantive detail here within the thread. An attached workbook is an excellent aid for posing a question and offering a solution, but solely doing that with no in thread explanation makes it difficult for researchers to understand or consider the Q & A of this thread without downloading what may be a pointless doc to them, if they can do that at all. Doing that also hides the content from search engines so others may never benefit from this.

    I'm sure you understand, and we look forward to seeing you post your formulas/macros in your posts for the searching benefit of all.

    Thanks again for all your hard work here!
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  5. #5
    Forum Contributor jomaor1's Avatar
    Join Date
    10-08-2018
    Location
    Brasil
    MS-Off Ver
    Excel 2016
    Posts
    177

    Re: Computation of time and dates

    Hi,

    I altered your formula on Column H thinking the Diff was just Release - Research, apologies.
    But the formula on Column I should be right, as it ads 30min for each day on Column H.
    I'm just having a hard time understanding what you need on Column H. It makes zero sense to me

  6. #6
    Registered User
    Join Date
    05-18-2017
    Location
    PHILIPPINES
    MS-Off Ver
    2010
    Posts
    26

    Re: Computation of time and dates

    Quote Originally Posted by angelosison00 View Post
    can you explain your formula sir.

    as you can see in my example, the diff for the first 5 dates is 5 days because they have the same release dates. it assume that, they create all research dates in 1 day(release date).

    thanks
    Quote Originally Posted by jomaor1 View Post
    Hi,

    I altered your formula on Column H thinking the Diff was just Release - Research, apologies.
    But the formula on Column I should be right, as it ads 30min for each day on Column H.
    I'm just having a hard time understanding what you need on Column H. It makes zero sense to me

    Hi sir,

    you can check my reply.

    thanks

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,531

    Re: Computation of time and dates

    The following formulas produce the same values as those that were originally placed in columns H:I.
    For column H: =COUNTIFS(C$3:C$16,C3)
    For column I: =IF(H3=1,D3,D3+H3*TIME(0,30,0))
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  8. #8
    Registered User
    Join Date
    05-18-2017
    Location
    PHILIPPINES
    MS-Off Ver
    2010
    Posts
    26

    Re: Computation of time and dates

    hi All,

    kindly check why my formula is not working properly.
    even if i compare direct to the cell value.
    the return value of "11:00" says its not greater than in the value of column D.

    please check the highlighted rows.
    Attached Files Attached Files

  9. #9
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,531

    Re: Computation of time and dates

    The "11:00" values in column K are text values.
    Modify the formula for column K to read: =IF(COUNTIFS(C$3:C$16,C3)=1,"11:00"+0,"11:00"+(TIME(0,30,0)*COUNTIFS(C$3:C$16,C3)))
    Likewise you could modify the formula in column P to read: =IF(D3>(IF(COUNTIFS(C$3:C$16,C3)=1,"11:00"+0,"11:00"+(TIME(0,30,0)*COUNTIFS(C$3:C$16,C3)))),"Yes","No")
    Let us know if you have any questions.

  10. #10
    Registered User
    Join Date
    05-18-2017
    Location
    PHILIPPINES
    MS-Off Ver
    2010
    Posts
    26

    Re: Computation of time and dates

    Quote Originally Posted by JeteMc View Post
    The "11:00" values in column K are text values.
    Modify the formula for column K to read: =IF(COUNTIFS(C$3:C$16,C3)=1,"11:00"+0,"11:00"+(TIME(0,30,0)*COUNTIFS(C$3:C$16,C3)))
    Likewise you could modify the formula in column P to read: =IF(D3>(IF(COUNTIFS(C$3:C$16,C3)=1,"11:00"+0,"11:00"+(TIME(0,30,0)*COUNTIFS(C$3:C$16,C3)))),"Yes","No")
    Let us know if you have any questions.

    im surprise that all i need to do is to add +0 in my formula.
    thank you so much for this. +rep

  11. #11
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: Computation of time and dates

    Quote Originally Posted by angelosison00 View Post
    im surprise that all i need to do is to add +0 in my formula.
    "11:00" is a string. But when a string is used in an arithmetic expression (e.g. "11:00" + 0) and Excel can interpret the string as a number, Excel converts the string to its numeric value, just as Excel does when we type the text into a cell that is formatted as General.

    Any arithmetic operation does the same thing. Typically, I write --"11:00". Some people mistakenly think that "--" is an operator, and that "--" is necessary for the conversion to happen. But there is nothing sacrosanct about "--". It is just two unary minuses in a row, which results in the same numeric value.
    Last edited by joeu2004; 12-13-2019 at 02:00 AM.

  12. #12
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,531

    Re: Computation of time and dates

    You're Welcome and thank you for the feedback. Please take a moment to mark the thread as 'Solved' using the thread tools menu above your first post. I hope that you have a blessed day.

  13. #13
    Registered User
    Join Date
    12-13-2019
    Location
    florida
    MS-Off Ver
    Windows 7 Ultimate x64
    Posts
    6

    Re: Computation of time and dates

    Thank You for your kind information it helps me to solved my problem.

+ 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. Help With Table Formatting ( Time Computation )
    By MK19 in forum Excel General
    Replies: 1
    Last Post: 03-11-2016, 02:43 PM
  2. Breakdown and Computation of lab time
    By omer123456 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-30-2015, 02:16 PM
  3. [SOLVED] Help with Time computation with condition
    By yrneh in forum Excel General
    Replies: 5
    Last Post: 10-01-2015, 02:38 AM
  4. Replies: 0
    Last Post: 03-24-2015, 04:17 AM
  5. Time Computation for Late
    By johnnyocaya in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-22-2014, 05:26 AM
  6. Time Computation Error
    By j0x in forum Excel General
    Replies: 6
    Last Post: 07-03-2011, 06:14 PM
  7. [SOLVED] Time Stamp/Locking Cell Computation
    By Patrick123456789 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-08-2005, 08:06 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