+ Reply to Thread
Results 1 to 2 of 2

IF Statement Help

  1. #1
    Registered User
    Join Date
    06-18-2012
    Location
    Philadelphia
    MS-Off Ver
    Excel 2007
    Posts
    14

    IF Statement Help

    I have to build an "IF" statement off time card punches. Its a pain in the *** and I figured Id come on here and look for help.

    Below is an example of what I am working on. I would need the if statement to analyze the punches out. Specifically something that says "if,D2(CLOCK OUT
    CELL)<5:00PM,"PICKUP","DROPOFF". I keep getting an error bc its not able to read the time format I believe.
    Trying to see the history of deliveries....

    Hopefully someone may be able to assist as I keep getting errors....


    Date Clock In In Code Clock Out Out Code
    Monday, August 10, 2015 8:03AM 4:37PM
    Tuesday, August 11, 2015 9:06AM 5:45PM
    Wednesday, August 12, 2015 9:37AM 5:52PM
    Thursday, August 13, 2015 8:09AM 4:44PM
    Friday, August 14, 2015 9:13AM 5:29PM
    Last edited by hutchgeo4; 08-17-2015 at 10:36 AM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: If statement output regarding cells that are time formatted

    Sounds like you are almost there? Are you having a problem with the time part? If so, use the TIME() function...
    TIME(17,0,0)

    If that was not your problem, Please take a moment to read the forum rules and then amend your thread title to something descriptive of your problem - not what you think the answer might be. (think google search terms?). Once you have done this please send me a PM and I will remove this request. (Also, include a link to your thread - copy from the address bar)

    Many members search our previous posts, and thread titles play a big part of the search. I doubt anybody would do a search based on your title?

    To change a Title on your post, click EDIT POST then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (note: this change is not optional )
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. If statement off cells that are time formatted
    By hutchgeo4 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-12-2015, 02:45 PM
  2. [SOLVED] IF statement that looks for specific text output of another cells formula
    By cyrusbyte in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-02-2014, 01:31 PM
  3. [SOLVED] IF statement to verify time have returned error output
    By Faridwahidi in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-29-2014, 10:36 AM
  4. macro to compare time between two cells if time matches output in third cell
    By kshitij_dch in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-31-2012, 07:09 AM
  5. How to totalise time formatted cells
    By olafurbj in forum Excel General
    Replies: 13
    Last Post: 09-16-2011, 12:32 PM
  6. Nested If Statement using Time formatted cells
    By tcowen61 in forum Excel General
    Replies: 5
    Last Post: 09-04-2011, 05:52 AM
  7. Add values to time formatted cells
    By Chutney in forum Excel General
    Replies: 1
    Last Post: 11-30-2009, 07:52 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