+ Reply to Thread
Results 1 to 4 of 4

if or and

  1. #1
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    if or and

    Hi Guys good evening,

    In Cell F2, I have the formula below.

    =IF(OR(AND(E2>=24,D2<=6), AND(E2<=24,D2>=5,OR(D2=1,D2=2))), "Remove", "")

    What this formula should do is... say "Remove" where....

    1, where Col E = 24 weeks or greater and COL D is 6 weeks or less
    2, Where COL E = more than 5 weeks and less than 24 weeks and COL is less than 2

    But it doesnt seem to work. pls see sample attached.

    Small sample attached , thanks for your help.
    Attached Files Attached Files
    Last edited by Blake 7; 01-10-2011 at 07:41 PM.
    Blake 7

    If your question has been answered, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

    If any member's response has helped to solve your problem, please consider using the scales icon on the top right of their post to show your appreciation.

    http://failblog.org/

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: if or and

    Try:

    Please Login or Register  to view this content.
    Cheers,
    Last edited by ConneXionLost; 01-10-2011 at 07:39 PM.
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Valued Forum Contributor Blake 7's Avatar
    Join Date
    10-01-2010
    Location
    Bogota, Colombia
    MS-Off Ver
    Excel 2010 64 bit and Excel 2007,
    Posts
    1,377

    Re: if or and

    Thanks Conex - worked a treat and i have just spotted my error, the second D2 should be an E2!!

    Cheers, have a good evening

  4. #4
    Valued Forum Contributor scottylad2's Avatar
    Join Date
    09-03-2010
    Location
    edinburgh
    MS-Off Ver
    Office 2007 Prof & Office 2010 Student Edition
    Posts
    629

    Re: if or and

    =IF(OR(AND(E2>=24,D2<=6),AND(E2<=24,D2>=5),AND(D2=1,E2=2)),"remove","")
    Windows 7 using Office 2007 & 2010

    Remember your [ code ] [ /code ] tags, makes reading soooo much easier

+ 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