+ Reply to Thread
Results 1 to 5 of 5

An IF formula result that based on multiple criteria

  1. #1
    Registered User
    Join Date
    05-15-2013
    Location
    Wales
    MS-Off Ver
    Excel 2010
    Posts
    13

    An IF formula result that based on multiple criteria

    Hi all,

    Long time fan of the forum, first time poster. Majority of problems I have are resolved from someone else's query. This one I'm sure is a simple fix but I cannot get the result!

    I want to search multiple rows (using an IF formula) for certain text items, being individuals initials. If the rows contain one of the 5 initials, the output should be 1 or 0 if false.

    Sounds simple and I know I'm going to kick myself when I see the result!

    Thanks in advance.

    JF

  2. #2
    Registered User
    Join Date
    08-20-2012
    Location
    High Wycombe, England
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: An IF formula result that based on multiple criteria

    Hi John,

    If you can post an example doc then it would be much easier to explain
    Please add Rep if I've helped

  3. #3
    Registered User
    Join Date
    05-15-2013
    Location
    Wales
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: An IF formula result that based on multiple criteria

    Hi,

    Sorry but my employer set restrictions on cloud services so I wouldn't be able to upload the example.

    I'll try to explain it in the way that I want the formula to work:

    If cells from row A1 to A1000 have "AA" or "AB" or "AC", then cell B1 = "1" if true and "0" if false.

    Thanks,

    JF

  4. #4
    Valued Forum Contributor
    Join Date
    10-26-2008
    Location
    Birmingham, UK
    MS-Off Ver
    All versions up to 2010
    Posts
    1,025

    Re: An IF formula result that based on multiple criteria

    Hi
    Paste this formula into Cell B1 and copy down your data as far as you need. It will return TRUE or FALSE:
    =OR(A1="AA",A1="AB",A1="AC")
    Hope this helps.
    Tony

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: An IF formula result that based on multiple criteria

    Enter the initials in a horizontal range of cells:

    C2: AA
    D2: AB
    E2: AC

    Then, use this array formula**:

    =--OR(A2:A100=C2:E2)

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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