+ Reply to Thread
Results 1 to 6 of 6

If a cell contains a number digit

  1. #1
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,702

    If a cell contains a number digit

    Hi

    I would like an if formula which looks in a cell and if it contains any digit thrn it returns "yes" if not "no"

    e.g. 1:
    'AC680000

    Would return "Yes"

    e.g. 2:

    'EXTINC

    Would return "No"

    Can anyone help please?

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,879

    Re: If a cell contains a number digit

    If your Input Text/Number is on Cell A1, Put this in B1

    =IF(SUM(IFERROR(MID(A1,ROW(INDIRECT("A1:A"&LEN(A1))),1)+0,0))>0,"Yes","No")

    Commit using Ctrl+Shift+Enter
    Last edited by NeedForExcel; 06-23-2015 at 05:25 AM.
    Cheers!
    Deep Dave

  3. #3
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,077

    Re: If a cell contains a number digit

    This seems to work but not how I was expecting

    =IF(SUM(ISNUMBER(SEARCH({"0","1","2","3","4","5","6","7","8","9"},A1))+0)<>0,"Yes","No")
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: If a cell contains a number digit

    You can also use:

    =IF(COUNT(FIND({0,1,2,3,4,5,6,7,8,9},A1)),"Yes","No")

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  5. #5
    Valued Forum Contributor
    Join Date
    04-21-2005
    Location
    Southern England
    MS-Off Ver
    Excel for Office 365
    Posts
    1,702

    Re: If a cell contains a number digit

    Thanks all, all 3 worked

  6. #6
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,879

    Re: If a cell contains a number digit

    @pauldaddyadams

    Special-K & XOR have better solutions because they are Non-Array Formulas & do not use Volatile Functions..

    Go for those..

+ 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. [SOLVED] Color a single digit in a mult-digit number cell
    By Phyllis in forum Excel General
    Replies: 8
    Last Post: 09-30-2022, 04:22 PM
  2. [SOLVED] LOTTERY FILTER#4, Find if 1 Digit Sum of 2 Digit or 3 Digit, Single Cell w/ dash
    By david gonzalez in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-08-2014, 12:57 AM
  3. Replies: 4
    Last Post: 09-12-2011, 12:00 PM
  4. Replies: 1
    Last Post: 09-08-2011, 03:06 PM
  5. Replies: 6
    Last Post: 05-10-2011, 11:30 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