+ Reply to Thread
Results 1 to 12 of 12

how to calculate operating hours

Hybrid View

  1. #1
    Registered User
    Join Date
    11-10-2016
    Location
    CAPETOWN SOUTH AFRICA
    MS-Off Ver
    Microsoft windows 8
    Posts
    8

    how to calculate operating hours

    hie can you please help me on how to calculate the operating hours for the following in excel spreadsheet

    Opening hours:
    Monday : 10 am to 10 pm
    Tuesday: 10 am to 10 pm
    Wednesday: 10 am to 10 pm
    Thursday: 10 am to 11 pm
    Friday: 10 am to 12 pm
    Saturday: 10 am to 11 pm
    Sunday:10am to 10 pm

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: how to calculate operating hours

    It's not really easy to tell what you really want.

    Will you please attach a sample Excel workbook? Please don't attach a picture of one.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    11-10-2016
    Location
    CAPETOWN SOUTH AFRICA
    MS-Off Ver
    Microsoft windows 8
    Posts
    8

    Re: how to calculate number of Mondays for 7 months

    hie , can you please calculate how many Mondays are there from the month of 1 December 2015 up to 30 June 2016

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

    Re: how to calculate number of Mondays for 7 months

    Quote Originally Posted by Natalie Kwaramba View Post
    hie , can you please calculate how many Mondays are there from the month of 1 December 2015 up to 30 June 2016
    One way...

    A1 = 1 December 2015
    B1 = 30 June 2016

    =INT((WEEKDAY(A1-1,2)+B1-A1)/7)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Forum Contributor
    Join Date
    08-23-2016
    Location
    India
    MS-Off Ver
    MS Office Professional Plus 2013
    Posts
    194

    Re: how to calculate operating hours

    Please see file.........
    Attached Files Attached Files
    Ash

  6. #6
    Registered User
    Join Date
    11-10-2016
    Location
    CAPETOWN SOUTH AFRICA
    MS-Off Ver
    Microsoft windows 8
    Posts
    8

    Re: how to calculate operating hours

    Thank you the attached file is helpful

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

    Re: how to calculate operating hours

    Quote Originally Posted by Ash_Maverick View Post
    Please see file.........
    Your formula returns incorrect results on some dates. For example...

    12/1/2015 to 5/8/2016

    Your formula returns 23 when the correct result is 22.

  8. #8
    Forum Contributor
    Join Date
    08-23-2016
    Location
    India
    MS-Off Ver
    MS Office Professional Plus 2013
    Posts
    194

    Re: how to calculate operating hours

    Yes you are right Tony..........

    @Natalie: Please use =INT((WEEKDAY(A2-1,2)-A2+B2)/7)

  9. #9
    Forum Contributor
    Join Date
    08-23-2016
    Location
    India
    MS-Off Ver
    MS Office Professional Plus 2013
    Posts
    194

    Re: how to calculate operating hours

    Use this...........
    Attached Files Attached Files

  10. #10
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,177

    Re: how to calculate operating hours

    Another way ...

    =NETWORKDAYS.INTL(A2,B2,"0111111")

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

    Re: how to calculate operating hours

    Quote Originally Posted by Phuocam View Post
    =NETWORKDAYS.INTL(A2,B2,"0111111")
    NETWORKDAYS.INTL requires Excel 2010 or later.

  12. #12
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,279

    Re: how to calculate operating hours

    Quote Originally Posted by Phuocam View Post
    Another way ...

    =NETWORKDAYS.INTL(A2,B2,"0111111")
    Networkdays calculation base on work off days. Company to company its varies.
    Plz refer attach file some addition in file.
    Attached Files Attached Files


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

+ 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. [SOLVED] Recording a machines operating hours
    By GeoffHS in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-18-2016, 02:17 PM
  2. [SOLVED] How do I calculate operating expense
    By KAE1994 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 PM
  3. [SOLVED] How do I calculate operating expense
    By DaveB in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-06-2005, 05:05 PM
  4. [SOLVED] How do I calculate operating expense
    By KAE1994 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 PM
  5. How do I calculate operating expense
    By KAE1994 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 07:05 AM
  6. [SOLVED] How do I calculate operating expense
    By DaveB in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-06-2005, 05:05 AM
  7. How do I calculate operating expense
    By KAE1994 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 04:05 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