Excel - Allow only Text or only Numbers Entered into a Cell in Excel - Custom Formulas

Premium Course: www.teachexcel.com/premium-co...
This tutorial shows you how to limit the entry of data into a cell to only those characters that are numeric or contained within the alphabet. You will be presented with a complex and easily customizable formula that will allow you to determine what a user can enter into a cell, combined with data validation. This tutorial will cover the steps needed to customize the formula and anything else that is required to implement this into a spreadsheet in Excel.

Пікірлер: 54

  • @AnalyticsInDetails
    @AnalyticsInDetails6 жыл бұрын

    I searched more than 100 formulas but this one is the BEST. Thank you....

  • @TeachExcel
    @TeachExcel11 жыл бұрын

    The function =ISTEXT() allows for non-alphabetical characters to be input into a cell. And =ISNUMBER() also allow for characters that are not strictly numbers but which construct numbers, such as decimal points (periods). So, if you really want to limit the input to just text or number characters, you should use the formula in the tutorial or a similar formula. Plus, the formula in the video allows for a great deal of customization as far as which characters to allow.

  • @TsiriniainaRakotonirina
    @TsiriniainaRakotonirina6 жыл бұрын

    Thank you, thank you, thank you! This is the only one that works after more than 50links!

  • @gavco11
    @gavco117 жыл бұрын

    thank you for your help

  • @TeachExcel
    @TeachExcel11 жыл бұрын

    Try something like this: /free-excel-macros/m-54,delete-text-from-cells.html at the teachexcel website. I can't put links here, you really need to go to the forum so you can get a more complete answer that could also include an attached worksheet with a working macro sample. But, try the macro above and see if that works.

  • @accord536
    @accord5369 жыл бұрын

    Thank you sir, i've been looking for this for a while, but there is a problem The issue is i want all the cells in D column to type only alphabet but also to be a minimum of 3 letters and maximum of 10 letters in each cell not more or less. If I use the formula you've showed in the video it does restrict to letters but will allow to type as much as they want? Can you help me please if possible?

  • @shaunmoore3168
    @shaunmoore316810 жыл бұрын

    Great tutorial...but how do I do the same thing with a range of cells or a group of cell ranges....I have tried a few way I thought would work, but I cannot get it to work properly....please help....

  • @TeachExcel
    @TeachExcel11 жыл бұрын

    This is really much much easier to solve on the forum excelkey.com, where you can include a sample.

  • @mritunjaisharma1242

    @mritunjaisharma1242

    4 жыл бұрын

    how we put validation on our word that word should contain at least 3 and not more than 30, can you tell me formula

  • @duckgoesquacklmao
    @duckgoesquacklmao9 жыл бұрын

    Could I use this with ImportHTML and how?

  • @realflickchick
    @realflickchick6 жыл бұрын

    The formula doesn't allow for periods in decimal value numbers. I tried adding the period to the formula but it gave me the error because of the txt value (the period)

  • @lorddracula2739
    @lorddracula27392 жыл бұрын

    hi! how does it work if we've to enter some specific words? lets say words like "good" and "bad"

  • @socalledvinoth
    @socalledvinoth7 жыл бұрын

    how to allow the cell only text/numbers without show any error. Ex; if user type number in the text cell means it wont display

  • @Excel527
    @Excel52711 жыл бұрын

    I have a question please how Separate figures from characters within the same cell by using functions

  • @SolidSmoke2021
    @SolidSmoke20212 жыл бұрын

    Just trying to add the numbers -0.50,-0.75 and excel keeps trying to turn that into a formula instead of just accepting it as text. =ISTEXT() and =ISNUMBER() both don't work.

  • @imamhussain2026
    @imamhussain20266 жыл бұрын

    Dear Sir/Madam , Actually When I Type Suppose 5 Its Coming 0.5 Why Its Comingn Like That Can U Answer Me. Thank You

  • @thefinest5271
    @thefinest52716 жыл бұрын

    How can we able to show "vowels" in any name we enter??

  • @ericjohnson7315
    @ericjohnson731510 жыл бұрын

    Word to the wise, this method does NOT prevent special characters. For example, if you are only trying to allow a-z, the user can still type in [;'[];[.;ABCD and they will not get prompted with the validation message. Best solution here is to learn VBA and code yourself a little worksheet_change event to target your cell(s) :)

  • @Excel527
    @Excel52711 жыл бұрын

    I think use istext & isnumber easier and achieve the correct result

  • @waelalzahaykah6972
    @waelalzahaykah69723 жыл бұрын

    Hello, how can i force the cell to take formulas only

  • @manishkdas45
    @manishkdas453 жыл бұрын

    What if I only want to allow dates, what condition should I enter???

  • @Greensandmountains
    @Greensandmountains3 ай бұрын

    What about date format?

  • @ajiinfor7874
    @ajiinfor7874 Жыл бұрын

    Sir i have problem, and until now cannot be solve. My problem is i have 2 input device keyboard and kaliper machine, and my boss told me, that user dont input number to cell in excel using keyboard, user must be using kaliper machine to input number on cell in excel document. How can i do that? Please 🙏

  • @rrovers9109
    @rrovers91098 жыл бұрын

    thanks for the form. in my file I want to max of 8 charaters of a number. how can this be added in the form

  • @novyperocho
    @novyperocho10 жыл бұрын

    Please put the formula you used in the information. Thank you!

  • @LucasTarquino

    @LucasTarquino

    4 жыл бұрын

    =IF(F1="", TRUE, IF(ISERROR(SUMPRODUCT(SEARCH(MID(F1,ROW(INDIRECT("1:"&LEN(F1))),1), "abcdefghijklmnopqrstuvwxyz"))), FALSE, TRUE))

  • @alexism5687

    @alexism5687

    3 жыл бұрын

    @@LucasTarquino Thankyou!!

  • @cncrim1
    @cncrim13 жыл бұрын

    Question: how about any whole number greater and equal to 0, and only allow letter X to be input?

  • @TeachExcel

    @TeachExcel

    3 жыл бұрын

    You can do whatever you want with custom formulas in data validation - just make sure the result of the formula evaluates to True or False

  • @lisaedgar6337
    @lisaedgar63375 жыл бұрын

    how do I restrict a column to allow only 8,12,13,14 digit number values to be entered into each cell

  • @belindalebbink6027

    @belindalebbink6027

    5 жыл бұрын

    You can use List in Validation, so the user can only choose from these numbers.

  • @manuvsteal
    @manuvsteal3 жыл бұрын

    Where did you get the formula from? It's copied and pasted, and not explained where it is copied from!

  • @Excel527
    @Excel52711 жыл бұрын

    I have a problem because there is no space between the numbers and letters

  • @TeachExcel
    @TeachExcel11 жыл бұрын

    Look at this tutorial and see if it helps: watch?v=zghj4leb2dg Otherwise, can you be more specific?

  • @ezazmmashraken8252
    @ezazmmashraken82527 жыл бұрын

    how to write 8 or 9 digit based on other cell?

  • @ezazmmashraken8252

    @ezazmmashraken8252

    7 жыл бұрын

    or write 13 or 17

  • @emcstatic
    @emcstatic7 жыл бұрын

    i got an error :(

  • @CirbyWeh
    @CirbyWeh4 жыл бұрын

    How does this Video have 1/3 negative comments? Wtf!?

  • @Shantanu845
    @Shantanu845 Жыл бұрын

    Please give formula here in comments

  • @bobbyshabangu
    @bobbyshabangu5 жыл бұрын

    You are too fast, how did you put the default data validation box there!

  • @TeachExcel

    @TeachExcel

    5 жыл бұрын

    Are you talking about the formula or the keyboard shortcut (Alt+D+L)? If you have a more specific question, you can always ask on our forum and upload a sample file: www.teachexcel.com/talk/microsoft-office?src=yt

  • @mhdammarnash
    @mhdammarnash8 жыл бұрын

    why your way is complicated? It's too easy hust uses =isnumber() in the data validation under customs

  • @juliusbiliran

    @juliusbiliran

    8 жыл бұрын

    +Ammar Nashawati Would this work if I only want letters in my validated cells? I don't think so. Have you tried it?

  • @LawrenceFleming1
    @LawrenceFleming111 жыл бұрын

    tha

  • @gaboragotai
    @gaboragotai11 ай бұрын

    SOMEONY CAN COPY THIS FORMULA TO ME BECAUSE ITS CRAZY LOOOONG!!!

  • @unaismamun7905
    @unaismamun79053 жыл бұрын

    It doesn't work

  • @AznCoolDragon
    @AznCoolDragon4 жыл бұрын

    Something that takes 30s to describe, why 5 min? Useless