Results 1 to 27 of 27

Formula to work out day/night based on start and end hours

Threaded View

  1. #1
    Registered User
    Join Date
    10-28-2010
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    25

    Formula to work out day/night based on start and end hours

    Good Morning All,
    I need a little help with some data. I have a spread-sheet with over 10,000 rows of data. The attached file shows the headings and type of data in the cells. I'm struggling with a formula for column G (day/night). What I need to do is populate this column with 'night' but only where:

    The start date and end date is the same and the issue occurred after 9pm (using start time column)The end time is equal to 5am or less but again where the start and end date is the same (based on end time)The difference between the start and end date is one day and the issue occurred at or after 9pm on the start date but at or before 5am on the end date.

    I have no idea if this makes any sense but please let me know if further clarification is needed!

    Once that is done, I then need to work out what took place on a Friday, or Friday into Saturday, Saturday or Saturday into Sunday etc.
    Any, and I mean any help would be appreciated.
    Thank you all in advance!
    A Frustrated Excel User


    Attachment 489841
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Trying to Calculate day and night hours based on sunset and sunrise
    By davidhale87 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-27-2023, 05:33 PM
  2. Replies: 1
    Last Post: 01-11-2016, 05:34 PM
  3. [SOLVED] Adding work hours based on particular start or finish times
    By RobertM01 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-16-2015, 10:28 AM
  4. Replies: 3
    Last Post: 06-18-2014, 07:26 AM
  5. Replies: 4
    Last Post: 09-21-2012, 12:58 AM
  6. finding night hours (0-day,1-night) between ranges of data
    By sensation in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-09-2012, 09:08 AM
  7. Calculate START date based on duration (work hours) and END date
    By kaaver in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-06-2010, 12:21 PM

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