+ Reply to Thread
Results 1 to 6 of 6

Using two "NOT"s in one equasion

  1. #1
    Forum Contributor
    Join Date
    02-17-2013
    Location
    israel
    MS-Off Ver
    Excel 2003
    Posts
    106

    Using two "NOT"s in one equasion

    This code is currently working correctly for me in the cell:
    =IF(NOT(F3="Loose"),IF(C3="Yellow",", 1866",IF(C3="White",", 1867",IF(C3="Two Tone",", 1868",IF(C3="Rose",", 1869",IF(C3="White-and-yellow",",1870")))))," ")
    However i would like to add something and i cant figure out where to add it maybe you could help me.

    I would like to add another condition that if C3 is not any of the listed values (Yellow, White , ETC) and f3 does not = "Loose ", then the value 1871 will show.

    Any help would be much appreciated.

    Thanks and have a Great Day

    Joseph

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Using two "NOT"s in one equasion

    Try this

    Put your text strings (Yellow White etc) in a range of cells say G1:G5 (in the same order)

    =IF(F3="Loose","",IF(ISNA(MATCH(C3,G1:G5,0)),", 1871",", "&MATCH(C3,G1:G5,0)+1865))

  3. #3
    Forum Contributor
    Join Date
    02-17-2013
    Location
    israel
    MS-Off Ver
    Excel 2003
    Posts
    106

    Re: Using two "NOT"s in one equasion

    Jonmo1,

    thanks but it didnt work... any other ideas ?

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Using two "NOT"s in one equasion

    Quote Originally Posted by singer.joseph View Post
    Jonmo1,

    thanks but it didnt work... any other ideas ?
    Works for me
    2Notsalternate.xlsx


    In what way did it not work for you?

  5. #5
    Forum Contributor
    Join Date
    02-17-2013
    Location
    israel
    MS-Off Ver
    Excel 2003
    Posts
    106

    Re: Using two "NOT"s in one equasion

    I am not sure i did exactly what you told me and the cell returned an empty value

    Additionally in my code it is If(NOT(c3="loose")...... in the one that you posted its IF(c3="loose")... could that be the issue

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Using two "NOT"s in one equasion

    Quote Originally Posted by singer.joseph View Post
    Additionally in my code it is If(NOT(c3="loose")...... in the one that you posted its IF(c3="loose")... could that be the issue
    Actually, in your code it was if(NOT(F3="loose")
    So your original posted formula checks F3 for "loose", but the rest of the if's are looking at C3...is that the problem maybe?


    and the removing of the NOT is not the issue. I just reversed the logic of the IF.

    Example
    =IF(NOT(A1="x"),"YES","") <-Notice the "Yes" comes first as the result when the IF is TRUE
    Is the same as
    =IF(A1="x","","YES") <-Notice the "Yes" comes last as the result when the IF is FALSE

+ 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