+ Reply to Thread
Results 1 to 8 of 8

Excel not recognize numbers

  1. #1
    Registered User
    Join Date
    05-24-2017
    Location
    Haryana, India
    MS-Off Ver
    MS Office 2007
    Posts
    16

    Excel not recognize numbers

    Dear Members,

    I want to apply the following formula in Cell C2 containing AOJPB6685H

    =ISNUMBER(MID(C2,6,4)) which resulting in False. While i think that result (6685) should be as True. Can anyone help why excel does not recognize 6685 as number.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,928

    Re: Excel not recognize numbers

    Because the cell contains text, not a mixture of text and numbers.

    Try this:

    =VALUE(MID(C2,6,4))
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Excel not recognize numbers

    or
    =ISNUMBER(MID(C2,6,4)*1)

  4. #4
    Registered User
    Join Date
    05-24-2017
    Location
    Haryana, India
    MS-Off Ver
    MS Office 2007
    Posts
    16

    Re: Excel not recognize numbers

    Thanks for the replies

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,928

    Re: Excel not recognize numbers

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

  6. #6
    Registered User
    Join Date
    06-25-2018
    Location
    Luna
    MS-Off Ver
    2013
    Posts
    46

    Re: Excel not recognize numbers

    Quote Originally Posted by AliGW
    Because the cell contains text,
    not a mixture of text and numbers.
    No, the true reason is:
    because MID returns text
    (even if the entire cell is digits).

  7. #7
    Forum Expert
    Join Date
    10-02-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1,222

    Re: Excel not recognize numbers

    As @Pat and only Pat mentions, MID is a text function. Like all text functions, wait for it...it returns text, even if the string is all numeric. ISNUMBER fails because the result returned by MID, despite being all numeric digits, has returned them as text.

    As others have pointed out, conversion will need to take place to convert the result to a numeric value. One method is *1 (as any number times 1 is the same number, and Excel is smart enough to know you cant multiply text so it attempts to treat the text as a number. If its all numeric digits then multiplication is possible with the result being a number). Another method is using the VALUE function or the N function. I believe the difference being the VALUE function can convert a wider range of numbers to a wider range of output (like dates, times, etc), however I would imagine for decimal values and integers that N is more efficient.
    Ways to get help: Post clear questions, explain your overall goal, supply as much background as possible, respond to questions asked of you by those trying to help and post sample(s) files.

    "I am here to help, not do it for people" -Me

  8. #8
    Registered User
    Join Date
    06-25-2018
    Location
    Luna
    MS-Off Ver
    2013
    Posts
    46

    Re: Excel not recognize numbers

    Quote Originally Posted by AliGW View Post
    Try this:

    =VALUE(MID(C2,6,4))
    This works fine where the inspected string -- MID(C2,6,4) -- is indeed a number,
    but fails in the other case --
    try C2 e.g. as 12345678x0 and you get #VALUE!

    davsth got it right, use one of these --
    Please Login or Register  to view this content.
    Last edited by Pat and only Pat; 06-29-2018 at 04:11 AM.

+ 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] Recognize and sum positive negative numbers from a string excel
    By Amolvijay in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-18-2014, 07:24 AM
  2. Trying to get excel to recognize data as numbers
    By jlax34 in forum Excel General
    Replies: 2
    Last Post: 09-25-2013, 05:04 PM
  3. Help debugging! select case does not recognize numbers from range 5 to 9
    By xxgirlinbluexx in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-28-2013, 03:37 AM
  4. Macro To Recognize Numbers?
    By swordswinger710 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-20-2009, 09:32 AM
  5. Replies: 1
    Last Post: 10-07-2006, 01:01 PM
  6. Formulas do not recognize numbers
    By lynnw in forum Excel General
    Replies: 1
    Last Post: 05-24-2006, 06:45 PM
  7. How to format cells to recognize numbers like 1.1.1?
    By GStrawley in forum Excel General
    Replies: 2
    Last Post: 01-27-2006, 03:00 PM
  8. [SOLVED] Excel Won't Recognize Numbers - Can't delete space before data
    By Chris from Boston in forum Excel General
    Replies: 5
    Last Post: 05-24-2005, 07:20 PM

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