+ Reply to Thread
Results 1 to 13 of 13

Alphanumeric 'ISNUMBER' formula to return 'Yes' or 'No'

  1. #1
    Registered User
    Join Date
    01-03-2013
    Location
    UK
    MS-Off Ver
    Excel 2013
    Posts
    22

    Alphanumeric 'ISNUMBER' formula to return 'Yes' or 'No'

    I have ISNUMBER formulas returning 'Yes' or 'No' and working well (=IF(ISNUMBER(Dashboard!DH6),"Yes","No")). However there are cells with Alphanumeric numbers e.g. JB4LW4J, 5HQ6LK1 etc. and the ISNUMBER formula doesn't work. I don't want or need to split the alphanumeric numbers. If a cell contains an alphanumeric number then I need it to return 'Yes' or 'No'.

    Can anyone help please?

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,751

    Re: Alphanumeric 'ISNUMBER' formula to return 'Yes' or 'No'

    so does that mean - you actually only need to see if the cell is blank ?

    yes or no for alpha and for numbers - covers most entries

  3. #3
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Alphanumeric 'ISNUMBER' formula to return 'Yes' or 'No'

    Are you saying you want it to recognise anything with a numeric digit as a number ?
    Elegant Simplicity............. Not Always

  4. #4
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Alphanumeric 'ISNUMBER' formula to return 'Yes' or 'No'

    Hi RuthieBuxton

    Try the following.

    =IF(ISNUMBER(SEARCH({1,2,3,4,5,6,7,8,9,0},Dashboard!DH6&1234567890)),"Yes","No")
    Regards Kevin


    Merged Cells (They are the work of the devil!!!)

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Alphanumeric 'ISNUMBER' formula to return 'Yes' or 'No'

    Try

    =IF(ISNUMBER(LOOKUP(2^15,SEARCH({0,1,2,3,4,5,6,7,8,9},Dashboard!DH6))),"yes","No")

  6. #6
    Registered User
    Join Date
    01-03-2013
    Location
    UK
    MS-Off Ver
    Excel 2013
    Posts
    22

    Re: Alphanumeric 'ISNUMBER' formula to return 'Yes' or 'No'

    Kevin UK, that was perfect! Thank you very much. You've saved me about ½ day

  7. #7
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Alphanumeric 'ISNUMBER' formula to return 'Yes' or 'No'

    Quote Originally Posted by Kevin UK View Post
    Hi RuthieBuxton

    Try the following.

    =IF(ISNUMBER(SEARCH({1,2,3,4,5,6,7,8,9,0},Dashboard!DH6&1234567890)),"Yes","No")
    That seems to return "yes" for ANY entry, even straight text like "Hello"

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Alphanumeric 'ISNUMBER' formula to return 'Yes' or 'No'

    If you want to know if a cell contains ANY digit anywhere within the cell try this:

    =IF(COUNT(FIND({0,1,2,3,4,5,6,7,8,9},Dashboard!DH6)),"Yes","No")
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Alphanumeric 'ISNUMBER' formula to return 'Yes' or 'No'

    Quote Originally Posted by Kevin UK View Post
    Hi RuthieBuxton

    Try the following.

    =IF(ISNUMBER(SEARCH({1,2,3,4,5,6,7,8,9,0},Dashboard!DH6&1234567890)),"Yes","No")
    That will always return Yes (except if the cell contains an error value).

  10. #10
    Registered User
    Join Date
    01-03-2013
    Location
    UK
    MS-Off Ver
    Excel 2013
    Posts
    22

    Re: Alphanumeric 'ISNUMBER' formula to return 'Yes' or 'No'

    Thanks Jonmo1 and Tony. I did amend it slightly removing the numbers after the 'DH6'. It returned both yes and no after that. Tony, I'll try the formula you've provided too as I've come across another issue.

    Thank you both for your help. Much appreciated

  11. #11
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Alphanumeric 'ISNUMBER' formula to return 'Yes' or 'No'

    Hi
    My fault, should be.
    =IF(ISNUMBER(LOOKUP(20^20,SEARCH({1,2,3,4,5,6,7,8,9},Dashboard!DH6))),"Yes","No")

    Sorry.

  12. #12
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Alphanumeric 'ISNUMBER' formula to return 'Yes' or 'No'

    Quote Originally Posted by Kevin UK View Post
    =IF(ISNUMBER(LOOKUP(20^20,SEARCH({1,2,3,4,5,6,7,8,9},Dashboard!DH6))),"Yes","No")
    Don't mean to rub it in but I think you forgot to include 0 in the number array.

  13. #13
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Alphanumeric 'ISNUMBER' formula to return 'Yes' or 'No'

    Just let us know if you need further assistance on this.

+ 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