+ Reply to Thread
Results 1 to 7 of 7

What does this syntax mean? "*"

  1. #1
    Registered User
    Join Date
    12-14-2015
    Location
    North Carolina
    MS-Off Ver
    2010
    Posts
    7

    What does this syntax mean? "*"

    Just curious. What does this syntax mean? I used it in one of my formulas an I've seen nothing like it.
    Last edited by rcork23; 01-04-2016 at 04:32 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,915

    Re: "*"

    Generally, it is used as a "wild card" meaning it can represent one or more non-specific characters.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: "*"

    Certain Excel formulas can use wildcard characters to match one or more characters.
    Typically, a question mark (?) will match any single character. An asterisk (*) will match zero or more characters.

    Example:
    for a list of month names:
    Data Range
    A
    1
    Jan
    2
    Feb
    3
    Mar
    4
    Apr
    5
    May
    6
    Jun
    7
    Jul
    8
    Aug
    9
    Sep
    10
    Oct
    11
    Nov
    12
    Dec

    this formula returns the count of months that begin with "J"
    Please Login or Register  to view this content.
    this formula returns the count of month names that have "a" as the second letter
    Please Login or Register  to view this content.
    Does that help?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: "*"

    In addition to the above asterisk (*) is also used with some array formulas like SUMPRODUCT and other constructs as an AND operator.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: "*"

    A search revealed that the following functions support the use of wildcards ("*").
    A
    B
    1
    FUNCTION VERSION
    2
    AVERAGEIF Excel 2007 and later
    3
    AVERAGEIFS Excel 2007 and later
    4
    COUNTIF all versions of Excel
    5
    COUNTIFS Excel 2007 and later
    6
    HLOOKUP all versions of Excel
    7
    MATCH all versions of Excel
    8
    SEARCH all versions of Excel
    9
    SUMIF all versions of Excel
    10
    SUMIFS Excel 2007 and later
    11
    SUMPRODUCT all versions of Excel
    12
    VLOOKUP all versions of Excel
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  6. #6
    Registered User
    Join Date
    12-14-2015
    Location
    North Carolina
    MS-Off Ver
    2010
    Posts
    7

    Re: "*"

    Just to preface, our formula works just as it should i'm just confused as to why.. ha
    So if my formula is COUNTIF(D:D,"*"& J17 &"*" Where Column D is our target range in which we are finding the duplicates. J17 is the String in which we wanted to count.
    What is the purpose of the Wild Card? (It wont work with out the Wild Card in quotes)

  7. #7
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: "*"

    That formula counts the number of referenced cells that contain the J17 text, anywhere in its contents.
    Last edited by Ron Coderre; 01-04-2016 at 04:53 PM.

+ 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] Excel 2010 -- "Visual Basic" "Macros" and "Record Macro" all disabled.
    By NicholasL in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-07-2017, 06:11 AM
  2. Replies: 1
    Last Post: 08-15-2014, 06:00 AM
  3. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  4. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  5. Replies: 5
    Last Post: 10-12-2010, 06:46 AM
  6. Replies: 5
    Last Post: 06-26-2006, 09:23 PM
  7. 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