+ Reply to Thread
Results 1 to 4 of 4

Thread: IF Function

  1. #1
    Forum Contributor
    Join Date
    11-08-2011
    Location
    Leeds
    MS-Off Ver
    Excel 2010
    Posts
    106

    IF Function

    Hey,

    I was just wondering if anyone could help me with this IF Function formula,(I think its a IF Function)
    I have in coloum E2 which is a set of times all the way down to E1630, I need to be able to find all the times which are After 18:00:00 and before 09:00:00,

    I was just wondering if anyone could give me a hand

    Thanks

  2. #2
    Valued Forum Contributor
    Join Date
    06-09-2010
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2007 and 2010
    Posts
    346

    Re: IF Function

    I'm, not sure how you want to identify the cells, but this should get you started with an IF formula.

    If you type this formula into cell F2 and copy it to all cells in column F that are to the right of a cell with a time, it will return "early" if the time is before 9am and "late" if the time is after 6pm.


    =IF((E2-INT(E2))<9/24,"early",IF(E2-INT(E2)>18/24,"late",""))

  3. #3
    Forum Contributor
    Join Date
    11-08-2011
    Location
    Leeds
    MS-Off Ver
    Excel 2010
    Posts
    106

    Re: IF Function

    Nicky C Thanks for your help, Spot on

  4. #4
    Extremely Helpful member
    Join Date
    12-23-2006
    Location
    Belgium
    MS-Off Ver
    XL2003
    Posts
    6,127

    Re: IF Function

    You can trim the formula a bit by replacing E2-int(E2) by MOD(E2,1)
    Quoting entire posts clutters the forum and makes threads hard to read !

    If you are pleased with a member's answer then use the Star icon to rate it

    Click here to see forum rules

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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