+ Reply to Thread
Results 1 to 2 of 2

Wildcards not working in IF formula?

  1. #1
    Registered User
    Join Date
    03-10-2014
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    70

    Wildcards not working in IF formula?

    I have a drop down list with 3 possibilities:
    Yes
    No
    "?*"


    And then an if formula checking which is chosen:

    "IF(A1=A2, 1, 2)

    The Yes and No options work, but the wildcard one, which should mean any text, doesn't work. I want the third option (currently "?*") to be either yes or no.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Wildcards not working in IF formula?

    Wildcards don't work with comparison operators like =

    ....but they can be used as the criteria in a COUNTIF function so this should work

    =IF(OR(COUNTIF(A1,A2),COUNTIF(A2,A1)), 1, 2)
    Audere est facere

+ 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. Advanced filtering - wildcards not working.
    By bluphoto in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-11-2014, 11:46 AM
  2. Wildcards not working
    By redmarko in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-31-2013, 02:48 PM
  3. Using Wildcards within formula
    By karstens in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-10-2009, 05:46 PM
  4. [SOLVED] Can conditional sum use wildcards in the formula?
    By Biff in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 06:05 AM
  5. Formula Wildcards
    By luke1438 in forum Excel General
    Replies: 0
    Last Post: 01-13-2005, 09:24 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