+ Reply to Thread
Results 1 to 16 of 16

Remove period "." from cells

  1. #1
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Remove period "." from cells

    Hello everyone

    I have numbers like that : 120.1720
    I need simply to remove the dot (Period)
    I used this formula
    Please Login or Register  to view this content.
    I got this result 120172
    I need to get this result 1201720

    Thanks advanced
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Remove period "." from cells

    Well, if the cell is numeric value, Excel automatically remove the last zero. Give this UDF a try

    Please Login or Register  to view this content.

  3. #3
    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
    52,929

    Re: Remove period "." from cells

    hmm if you have 120.1720 in a cell, and this is the exact content In that cell, then it is text, not numeric. If the actual content is 120.172, and shows as 120.1720, then is just formatted to show 4 decimal places, and the last 0 is actually not there.

    Try this (it will work on text or numeric)...
    =--SUBSTITUTE(TEXT(A1,"#,##0.0000"),".","")

    If you dont need it to be number, dont use the leading --
    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

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

    Re: Remove period "." from cells

    Possibly last 0 might be added by number format...
    Please Login or Register  to view this content.
    =RemovePeriods(A1)+0

  5. #5
    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
    52,929

    Re: Remove period "." from cells

    JeiJenn...thanks for the rep

  6. #6
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Remove period "." from cells

    Thanks a lot for help
    I tried both solutions on different patterns .. and i didn't get my desired results
    As for UDF function : 34.10 >> 341 and i need it to be 3410
    As for the formula : 34.10 >> 341000 and I need it to be 3410 ...

    I tried to add this
    Please Login or Register  to view this content.
    But I didn't get my desired results as well

  7. #7
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Remove period "." from cells

    Mr. Jindon
    i didn't notice your reply
    That's exactly what I need.. Thank you very much

    Thanks alot everybody for offering help

    Just one point :
    If I change any of the entries I have to press Ctrl + Alt +F9 to update results .. Can it be done automatically?
    Last edited by YasserKhalil; 06-05-2015 at 06:09 PM.

  8. #8
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Remove period "." from cells

    What is your cell formatting looks like?

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

    Re: Remove period "." from cells

    Try add one line
    Please Login or Register  to view this content.

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

    Re: Remove period "." from cells

    Quote Originally Posted by YasserKhalil View Post
    Just one point :
    If I change any of the entries I have to press Ctrl + Alt +F9 to update results .. Can it be done automatically?
    If you add foliowng code toe the sheet module, it would be done when selection change.
    Please Login or Register  to view this content.

  11. #11
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Remove period "." from cells

    Thank you very much Mr. Jindon for all this great help
    Regards

  12. #12
    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
    52,929

    Re: Remove period "." from cells

    This is where it helps if you provide a range of examples of what you are working with, This should work if your numbers are text numbers...
    =--SUBSTITUTE(TEXT(A1,"#,##0."&REPT(0,LEN(MID(A1,FIND(".",A1,1),99))-1)),".","")

  13. #13
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Remove period "." from cells

    Thanks Mr. FDibbins
    It seems that formula didn't give me the required results ..The results are without zeros 34.100 should be 34100
    But whn applying the formula I got 341

  14. #14
    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
    52,929

    Re: Remove period "." from cells

    Quote Originally Posted by YasserKhalil View Post
    Thanks Mr. FDibbins
    It seems that formula didn't give me the required results ..The results are without zeros 34.100 should be 34100
    But whn applying the formula I got 341
    Thats probably because the cell does not contain 34.100, it only contains 34.1 - it is formatted to show 34.100. my formula is count ACTUAL characters after the decimal point, not FORMATED decimals. Just because you see 34.100, doesnt mean thats what the cell contains

  15. #15
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Remove period "." from cells

    You're right Mr. FDibbins
    i'm dealing with the formatted decimals not the actual characters
    Thanks a lot for your great help

  16. #16
    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
    52,929

    Re: Remove period "." from cells

    you are welcome, and thanks for the feedback

+ 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. "Add Row" and "Remove Row" Buttons... adding rows with formulas down filled
    By excelatnothing in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-15-2015, 02:44 AM
  2. Replies: 1
    Last Post: 08-10-2014, 01:22 PM
  3. [SOLVED] VBA help needed to remove all "/" then replace with "-" from cell "B3"and "B5"
    By krjoshi in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-17-2014, 02:11 PM
  4. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  5. Remove "TRUE" "FALSE" words from a linked checkbox
    By MDCK in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-15-2008, 03:26 AM

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