+ Reply to Thread
Results 1 to 5 of 5

IF/ELSE Formula

  1. #1
    Registered User
    Join Date
    06-30-2016
    Location
    Oaks, PA
    MS-Off Ver
    Excel 2013
    Posts
    80

    IF/ELSE Formula

    Hello,

    I am trying to find a formula that will do the following tell me whether or not an event happened during Business Hours or Non-Business Hours.

    If it happened during business hours, then it would have to occur during the time range: 8:30:00am to 17:00:00pm. Anything outside of that time range would be considered Non-Business Hours.

    I attached an example to better display what I am looking for.

    I believe that an IF/ELSE formula should work for this, but I am unsure how to get Excel to work between the certain range that I mentioned above.

    Any help with this is appreciated!
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    01-19-2013
    Location
    Las Vegas, NV
    MS-Off Ver
    Office 365 2016
    Posts
    214

    Re: IF/ELSE Formula

    A really easy way to do this would be to separate your time dates via "Text to Columns" then you have your defined range to easily pluck from.

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,137

    Re: IF/ELSE Formula

    Assuming time is separated into column B

    =IF(AND(B2>=TIME(8,30,0),B2<=TIME(17,0,0)),"Business hours","Non_business hours")
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    01-05-2017
    Location
    New York
    MS-Off Ver
    Office 2016
    Posts
    206

    Re: IF/ELSE Formula

    You can just put this in C1:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-30-2016
    Location
    Oaks, PA
    MS-Off Ver
    Excel 2013
    Posts
    80

    Re: IF/ELSE Formula

    All of them work perfectly! Thank you so much 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)

Similar Threads

  1. Excel formula bar to display the result of the formula , not the formula?
    By max_max in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2016, 07:15 PM
  2. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  3. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 PM

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