+ Reply to Thread
Results 1 to 4 of 4

How to calulate number of hours daytime and evening

  1. #1
    Registered User
    Join Date
    01-26-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2007
    Posts
    14

    How to calulate number of hours daytime and evening

    Hi,

    I would like to calculate the number of hours during the daytime and evenings. See attached file.

    (Version Excel 2003)

    Thank you!
    Attached Files Attached Files

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: How to calulate number of hours daytime and evening

    Try

    =MAX(0,MIN(B2,--"19:00:00")-MAX(--"07:00:00",A2))

    and

    =B2-A2-C2

  3. #3
    Registered User
    Join Date
    01-26-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: How to calulate number of hours daytime and evening

    The formulas seems to work with the American time standard (PM; AM).

    It doesn't works with the European standard hh:mm

    Can someone help?
    Last edited by lisaopar; 02-04-2013 at 07:01 AM.

  4. #4
    Registered User
    Join Date
    01-26-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: How to calulate number of hours daytime and evening

    Now I managed to get it to work with "hh: mm".
    Many thanks for your help!!

+ 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