+ Reply to Thread
Results 1 to 4 of 4

Time sheet return IN and OUT based on criteria

  1. #1
    Registered User
    Join Date
    09-28-2022
    Location
    NY, USA
    MS-Off Ver
    MS Office Enterprise 365
    Posts
    25

    Time sheet return IN and OUT based on criteria

    Hi,

    I have a time sheet for which I would like to return "IN" and "OUT" based on data inputted.

    In reference to the sample sheet;
    1. If there is an in time in column H, then the result should show "IN"
    2. If there is an in time in column H and an out time in column I, the the result should show "OUT"
    3. If there is no in time in column H and no out time in column I, then the result should be a blank cell.

    Any help would be appreciated.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,483

    Re: Time sheet return IN and OUT based on criteria

    Try this:

    =IF(AND(H2<>"",I2<>""),"OUT",IF(AND(H2<>"",I2=""),"IN",""))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    09-28-2022
    Location
    NY, USA
    MS-Off Ver
    MS Office Enterprise 365
    Posts
    25

    Re: Time sheet return IN and OUT based on criteria

    Thank you so much @AliGW, exactly what I needed .

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    81,483

    Re: Time sheet return IN and OUT based on criteria

    You're welcome.

+ 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. [SOLVED] Return comment/Status based on time criteria
    By BigStuBigStu in forum Excel General
    Replies: 6
    Last Post: 02-18-2022, 06:33 PM
  2. Return data from another sheet based on criteria
    By stoneglow in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-22-2021, 07:07 PM
  3. Returning value in one sheet based on data and time criteria in another
    By bigagger in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-10-2020, 11:54 AM
  4. Return Sheet Names based on Criteria
    By Jackt90 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-03-2020, 04:09 AM
  5. Filter Based on Time Criteria and Copy to New Sheet
    By Barieq in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-01-2017, 07:40 AM
  6. automatically move to next sheet based on time criteria
    By stoey in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-04-2010, 01:33 AM

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