+ Reply to Thread
Results 1 to 17 of 17

How to remove space between number and replace with period

Hybrid View

  1. #1
    Registered User
    Join Date
    05-24-2017
    Location
    london, england
    MS-Off Ver
    xp
    Posts
    7

    How to remove space between number and replace with period

    i have a column of numbers ie 100 90 i want it to read 100.90 so i can add the column at the bottom. THank

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: How to remove space between number and replace with period

    If A1 is "100 90", you can use this formula to result in "100.90"

    =SUBSTITUTE(A1," ",".")+0

  3. #3
    Registered User
    Join Date
    05-24-2017
    Location
    london, england
    MS-Off Ver
    xp
    Posts
    7

    Re: How to remove space between number and replace with period

    Thank You, exactly what i was looking for, but there is just one thing left and i hope you can help since there were empty cells in between the column once i put your formula there is "value" showing up in the cells and i am still unable to do the total SUM of the column Thank you

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,426

    Re: How to remove space between number and replace with period

    You can use this formula:

    =--SUBSTITUTE(TRIM(A1)," ",".")

    If the space is a non-breaking space character (code 160) you can use this instead:

    =--SUBSTITUTE(A1,CHAR(160),".")

    Copy down as required.

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    05-24-2017
    Location
    london, england
    MS-Off Ver
    xp
    Posts
    7

    Re: How to remove space between number and replace with period

    Thanks it worked perfect, except when i try to SUM the total of the column i get a total of 0. Thanks

  6. #6
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: How to remove space between number and replace with period

    Quote Originally Posted by navids View Post
    Thanks it worked perfect, except when i try to SUM the total of the column i get a total of 0. Thanks
    You're welcome.

    If you have your numbers with the spaces in column A, you would put one of the suggested formulas into another column (let's say column B) and then take the sum of column B.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,049

    Re: How to remove space between number and replace with period

    Quote Originally Posted by 63falcondude View Post
    ...If you have your numbers with the spaces in column A...
    Then that is not a number, it is text. But you are correct that either of the above formulas should fix that
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  8. #8
    Registered User
    Join Date
    05-24-2017
    Location
    london, england
    MS-Off Ver
    xp
    Posts
    7

    Re: How to remove space between number and replace with period

    It's a number! the formula works fine, and I still have the issue unable to total the SUM of the column!

  9. #9
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: How to remove space between number and replace with period

    Quote Originally Posted by FDibbins View Post
    Then that is not a number, it is text. But you are correct that either of the above formulas should fix that
    When I said "numbers with the spaces" I simply meant a cell with numbers and a space in it i.e. "## ##".

    0,1,2,3,4,5,6,7,8, and 9 are numbers no matter how the cell that contains them is formatted.

    Yes, a cell with numbers can be seen as a text string to Excel and (as you know) this is the case when there is a space between the numbers.

    Formatting does not change the fact that the cell has numbers in it.

    Arguing semantics.

    Quote Originally Posted by navids View Post
    It's a number! the formula works fine, and I still have the issue unable to total the SUM of the column!
    Consider creating a small example of your issue along with the desired result of the formula/s to share with us.

    You can upload a workbook directly to your post.
    Last edited by 63falcondude; 05-27-2017 at 11:27 AM.

  10. #10
    Registered User
    Join Date
    05-24-2017
    Location
    london, england
    MS-Off Ver
    xp
    Posts
    7

    Re: How to remove space between number and replace with period

    I get to the point where the space is removed and the period is added in a column next to the original column, the column is formatted to "number".
    But it still will not do a "Sum" of the new corrected column.
    i.e column A 100 89 changes to column B 100.89 exactly like i want but when i try to Sum total of column B i get 0. Not the desired Result. Help and Thanks

  11. #11
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: How to remove space between number and replace with period

    Quote Originally Posted by navids View Post
    i have a column of numbers ie 100 90 i want it to read 100.90 so i can add the column at the bottom. THank
    Select the cell(s) that you want to apply.
    Ctrl + H : Find " " and . in Replace then Replace All

  12. #12
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,834

    Re: How to remove space between number and replace with period

    Select Column A.
    Hit Ctrl + H
    Enter a space in Find
    Enter a period in Replace and hit ReplaceAll.

    This should make cColumn A as number.

  13. #13
    Registered User
    Join Date
    05-24-2017
    Location
    london, england
    MS-Off Ver
    xp
    Posts
    7

    Re: How to remove space between number and replace with period

    Screen Shot 2017-05-27 at 11.37.05 AM copy.jpg Attached is the image, Thanks
    Attached Images Attached Images

  14. #14
    Forum Expert
    Join Date
    06-25-2009
    Location
    Sofia, Bulgaria, EU
    MS-Off Ver
    Excel 2003-2013
    Posts
    1,290

    Re: How to remove space between number and replace with period

    could you check number formatting in column AT. I suspect it is some weird custom number format
    or upload sample workbook.
    If you are pleased with a member's answer then use the Star icon to rate it.

  15. #15
    Registered User
    Join Date
    05-24-2017
    Location
    london, england
    MS-Off Ver
    xp
    Posts
    7

    Re: How to remove space between number and replace with period

    I have used =SUBSTITUTE(AT66," ",".")+0 works great thanks, except i am unable to SUM the total in Column AU

  16. #16
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: How to remove space between number and replace with period

    Quote Originally Posted by navids View Post
    I have used =SUBSTITUTE(AT66," ",".")+0 works great thanks, except i am unable to SUM the total in Column AU
    Try

    =IFERROR(SUBSTITUTE(AT66," ",".")+0,"")

    This will change the errors to blank and allow you to take the sum of the column.
    Last edited by 63falcondude; 05-30-2017 at 09:56 AM.

  17. #17
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: How to remove space between number and replace with period

    As mentioned, upload a sample workbook, otherwise you'll be going around in circles all night

+ 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] remove space between number and english in one cell
    By hktom in forum Excel Formulas & Functions
    Replies: 56
    Last Post: 12-29-2015, 03:54 PM
  2. [SOLVED] To Remove Space in number
    By ganeshkumar in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 10-01-2013, 06:01 AM
  3. Replies: 1
    Last Post: 09-05-2013, 11:26 AM
  4. Remove Space between number and letter on excel spreadsheet
    By BowHunter09 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-31-2013, 09:06 PM
  5. Remove trailing space from a cell, convert to number
    By lil_ern63 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-20-2010, 12:19 PM
  6. remove period from number in a cell
    By deborah_cathey in forum Excel General
    Replies: 3
    Last Post: 11-06-2008, 09:15 PM
  7. Replies: 6
    Last Post: 06-29-2006, 01: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