+ Reply to Thread
Results 1 to 4 of 4

Trouble with "and" "if" and "or" functions in excel Formula

  1. #1
    Registered User
    Join Date
    08-28-2010
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    35

    Trouble with "and" "if" and "or" functions in excel Formula

    Hi, I’m having trouble with this excel formula scenario,

    I’m wanting cells “M1” and “N1” to be user input.

    If “M1” = “T” and “N1” = “5” then = “F1” or if “M1” = “T” and “N1” = “6” then “F2”

    or if “M1” = “T” and “N1” = “10” then “F3”

    Thanks.
    Last edited by Markshr; 08-28-2010 at 01:29 AM. Reason: Poor title

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Trouble with Formula

    Welcome to the forum.

    Pleae take a few minutes to read the forum rules, and then amend your thread title accordingly.

    Thanks.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Trouble with "and" "if" and "or" functions in excel Formula

    I am guessing that the latest title is acceptable but it would perhaps be better to revise to something like "Conditional Output"

    =IF(M1="T",IF(N1=5,"F1",IF(N1=6,"F2",IF(N1=10,"F3","?"))),"?")

    the question marks are to account for situations whereby none of the specified conditions hold true (ie either M1 is not T or N1 is something other than 5,6,10

    (if it's not possible for N1 to be something other than 5,6,10 then the above approach can be adjusted accordingly - ie IFs removed)

  4. #4
    Registered User
    Join Date
    08-28-2010
    Location
    Australia
    MS-Off Ver
    Excel 2003
    Posts
    35

    Re: Trouble with "and" "if" and "or" functions in excel Formula

    Thanks for your help!

+ 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