+ Reply to Thread
Results 1 to 7 of 7

Trying to write a list of numbers in a cell, keeps converting it to a long number

  1. #1
    Registered User
    Join Date
    01-12-2010
    Location
    New Jersey
    MS-Off Ver
    Excel 2003
    Posts
    6

    Question Trying to write a list of numbers in a cell, keeps converting it to a long number

    Hey, I'm doing the website for my company and things have to be entered into the site via spreadsheets. I have a list of numbers

    e.g. 3652, 2845, 50925, 4809, 18392

    that need to have the spaces removed in order for them to work.

    e.g. 3652,2845,50925,4809,18392

    There are over 500 cells with multiple numbers in each, so I don't want to do it one at a time, and rightly so, because Excel keeps changing the format and giving me something like

    3.6*10^30 and loses all my commas.

    Is there an easier way?
    Last edited by Clint@RAI; 01-13-2010 at 10:26 AM.

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444

    Re: Trying to write a list of numbers in a cell, keeps converting it to a long number

    Hi,

    Format the cells as text before entering the values.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Trying to write a list of numbers in a cell, keeps converting it to a long number

    You can use a formula in an adjacent cell.

    e.g

    =SUBSTITUTE(A1," ","") copied down

    Then you can copy and paste|special >> Values over the original and get rid of the formula cells.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    01-12-2010
    Location
    New Jersey
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Trying to write a list of numbers in a cell, keeps converting it to a long number

    Quote Originally Posted by sweep View Post
    Hi,

    Format the cells as text before entering the values.
    I thought that would help, but it doesnt. Just ends up giving me ###################

  5. #5
    Registered User
    Join Date
    01-12-2010
    Location
    New Jersey
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Trying to write a list of numbers in a cell, keeps converting it to a long number

    Quote Originally Posted by NBVC View Post
    You can use a formula in an adjacent cell.

    e.g

    =SUBSTITUTE(A1," ","") copied down

    Then you can copy and paste|special >> Values over the original and get rid of the formula cells.
    Can you give me a little more info? I don't use many formulas. I also already have all of the numbers in their places, I just need to get rid of the spaces between the commas without excel converting them

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Trying to write a list of numbers in a cell, keeps converting it to a long number

    So let's say your numbers are currently residing in range A2:A100, well then in an empty cell in row 2, enter formula: =Substitute(A2," ","") this should convert it to what you need.

    Copy that formula down the column... by click and dragging little black square at bottom right corner of first cell with formula...

    Then copy that new range of formula cells, go to A2 and then go to Edit|Paste Special and select Values. Clikc Ok. This should overwrite your old stuff with the new...

    Now you can go ahead and delete the column you added with formulas...

    Note: Please save your original file first in case things get messed up.

  7. #7
    Registered User
    Join Date
    01-12-2010
    Location
    New Jersey
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Trying to write a list of numbers in a cell, keeps converting it to a long number

    Awesome, I'll mark this as saved. It worked great, but this damn website still won't take the spreadsheet. I guess it's on to the next problem, Thanks for the help guys!

+ 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