+ Reply to Thread
Results 1 to 4 of 4

Thread: How do I tell Excel a Number is a Number

  1. #1
    Forum Contributor
    Join Date
    09-23-2008
    Location
    Rhode Island
    MS-Off Ver
    Excel for Mac 2011 and 2007 on PC
    Posts
    121

    How do I tell Excel a Number is a Number

    I have tried selecting cells that contain numerical entries but are being viewed as text and formating them as numbers but much of the time, this does not change how excel sees the entries.

    There is nothing in the cell except numerical characters.

    In this instance they came in from a code copying characters out of a numerical cell because some coding was changed from 4 digit to 5 digit and I'm trying to backtrack.

    The Code that created the cells looks like this

    =LEFT(A2,2)&RIGHT(A2,2)
    where A2 has the numerical value 28058

    and the result desired is the numerical value 2858.

    Instead I'm getting a text value 2858, which doesn't surprise me but I can't figure out how to tell excel that this cell is a number.

    Have 60 or so of these to do and I can do it by hand, but I've had this kind of problem in other settings and thought I'd ask since I'm on a roll.

    Thanks

    Brian

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & read 2007
    Posts
    15,979

    Re: How do I tell Excel a Number is a Number

    Hello Brian,

    Use the Value function to convert the text into a number...
    =VALUE(LEFT(A2,2)&RIGHT(A2,2))
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Contributor
    Join Date
    09-23-2008
    Location
    Rhode Island
    MS-Off Ver
    Excel for Mac 2011 and 2007 on PC
    Posts
    121

    Re: How do I tell Excel a Number is a Number

    Quote Originally Posted by Leith Ross View Post
    Hello Brian,

    Use the Value function to convert the text into a number...
    =VALUE(LEFT(A2,2)&RIGHT(A2,2))
    Thank you Leith. Makes sense. Running out the door.
    Will try later and then mark solved.

    Brian

  4. #4
    Forum Contributor
    Join Date
    09-23-2008
    Location
    Rhode Island
    MS-Off Ver
    Excel for Mac 2011 and 2007 on PC
    Posts
    121

    Re: How do I tell Excel a Number is a Number

    Quote Originally Posted by Leith Ross View Post
    Hello Brian,

    Use the Value function to convert the text into a number...
    =VALUE(LEFT(A2,2)&RIGHT(A2,2))
    Works like a charm. I wonder why formatting as a number doesn't do the same thing? On some occasions that seems to work for me when I have numerical values as text and on others it doesn't. I just haven't logically walked that back to the point of figuring out what is different when the formatting dialogue box works and does not.

    Thanks

    Brian

+ 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.2.0