+ Reply to Thread
Results 1 to 5 of 5

IF or OR function

  1. #1
    Registered User
    Join Date
    08-29-2008
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    68

    IF or OR function

    Hi
    I have a sheet where i need to check 2 cells for details. Th first check is to see if the job is late (ie due date less 2 or 3 days) and the other check is whether the job has been completed.
    Not sure what function to use. I need to see if it meets the criteria in both and then return a value. I think checking to see if it is completed first is the most important, then to chck if it is late.
    I have attached an example.

    Thanks
    Attached Files Attached Files
    Last edited by cell-dweller; 04-12-2010 at 07:13 PM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: IF or OR function

    Quote Originally Posted by cell-dweller
    I think checking to see if it is completed first is the most important, then to chck if it is late.
    Agreed - always order your IF arguments by order of precedence given an IF will exit upon first TRUE.

    Consider: A1 is 10

    =IF(A1>5,"a",IF(A1>8,"b","c"))

    the answer would always be "a" given 10 > 5 though we want "b" that test is never actioned, so:

    =IF(A1>8,"b",IF(A1>5,"a","c"))

    would return "b" correctly - were we to change A1 to 7 we would get "a", to 4 we would get "c"

    Adjusting your formula along similar lines:

    =IF(D3>1,"COMPLETE",IF(A3<($B$1-2),"JOB LATE",""))

  3. #3
    Registered User
    Join Date
    08-29-2008
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    68

    Re: IF or OR function

    Thank You DonkeyOte. That makes sense and the formula work for me. I have one other question though, I need to to fill this formula down and have done conditional formatting to make the "Job Late" stick out.
    Is there a way to hide any remarks until the first date cell has data put in? Otherwise I have a spreadsheet with many lines down of "Job late" in bright red!

  4. #4
    Forum Contributor
    Join Date
    02-24-2010
    Location
    BC, Canada
    MS-Off Ver
    Excel 2010
    Posts
    174

    Re: IF or OR function

    Quote Originally Posted by cell-dweller View Post
    Thank You DonkeyOte. That makes sense and the formula work for me. I have one other question though, I need to to fill this formula down and have done conditional formatting to make the "Job Late" stick out.
    Is there a way to hide any remarks until the first date cell has data put in? Otherwise I have a spreadsheet with many lines down of "Job late" in bright red!
    Start it with =IF(A10="","",......)

    I use A10 to represent the first date, didn't look at your sheet, and the "..." is your current formula.

  5. #5
    Registered User
    Join Date
    08-29-2008
    Location
    Australia
    MS-Off Ver
    2010
    Posts
    68

    Re: IF or OR function

    Thank you.

    This works very nicely.

+ 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