+ Reply to Thread
Results 1 to 7 of 7

Combined IF and OR function

  1. #1
    Registered User
    Join Date
    02-16-2015
    Location
    Ireland
    MS-Off Ver
    2010
    Posts
    64

    Combined IF and OR function

    Hi All,

    Sorry if this is a silly question but can anyone see a problem with the following?

    =IF(OR(SUM(F2:K2)<0.99, 15<L2<30),”Pass”,”Fail”)

    F2 to k2 are faults and a 1 is entered in the column if applicable. L2 is a measurement and needs to be between 15 and 30. If no faults are found and a measurement of 15-30 is achieved then the item will pass.

    Any help would be greatly appreciated.

    Thanks,

    Adam

  2. #2
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: Combined IF and OR function

    Try this...
    =IF(OR(SUM(F2:K2)<0.99,AND(L2>15,L2<30)),"Pass","Fail")

  3. #3
    Registered User
    Join Date
    02-16-2015
    Location
    Ireland
    MS-Off Ver
    2010
    Posts
    64

    Re: Combined IF and OR function

    Thanks for the reply,

    I am not getting an error anymore, however for some reason i am only retrieving "pass". That would mean the criteria is always coming back as true.

  4. #4
    Registered User
    Join Date
    02-16-2015
    Location
    Ireland
    MS-Off Ver
    2010
    Posts
    64

    Re: Combined IF and OR function

    There is no value put in to the cells between F2 and K2. That might cause a problem.

  5. #5
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: Combined IF and OR function

    Yes, remember, an OR statement just needs one TRUE to become TRUE. If you have no values from F2:K2, then SUM(F2:K2)<0.99 will always be TRUE.

  6. #6
    Registered User
    Join Date
    02-16-2015
    Location
    Ireland
    MS-Off Ver
    2010
    Posts
    64

    Re: Combined IF and OR function

    I reversed the formula so true statements return a FALSE and the criteria was reversed. I applied so conditional formatting and it looks sweet. Thanks for the help

  7. #7
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: Combined IF and OR function

    No problem... good to hear that you tweaked it to work... nice work...

+ 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 function combined with weekday
    By ImPerplexed in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-15-2013, 08:20 PM
  2. [SOLVED] Combined AND function not reading output of the function of another cell
    By Duoae in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-19-2012, 09:22 AM
  3. Combined ARRAY and IF function
    By z3tls0 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-07-2010, 03:30 PM
  4. IF combined with AND function problem
    By ginamckee in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 08-22-2007, 04:55 PM
  5. [SOLVED] vlookup / len function combined
    By jamesg-fid in forum Excel General
    Replies: 3
    Last Post: 03-10-2005, 12:06 PM

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