+ Reply to Thread
Results 1 to 5 of 5

if formula to meet several conditions

  1. #1
    Registered User
    Join Date
    10-09-2012
    Location
    sydney
    MS-Off Ver
    Excel 365
    Posts
    71

    if formula to meet several conditions

    hi

    i need help with an if formula that if all conditions are met it returns 0 and if only some of them are met then it returns the Cost.

    the conditions are as follows :

    if the color is Blue, Red or Yellow, and the age is less than 10 and the cost is less than zero then the return value should be 0.

    if these conditions are not all met then it should return the Cost (the value in column C)

    i have included only a small sample of data the list is much bigger and covers every combination.

    thanks so much!
    Attached Files Attached Files

  2. #2
    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 formula to meet several conditions

    Try in D4 and copy down.

    =IF(OR(AND(A4={"blue","red","yellow"}),AND(B4<10)),0,C4)
    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.

  3. #3
    Registered User
    Join Date
    10-09-2012
    Location
    sydney
    MS-Off Ver
    Excel 365
    Posts
    71

    Re: if formula to meet several conditions

    thanks so much!, thats helped me out a lot

  4. #4
    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 formula to meet several conditions

    .....................

  5. #5
    Registered User
    Join Date
    10-09-2012
    Location
    sydney
    MS-Off Ver
    Excel 365
    Posts
    71

    Re: if formula to meet several conditions

    im having problems with the following sopreadsheet, ive used the formula you sent through but it doesnt seems to be working with all conditions.

    D4 should be returning 0 as the status is Active and the netbalance is less than 0 and the difference in months between Date and DateNOW is less than 6 months? but its returning the value in c4?
    Attached Files Attached Files

+ 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