+ Reply to Thread
Results 1 to 5 of 5

If Statements With Time of Day

  1. #1
    JB
    Guest

    If Statements With Time of Day

    I want to create an if statement that says:

    If G2 is less than or equal to 1:00 PM then return "Acceptable" and if it is
    greater than 1:00 PM return "Not Acceptable"

    Thanks for the help!



  2. #2
    Toppers
    Guest

    RE: If Statements With Time of Day

    =IF(G2<=TIME(13,0,0),"Acceptable","Not Acceptable")

    "JB" wrote:

    > I want to create an if statement that says:
    >
    > If G2 is less than or equal to 1:00 PM then return "Acceptable" and if it is
    > greater than 1:00 PM return "Not Acceptable"
    >
    > Thanks for the help!
    >
    >


  3. #3
    Chip Pearson
    Guest

    Re: If Statements With Time of Day

    Try

    =IF(G2-INT(G2)<=TIME(13,0,0),"Acceptable","Not Acceptable")


    --
    Cordially,
    Chip Pearson
    Microsoft MVP - Excel
    Pearson Software Consulting, LLC
    www.cpearson.com


    "JB" <[email protected]> wrote in message
    news:[email protected]...
    >I want to create an if statement that says:
    >
    > If G2 is less than or equal to 1:00 PM then return "Acceptable"
    > and if it is
    > greater than 1:00 PM return "Not Acceptable"
    >
    > Thanks for the help!
    >
    >




  4. #4
    JB
    Guest

    RE: If Statements With Time of Day

    Thanks!

    "Toppers" wrote:

    > =IF(G2<=TIME(13,0,0),"Acceptable","Not Acceptable")
    >
    > "JB" wrote:
    >
    > > I want to create an if statement that says:
    > >
    > > If G2 is less than or equal to 1:00 PM then return "Acceptable" and if it is
    > > greater than 1:00 PM return "Not Acceptable"
    > >
    > > Thanks for the help!
    > >
    > >


  5. #5
    Chip Pearson
    Guest

    Re: If Statements With Time of Day

    Be aware that if the cell contains a date and time, but is
    formatted to display only time, the formula will always return
    "Not Acceptable".


    --
    Cordially,
    Chip Pearson
    Microsoft MVP - Excel
    Pearson Software Consulting, LLC
    www.cpearson.com


    "Toppers" <[email protected]> wrote in message
    news:[email protected]...
    > =IF(G2<=TIME(13,0,0),"Acceptable","Not Acceptable")
    >
    > "JB" wrote:
    >
    >> I want to create an if statement that says:
    >>
    >> If G2 is less than or equal to 1:00 PM then return
    >> "Acceptable" and if it is
    >> greater than 1:00 PM return "Not Acceptable"
    >>
    >> Thanks for the help!
    >>
    >>




+ 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