+ Reply to Thread
Results 1 to 25 of 25

Search A2 to make sure doesn't contain Alphabet

  1. #1
    Forum Contributor
    Join Date
    10-01-2013
    Location
    United States
    MS-Off Ver
    Microsoft version 365
    Posts
    110

    Search A2 to make sure doesn't contain Alphabet

    Search A2 to make sure doesn't contain Alphabet or Special character. Please help!

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,885

    Re: Search A2 to make sure doesn't contain Alphabet

    Do you mean that you need data validation for numeric only?

    Just use data validation formula =ISNUMBER($A$2)
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Search A2 to make sure doesn't contain Alphabet

    Do you mean doesn't contain the word 'alphabet' or doesn't contain any letter FROM the alphabet. And what special character are you interested in. We're pretty good at lots of stuff but we're not psychics.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: Search A2 to make sure doesn't contain Alphabet

    Could you check if the cell is numeric??

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    10-01-2013
    Location
    United States
    MS-Off Ver
    Microsoft version 365
    Posts
    110

    Re: Search A2 to make sure doesn't contain Alphabet

    1. Does not contain alphabet or special characters [A-Z],[!@#$%^&*()_+-=\;:’”,.<>/?]

  6. #6
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Search A2 to make sure doesn't contain Alphabet

    If the contents in a cell are neither letters nor symbols, that only leaves numbers, correct?

    If you want to check to see if the cell contains anything other than a number, you can use this:

    =IF(ISERROR(A2+0),"Does Contain Them","Does Not Contain Them")

  7. #7
    Forum Contributor
    Join Date
    10-01-2013
    Location
    United States
    MS-Off Ver
    Microsoft version 365
    Posts
    110

    Re: Search A2 to make sure doesn't contain Alphabet

    That works for the alphabet but what if I want to check the length of characters too. Anything greater than 8 equal No else Yes

  8. #8
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Search A2 to make sure doesn't contain Alphabet

    I'm not sure who you are responding to. Maybe this?

    =IF(OR(ISERROR(A2+0),LEN(A2)>8),"No","Yes")
    Last edited by 63falcondude; 02-20-2018 at 03:19 PM. Reason: Missed the ) after 8.

  9. #9
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,885

    Re: Search A2 to make sure doesn't contain Alphabet

    ... if validation formula
    =ISNUMBER($A$2)*(LEN($A$2)<9)

    If standard formula...
    =IF(AND(ISNUMBER($A$2),LEN($A$2)<9),"GOOD","BAD")

  10. #10
    Forum Contributor
    Join Date
    10-01-2013
    Location
    United States
    MS-Off Ver
    Microsoft version 365
    Posts
    110

    Re: Search A2 to make sure doesn't contain Alphabet

    Neither formula worked. It says I have too many arguments.

  11. #11
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Search A2 to make sure doesn't contain Alphabet

    Whoops, sorry:

    =IF(OR(ISERROR(A2+0),LEN(A2)>8),"No","Yes")

  12. #12
    Forum Contributor
    Join Date
    10-01-2013
    Location
    United States
    MS-Off Ver
    Microsoft version 365
    Posts
    110
    Quote Originally Posted by 63falcondude View Post
    Whoops, sorry:

    =IF(OR(ISERROR(A2+0),LEN(A2)>8),"No","Yes")
    That worked!

  13. #13
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Search A2 to make sure doesn't contain Alphabet

    Great!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  14. #14
    Forum Contributor
    Join Date
    10-01-2013
    Location
    United States
    MS-Off Ver
    Microsoft version 365
    Posts
    110

    Re: Search A2 to make sure doesn't contain Alphabet

    For row 6 it should have been a "No" because it contains a character. I can't figure out how to attach the spreadsheet, but I have a value A2345678. If it doesn't contain all numbers, then it should be "No". I don't want any alphabet or special characters. Or anything greater or less than 8

  15. #15
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Search A2 to make sure doesn't contain Alphabet

    The formula from post #11 does return No with A2345678 in A2.

    To upload an Excel workbook, follow these steps:
    1) Click on "Go Advanced"
    2) Click on "Manage Attachments"
    3) Click on "Choose File"
    4) Choose your file and click on "Open"
    5) Click on "Upload"
    6) Click on "Close this window"

  16. #16
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Search A2 to make sure doesn't contain Alphabet

    using 63falcondude's formula on A2345678 I get "No"
    if you want to post a sheet go to the "go advanced" below the reply window, then midway down is manage attachments and click on that and follow the instructions.
    one hint I found is it is best to save your sheet to the desktop as it is easier to grab from there when using browse.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  17. #17
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Search A2 to make sure doesn't contain Alphabet

    Also,

    Post #7:
    Quote Originally Posted by sonyat810 View Post
    Anything greater than 8
    Post #14:
    Quote Originally Posted by sonyat810 View Post
    anything greater or less than 8
    You're changing your criteria. Which is it?

  18. #18
    Forum Contributor
    Join Date
    10-01-2013
    Location
    United States
    MS-Off Ver
    Microsoft version 365
    Posts
    110

    Re: Search A2 to make sure doesn't contain Alphabet

    Capture.PNG

    Please see the attachment

  19. #19
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Search A2 to make sure doesn't contain Alphabet

    I think you changed his formula from OR to AND.

    EDIT: that isn't the formula 63FD gave you.

  20. #20
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Search A2 to make sure doesn't contain Alphabet

    Where did that formula come from? That is not the same as any of the suggested formulas!

    Also, you uploaded a picture instead of an Excel workbook.

  21. #21
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,885

    Re: Search A2 to make sure doesn't contain Alphabet

    Looks like you combined my formula and 63falcondude's formula.

    Mine checks for both being TRUE, 63falcondude's formula checks if one or the other condition is FALSE.

    Hence, order of "GOOD","BAD" and "NO","YES" is reversed in IF formula.

  22. #22
    Forum Contributor
    Join Date
    10-01-2013
    Location
    United States
    MS-Off Ver
    Microsoft version 365
    Posts
    110

    Re: Search A2 to make sure doesn't contain Alphabet

    If there is an alphabet or number length greater or less than 8, I want it to say "No". The attachment button isn't allowing me to attach the file

  23. #23
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Search A2 to make sure doesn't contain Alphabet

    See formula in post #11...

    You still haven't answered my question from post #17.

  24. #24
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,885

    Re: Search A2 to make sure doesn't contain Alphabet

    Do you mean to say that if number in cell is not equal to 8, then it should return "No"?

    Then change my formula to...
    =IF(AND(ISNUMBER($A$2),LEN($A$2)=8),"Yes","No")

    63falcondude's formula to...
    =IF(OR(ISERROR(A2+0),LEN(A2)<>8),"No","Yes")

  25. #25
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Search A2 to make sure doesn't contain Alphabet

    @Sonya

    To save several people lots of time skating around this would you upload the workbook please - you have been asked.
    Be sure to manually add the results you expect to see for different permuations of your data.

    The paperclip attach icon isn't working. Click on the Go Advanced button and then go to the 'Manage Attachments' option underneath the posting panel.
    Last edited by Richard Buttrey; 02-22-2018 at 01:42 PM.

+ 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. Make alphabet on excel
    By ninhmoon in forum Excel General
    Replies: 3
    Last Post: 07-28-2017, 12:46 AM
  2. Formula to search database and return data based on alphabet (NEED HELP)
    By galbatrox9 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-19-2016, 02:58 PM
  3. Replies: 3
    Last Post: 09-07-2014, 12:25 AM
  4. Replies: 5
    Last Post: 04-13-2010, 07:50 AM
  5. Vlookup function not working if alphabet coming after '-' in the search term
    By ElerOcean in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-15-2007, 11:40 AM
  6. [SOLVED] Doesn't it make you mad??
    By Danny Lewis in forum Excel General
    Replies: 9
    Last Post: 08-22-2006, 08:00 AM
  7. Replies: 2
    Last Post: 07-26-2005, 03:05 AM

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