+ Reply to Thread
Results 1 to 6 of 6

Excel 2007 : Cell to display "Night Worker" or "Day Worker" from Date Time

Hybrid View

  1. #1
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Cell to display "Night Worker" or "Day Worker" from Date Time

    The formula would return different answers pending time, check you're running XL in Auto Calculation mode (ie pressing F9 does not alter the results).

    Quote Originally Posted by jwmjacob
    I would desire 7am to 3:30pm “Day Workers” and all else “Night Workers”.
    In which case I would suggest:

    =IF(MEDIAN(MOD(K2,1),"07:00","15:30")=MOD(K2,1),"Day Workers","Night Workers")
    copied down

  2. #2
    Registered User
    Join Date
    07-26-2010
    Location
    Wilmington, DE
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Cell to display "Night Worker" or "Day Worker" from Date Time

    Quote Originally Posted by DonkeyOte View Post
    The formula would return different answers pending time, check you're running XL in Auto Calculation mode (ie pressing F9 does not alter the results).



    In which case I would suggest:

    =IF(MEDIAN(MOD(K2,1),"07:00","15:30")=MOD(K2,1),"Day Workers","Night Workers")
    copied down

    Thanks... JBeaucaire and DonkeyOte the formula works just fine... It was something I was doing wrong.

+ 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