+ Reply to Thread
Results 1 to 6 of 6

Why do I need to use an & character in front of the quoted wildcard?

  1. #1
    Registered User
    Join Date
    11-05-2023
    Location
    Ohio, USA
    MS-Off Ver
    2310
    Posts
    2

    Question Why do I need to use an & character in front of the quoted wildcard?

    Hello , I am taking excel classes so I am a novice using excel. Currently, I am trying to learn the different kinds of wildcard characters and how to use them. A video I was watching used an & character in front of the quoted asterisk wildcard character within this formula:
    =vlookup(ABC&"*",$A$2:$A$8,1,false)

    Why do I need to use an & character in front of the quoted wildcard?

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Why do I need to use an & character in front of the quoted wildcard?

    The & concatenates the two values together.

  3. #3
    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,463

    Re: Why do I need to use an & character in front of the quoted wildcard?

    In that formula, ABC would be a Named Range. So, here, you are concatenating your wild card with the contents of the Named Range, ABC. If ABC is just text, you could use "ABC*".
    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


  4. #4
    Registered User
    Join Date
    11-05-2023
    Location
    Ohio, USA
    MS-Off Ver
    2310
    Posts
    2

    Re: Why do I need to use an & character in front of the quoted wildcard?

    Thank you! That makes sense!

  5. #5
    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,463

    Re: Why do I need to use an & character in front of the quoted wildcard?

    You're welcome.



    You may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Why do I need to use an & character in front of the quoted wildcard?

    Quote Originally Posted by yellowsun View Post
    A video I was watching used...this formula:
    Was that exactly the same formula? If you are a novice you may not have understood Trevor's reference to named ranges. You question about "&" has been answered, but please let us know if you need us to go into more detail about the ABC part.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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. Suppress blank character in front of line
    By Habiler in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-04-2022, 01:13 PM
  2. [SOLVED] Extra character in front of address
    By pick44 in forum Excel General
    Replies: 3
    Last Post: 03-16-2020, 12:29 PM
  3. ' character in front of text in cells!
    By Paco75 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-13-2012, 07:57 PM
  4. Replace Wildcard with Same Character
    By jmeggers in forum Excel General
    Replies: 6
    Last Post: 10-11-2011, 09:28 PM
  5. How do I use the wildcard character and the NOT function?
    By Bernie Deitrick in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 12:05 PM
  6. How do I use the wildcard character and the NOT function?
    By Bernie Deitrick in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 04:05 AM
  7. Wildcard character
    By agenda9533 in forum Excel General
    Replies: 1
    Last Post: 05-11-2005, 01:06 PM

Tags for this Thread

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