+ Reply to Thread
Results 1 to 2 of 2

Problem with If And Or formula

  1. #1
    Registered User
    Join Date
    02-08-2020
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    66

    Problem with If And Or formula

    I'm trying to write an IF AND OR formula whereby it disregards a column with the following text: Arizona, California or Colorado. I've tried writing the formula 2 different ways but either way, it is not recognizing all 3. When I troubleshoot, and only tell it to avoid 1 out of 3, it works, but I can't get it to recognize all 3.
    I've tried writing it these 2 ways:
    - IF(AND(ISNUMBER(SEARCH("new",A7)),C7="",B7<>"Arizona"),"Missing",IF(AND(ISNUMBER(SEARCH("new",A7)),C7="",B7<>"Colorado"),"Missing",IF(AND(ISNUMBER(SEARCH("new",A7)),C7="",B7<>"California"),"Missing","n/a")))

    - IF(AND(OR(B7<>"Colorado",B7<>"Arizona",B7<>"California"),ISNUMBER(SEARCH("new",A7)),C7=""),"Missing","n/a")

    It seems so simple but can't figure out why it wont recognize all 3 exclusions. Sample workbook is attached.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Problem with If And Or formula

    Please try

    =IF(OR($B3="Arizona",$B3="Colorado",$B3="California"),"n/a",IF(AND(ISNUMBER(SEARCH("new",$A3)),C3=""),"missing","n/a"))
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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. [SOLVED] Vlookup Formula mixed with Sumproduct Formula Problem
    By djameshenry30 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-07-2021, 04:52 AM
  2. Replies: 1
    Last Post: 01-06-2014, 03:54 AM
  3. Replies: 7
    Last Post: 02-03-2013, 06:25 PM
  4. Replies: 2
    Last Post: 01-22-2013, 07:09 AM
  5. Problem reading formula with ActiveCell.Formula
    By Matija in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-01-2011, 06:10 AM
  6. Formula Problem
    By superkopite in forum Excel General
    Replies: 5
    Last Post: 02-21-2006, 09:05 AM
  7. Formula problem
    By Bill R in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 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