+ Reply to Thread
Results 1 to 3 of 3

Adjust formula to calculate time

  1. #1
    Registered User
    Join Date
    02-14-2011
    Location
    Johor, Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    6

    Adjust formula to calculate time

    Hi
    Trying to calculate the time in minutes over a range
    B10:AF10 is the range but if the num 17:00 then i dont want to include in the sum. is it possible?

    =SUM(IF(B10:AF10<TIME(17,0,0),B10:AF10)

    or should i change the range calculation? For cell
    EX: cell B10

    =IF(B8>TIME(17,0,0),0,TIME(17,0,0)-B8)

    can i change it to also reflect 0 for 17:00? But i have no idea how to change it to reflect 0 mins if it is.

    Will appreciate any help available
    If my Question is confusing pls tell me, I'll admend it.

    Thanks in advance
    Last edited by janiss; 02-15-2011 at 08:44 PM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: May I know how to adjust my formula to calculate time? If/SUM formula?

    A sample file often helps but if you're saying 17:00+ should be ignored then:

    Please Login or Register  to view this content.
    remember to format the result cell as [h]:mm so as to show cumulative hours

  3. #3
    Registered User
    Join Date
    02-14-2011
    Location
    Johor, Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    6

    Smile Re: May I know how to adjust my formula to calculate time? If/SUM formula?

    Thank you.
    It worked.


    Quote Originally Posted by DonkeyOte View Post
    A sample file often helps but if you're saying 17:00+ should be ignored then:

    Please Login or Register  to view this content.
    remember to format the result cell as [h]:mm so as to show cumulative hours

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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