Just curious. What does this syntax mean? I used it in one of my formulas an I've seen nothing like it.
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.
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
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"
this formula returns the count of month names that have "a" as the second letterPlease Login or Register to view this content.
Does that help?Please Login or Register to view this content.
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
A search revealed that the following functions support the use of wildcards ("*").
A B 1FUNCTION VERSION 2AVERAGEIF Excel 2007 and later 3AVERAGEIFS Excel 2007 and later 4COUNTIF all versions of Excel 5COUNTIFS Excel 2007 and later 6HLOOKUP all versions of Excel 7MATCH all versions of Excel 8SEARCH all versions of Excel 9SUMIF all versions of Excel 10SUMIFS Excel 2007 and later 11SUMPRODUCT all versions of Excel 12VLOOKUP 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
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)
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks