+ Reply to Thread
Results 1 to 3 of 3

Nested IF / AND statements excel 2010

  1. #1
    Registered User
    Join Date
    02-01-2012
    Location
    Manchester, UK
    MS-Off Ver
    Excel 2010
    Posts
    97

    Nested IF / AND statements excel 2010

    Hi Everyone,

    I have writen this formula:-
    =IF(AND(G32="Random",H32="Operator"),"0.9"),IF(AND(G32="Random",H32="Inspector"),"0.1","1")

    In column G I have either "Random", "Mandatory" or its blank
    In column H I have either "Operator", "inspector" or its blank

    What I am trying to do is:-

    When "Random" and "Operator" then write "0.9"
    When "Random" and "Inspector" then write "0.1"
    For all other scenarios I would like "1"

    Can anyone point me in the right direction?

    Thanks
    Alex

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Nested IF / AND statements excel 2010

    hi Alex, almost there~
    =IF(AND(G32="Random",H32="Operator"),0.9,IF(AND(G32="Random",H32="Inspector"),0.1,1))

    you dont need the results as text, do you? if you do, then wrap with quotes like this:
    =IF(AND(G32="Random",H32="Operator"),"0.9",IF(AND(G32="Random",H32="Inspector"),"0.1","1"))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    02-01-2012
    Location
    Manchester, UK
    MS-Off Ver
    Excel 2010
    Posts
    97

    Re: Nested IF / AND statements excel 2010

    Superb! Thank you very much benishiryo!

    Looks like I was too keen with the brackets!

+ 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