+ Reply to Thread
Results 1 to 9 of 9

=IF function with 4 Cells that need compared

  1. #1
    Registered User
    Join Date
    09-25-2013
    Location
    Loysville, PA
    MS-Off Ver
    Excel 2003
    Posts
    22

    =IF function with 4 Cells that need compared

    = IF(AND(L2 >= U2 & M2 >= V2,L2 < U2 & M2 < V2),"No","Yes")

    L2 = 9/21/2013
    U2 = 9/21/2013
    M2 = 23:59
    V2 = 22:05

    I'm Getting Yes for this.... Help please
    Last edited by mmanning; 09-25-2013 at 04:59 PM. Reason: To comply with the rules

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,857

    Re: =IF function with 4 Cells that need compared

    Bump. OP has complied with moderator request.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    06-15-2012
    Location
    Greece
    MS-Off Ver
    Excel 2007
    Posts
    85

    Re: =IF function with 4 Cells that need compared

    Do you mean?

    =IF(AND(L2 >= U2, M2>=V2),"no","yes")

  4. #4
    Registered User
    Join Date
    09-25-2013
    Location
    Loysville, PA
    MS-Off Ver
    Excel 2003
    Posts
    22

    Re: =IF function with 4 Cells that need compared

    No I need to compare the Date and Time(two seperate cells), If the apointment time and date is > the drivers arrival time and arrival date then it should put No in the Late coulmn I created I have the example below in a picture. There will be another post to elaborate on my final goal which I'm sure I will need help with.

    Excel Example.GIF

  5. #5
    Registered User
    Join Date
    09-25-2013
    Location
    Loysville, PA
    MS-Off Ver
    Excel 2003
    Posts
    22

    Re: =IF function with 4 Cells that need compared

    To elaborate on the issue, my final goal is to Find what Pick-ups are late and what deliveries are late then relate them to a graph showing what day of the week holds the most late to see if there is a pattern in missed loads shipping through my company, any Idea's on the Graphing of the week days would be greatly appreciated as well, hope this helps.

  6. #6
    Registered User
    Join Date
    06-15-2012
    Location
    Greece
    MS-Off Ver
    Excel 2007
    Posts
    85

    Re: =IF function with 4 Cells that need compared

    post an example worksheet. Not a pic!

  7. #7
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,857

    Re: =IF function with 4 Cells that need compared

    try: =IF(L2+M2>=U2+V2,"Yes","No")

    The & is an addition for concatenation of text. Excel treats dates and time as numbers. Dates are integers and time are decimals.

  8. #8
    Registered User
    Join Date
    09-25-2013
    Location
    Loysville, PA
    MS-Off Ver
    Excel 2003
    Posts
    22

    Re: =IF function with 4 Cells that need compared

    That is beautifull thansk man!!!

  9. #9
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: =IF function with 4 Cells that need compared

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED",as per our Forum Rule #9. I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

+ 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. Trouble with API
    By pasteis in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-03-2012, 01:34 PM
  2. Trouble with Tab
    By SunOpta in forum Excel General
    Replies: 2
    Last Post: 12-03-2008, 05:20 PM
  3. Big Trouble
    By pba.mike in forum Excel General
    Replies: 1
    Last Post: 03-27-2007, 10:55 AM
  4. [SOLVED] IF trouble
    By Rah in forum Excel General
    Replies: 2
    Last Post: 04-17-2006, 11:10 AM
  5. [SOLVED] If than Else Trouble
    By Goofy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-19-2006, 06:50 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