+ Reply to Thread
Results 1 to 4 of 4

If/then/and

  1. #1
    Registered User
    Join Date
    10-23-2007
    Posts
    19

    If/then/and

    I want to write a statement saying this in column H...

    IF A2=ED or 17 then G2<=1,1,0 AND if A2 is not ED or 17 then G2<=3,1,0

    Basically...if A2 equals 17 or ED I want column H to look at G2 for 1 or lower and give it a 1 if it is one or lower. If it is 2 or higher then give it a 0.

    If A2 is not 17 or ED then I want to use 3 as the criteria for getting a 1 or 0.

    Is this possible? If so, what is the formula?

  2. #2
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: If/then/and

    Try this one

    Please Login or Register  to view this content.
    HTH
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, ?Born in USSR?
    Vusal M Dadashev

    Baku, Azerbaijan

  3. #3
    Registered User
    Join Date
    10-23-2007
    Posts
    19

    Re: If/then/and

    thanks a million! That formula really got me on the right path. This ended up giving me the fix:

    =IF(OR(A2={17,"ED"}),IF(G2<=1,1,0),IF(G2<=3,1,0))

    Saves a bunch of time

  4. #4
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: If/then/and

    If it meets your requirements, mark the thread as "SOLVED", and don't forget to add reputation by pressing blue scales on the right of your screen

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ 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