Closed Thread
Results 1 to 3 of 3

some numbers formatted as text

  1. #1
    Registered User
    Join Date
    07-12-2010
    Location
    North Ayrshire uk
    MS-Off Ver
    Excel 2016
    Posts
    10

    some numbers formatted as text

    I have had a problem with some data not appearing to be what I thought it was. A column that appeared to be all numbers contained some text fields.

    I'd been looking for a solution and with the help of members (of another forum) I think I now have a solution.

    If I have a character 1 in a cell - then that cell is 1 character long and has the ASCII code 49 but when I apply isnumeric then I may get TRUE for some cells and FALSE for other cells.

    Not having control of the data source I wanted to be able to validate the data - prior to use.
    So simple but just select the range then multiply the source by 1 and replace

    Please Login or Register  to view this content.
    Hope this is useful

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: some numbers formatted as text

    Thanks for the macro
    Adding 0 also does the trick and it can be done with Paste Special Values - Multiply ( after copying 1) or add ( after copying 0)
    If the values are involved in calculations they are coerced automatically within the calcualtion

  3. #3
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: some numbers formatted as text

    Duplicate thread. Same post and additional information here: http://www.excelforum.com/excel-prog...d-as-text.html

    Thread is now closed.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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