+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    11-07-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    74

    Returning business hrs

    I have date in a cell & time in a cell .. now I need a formulae which should return if that date & time fall in business hours or not .

    Assuming business hrs to be Mon - Fri - 08:00 AM to 05:00 PM

    Thanks in Advance !
    Last edited by vamshi57; 12-12-2009 at 07:15 PM.

  2. #2
    Forum Moderator shg's Avatar
    Join Date
    06-21-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2007
    Posts
    25,134

    Re: Returning business hrs

    Maybe =(WEEKDAY(A1, 2) < 6) * (MOD(A1, 1) >= "8:00" + 0) * (MOD(A1, 1) <= "17:00" + 0)
    Microsoft MVP - Excel
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    11-07-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    74

    Re: Returning business hrs

    Yeah , It worked . Instead of returning "0' & "1"'s . Can that return " Prime " if time falls b/w bunisess hrs or else " NON-Prime " . Thanks much

  4. #4
    Forum Moderator shg's Avatar
    Join Date
    06-21-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2007
    Posts
    25,134

    Re: Returning business hrs

    =IF( (WEEKDAY(A1, 2) < 6) * (MOD(A1, 1) >= "8:00" + 0) * (MOD(A1, 1) <= "17:00" + 0), "something", "something else")
    Microsoft MVP - Excel
    Entia non sunt multiplicanda sine necessitate

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.2.0