+ Reply to Thread
Results 1 to 3 of 3

Formula for multiple criterias and multiple results - IF and AND?

  1. #1
    Registered User
    Join Date
    09-14-2020
    Location
    Singapore
    MS-Off Ver
    Microsoft Office 365
    Posts
    9

    Formula for multiple criterias and multiple results - IF and AND?

    Hi

    I am trying to set up an IF and AND function formula, but am getting confused trying to sort this out by myself.

    I have a column (Column A) that will indicate either "W" or "B".
    Then I have another column (Column B) that is manually input with a number, or the text "ND".

    If Column A is "W" and Column B is "ND", then result in Column C should be ND.
    If Column A is "B" and Column B is "ND", then result in Column C should be ND.
    But...
    If Column A is "W" and Column B is a number e.g. 3.3, then result in Column C should be calculated with a formula (Formula A).
    If Column A is "B" and Column B is a number e.g. 3.3, then result in Column C should be calculated with another formula (Formula B).

    Can someone advise how I can set this for cells in Column C?

    Thank you.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,640

    Re: Formula for multiple criterias and multiple results - IF and AND?

    Maybe this?

    =IF(AND(OR(A1="W",A1="B"),B1="ND"),"ND",IF(A1="W",formulaA,formulaB))

    Obviously you need to put the formulae in.

    These things are much easier to help with if you provide a sample workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    09-14-2020
    Location
    Singapore
    MS-Off Ver
    Microsoft Office 365
    Posts
    9

    Re: Formula for multiple criterias and multiple results - IF and AND?

    Hi

    Thank you, that helped.
    Apologies I wasn't able to post a sample file due to restrictions on the laptop I was using to ask the question then.

+ 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. Replies: 6
    Last Post: 02-23-2018, 07:09 PM
  2. [SOLVED] Which formula to use with multiple criterias?
    By sbea114 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-25-2017, 12:43 AM
  3. Using multiple search criterias, get results stacked in one line of text
    By pulari in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-18-2017, 04:40 AM
  4. Formula to get an value from multiple criterias
    By Vikramchetan in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-19-2017, 10:46 AM
  5. IF formula or multiple criterias
    By Doongchen in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-08-2016, 10:32 PM
  6. [SOLVED] Searching Multiple Criterias and Returning Multiple Results
    By boaesh in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-13-2014, 11:02 AM
  7. [SOLVED] VBA for extracting different results based on multiple criterias
    By siduri in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-29-2012, 10:09 AM

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