+ Reply to Thread
Results 1 to 7 of 7

How To Use "if" Formula For Multiple Conditions - Excel

  1. #1
    Registered User
    Join Date
    01-08-2016
    Location
    bangalore India
    MS-Off Ver
    97-2003
    Posts
    12

    How To Use "if" Formula For Multiple Conditions - Excel

    Hi All,

    I am unable to write a formula for the below problem

    If Cell A is "Si" and Cell B is "A00", cell C should return value 100
    If Cell A is "Si" and Cell B is not equal to A00, cell C should return a value 200
    If Cell A is "Me" and Cell B is "A00", cell C should return value 300
    If Cell A is "Me" and Cell B is not equal to A00, cell C should return a value 400
    If cell A is "Co" and Cell B is "A00", cell C should return value 500
    If Cell A is "Co" and Cell B is not equal to A00, cell C should return a value 500

    Kindly suggest solutions

    Thanks in Advance

    Vishwa

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,427

    Re: How To Use "if" Formula For Multiple Conditions - Excel

    Assuming you are on row 1, put this formula in C1:

    =IF(A1="Si",IF(B1="A00",100,200),IF(A1="Me",IF(B1="A00",300,400),IF(A1="Co",IF(B1="A00",500,500),0)))

    I'm not sure if that last 500 (coloured red) is a misprint in your post - maybe 600?

    Copy the formula down as required.

    Hope this helps.

    Pete

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How To Use "if" Formula For Multiple Conditions - Excel

    Hi,

    One way

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    01-08-2016
    Location
    bangalore India
    MS-Off Ver
    97-2003
    Posts
    12

    Re: How To Use "if" Formula For Multiple Conditions - Excel

    Thanks a lot Pete, Formula works great and you were right last value is 600 instead of 500

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How To Use "if" Formula For Multiple Conditions - Excel

    Quote Originally Posted by VishwaRAFA View Post
    Thanks a lot Pete, Formula works great and you were right last value is 600 instead of 500
    ...in which case re post #3 just

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    01-08-2016
    Location
    bangalore India
    MS-Off Ver
    97-2003
    Posts
    12

    Re: How To Use "if" Formula For Multiple Conditions - Excel

    Hello Richard, thanks a lot, formula works!!!!

  7. #7
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,427

    Re: How To Use "if" Formula For Multiple Conditions - Excel

    Glad to help.

    If that takes care of your original question, please select Thread Tools from the menu above your first post and mark this thread as SOLVED.

    Also, since you are relatively new to the forum, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to use "if" formula for multiple conditions
    By harryhu in forum Excel General
    Replies: 6
    Last Post: 06-29-2016, 04:19 PM
  2. [SOLVED] Multiple "IF" formula with "OR" conditions (or a better way?)
    By Cortlyn in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-05-2014, 06:36 PM
  3. [SOLVED] Formula Needed to fill multiple cells with "No" when the word "No" is entered into a cell
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-09-2013, 05:36 PM
  4. Replies: 2
    Last Post: 06-06-2013, 12:45 PM
  5. Average with multiple "or" and "and" conditions
    By lesoies in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-17-2013, 02:41 AM
  6. Defining logic "Yes" or "No" , based on multiple conditions
    By pyol17 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-08-2012, 02:41 AM
  7. Replies: 3
    Last Post: 08-28-2010, 09:31 AM
  8. Replies: 7
    Last Post: 05-13-2006, 05:02 PM

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