+ Reply to Thread
Results 1 to 8 of 8

Allow only asterisk as input value

  1. #1
    Registered User
    Join Date
    11-09-2017
    Location
    Croatia
    MS-Off Ver
    Office 2016
    Posts
    36

    Allow only asterisk as input value

    How can I allow only asterisk (*) as cell input (asterisk as a character not as a wildcard)?

    I tried using Custom as a Validation criteria but not sure what I should put as formula.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,443

    Re: Allow only asterisk as input value

    Perhaps try =~*

  3. #3
    Registered User
    Join Date
    11-09-2017
    Location
    Croatia
    MS-Off Ver
    Office 2016
    Posts
    36

    Re: Allow only asterisk as input value

    Using either "~*" or ~* in the formula field gives the "the value doesn't match the data criteria" error when I enter *.
    Last edited by DavidE21; 01-12-2019 at 12:12 PM.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,917

    Re: Allow only asterisk as input value

    A bit long winded, but try this...
    =MATCH("~*",M4,0)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Allow only asterisk as input value

    Please try Custom Data validation at A1

    =A1="*"

    change A1 to another cell if needed.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,917

    Re: Allow only asterisk as input value

    Quote Originally Posted by Bo_Ry View Post
    Please try Custom Data validation at A1

    =A1="*"

    change A1 to another cell if needed.
    Nicely done

  7. #7
    Registered User
    Join Date
    11-09-2017
    Location
    Croatia
    MS-Off Ver
    Office 2016
    Posts
    36

    Re: Allow only asterisk as input value

    Quote Originally Posted by Bo_Ry View Post
    Please try Custom Data validation at A1

    =A1="*"

    change A1 to another cell if needed.
    This worked great thank you!

    Thank you too FDibbins for your reply.

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

    Re: Allow only asterisk as input value

    Another option would be to use list, rather than custom & enter * as the source.

+ 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. Numbers before 1st asterisk, 2nd asterisk, 3rd asterisk
    By stephme55 in forum Excel General
    Replies: 1
    Last Post: 08-23-2016, 12:57 AM
  2. Using an asterisk
    By NDmad in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-20-2016, 05:14 PM
  3. Worksheetfunction with Asterisk
    By T86157 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-02-2015, 09:05 PM
  4. Asterisk as WildCard
    By yawnzzzz in forum Excel General
    Replies: 1
    Last Post: 04-14-2010, 09:08 AM
  5. How do I eliminate the asterisk.
    By elcasey125 in forum Excel General
    Replies: 4
    Last Post: 12-03-2008, 11:49 AM
  6. [SOLVED] Finding an asterisk
    By Blah in forum Excel General
    Replies: 4
    Last Post: 05-19-2006, 09:45 PM
  7. [SOLVED] asterisk in a cell
    By Caroline41 in forum Excel General
    Replies: 2
    Last Post: 11-30-2005, 01:35 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