+ Reply to Thread
Results 1 to 4 of 4

Thread: combining 3 conditions into 1 formula

  1. #1
    Registered User
    Join Date
    06-15-2011
    Location
    Zurich, Switzerland
    MS-Off Ver
    Excel 2007
    Posts
    2

    combining 3 conditions into 1 formula

    Hi everybody

    This is my first post, so please, don't kill me if it looks different then the ones you are used to.

    I need to combine 3 conditions into 1 formula and just can't get the correct writting.
    Hopefully you will be able to help me.

    The formula needs to combine the following:

    If G2 is 1 and H2 is 1 = No FSM
    If G2 is 0 = no FSM
    In all other cases it needs to be 57

    I tried it with several combinations of =IF(AND...... =IF(AND(OR...... =IF(G2....(AND... but as said before, I did not get the correct result yet.

    I very much appreciate if someone could help me!

    Thanks a lot and best regards
    Paolino

  2. #2
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    19,208

    Re: combining 3 conditions into 1 formula

    Try this:

    =IF(OR(G2=0, AND(G2=1, H2=1)), "no FSM", 57)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    06-15-2011
    Location
    Zurich, Switzerland
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: combining 3 conditions into 1 formula

    this is it!

    Thank you!!!

  4. #4
    Forum Guru JBeaucaire's Avatar
    Join Date
    03-21-2008
    Location
    Bakersfield, CA
    MS-Off Ver
    2010
    Posts
    19,208

    Re: combining 3 conditions into 1 formula

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    “None of us is as good as all of us” - Ray Kroc
    “Actually, I *am* a rocket scientist.” - JB (little ones count!)

+ 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.2.0