+ 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
    32

    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
    Excel 2010 on Linux
    Posts
    6,049

    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
    32

    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 2000/3/7/10/13/16
    Posts
    45,990

    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
    Valued Forum Contributor Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    BKK, Thailand
    MS-Off Ver
    Excel2016
    Posts
    1,319

    Re: Allow only asterisk as input value

    Please try Custom Data validation at A1

    =A1="*"

    change A1 to another cell if needed.
    Bo

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 2000/3/7/10/13/16
    Posts
    45,990

    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
    32

    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 Expert
    Join Date
    09-10-2017
    Location
    Chippenham
    MS-Off Ver
    2013
    Posts
    2,572

    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)

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