+ Reply to Thread
Results 1 to 15 of 15

Problem when using find & replace

  1. #1
    Registered User
    Join Date
    07-10-2013
    Location
    Egypt
    MS-Off Ver
    Excel 2010
    Posts
    58

    Problem when using find & replace

    Hi guys,

    I have a a problem when replacing , with . for large numbers like this 1,564,548,54 all commas converted to dots, so the number aligned to left.

    Thanks in advance

  2. #2
    Forum Contributor
    Join Date
    06-26-2013
    Location
    LAX
    MS-Off Ver
    Excel 2007,Excel 2010
    Posts
    363

    Re: Problem when using find & replace

    Hello,

    Can you give some more details. If you want to replace all commas with dots, then try this. (assuming your values in column A)

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

  3. #3
    Registered User
    Join Date
    07-10-2013
    Location
    Egypt
    MS-Off Ver
    Excel 2010
    Posts
    58

    Re: Problem when using find & replace

    I use 2 methods for converting commas to dots, either by find and replace or by using Alt+A+E and it sound good for numbers with 1 comma 1,00, but when number contains more than one comma 1,846,74 so 2 commas converted to dots it became 1.845.47 which also invalid in excel, I tried to use Substitute formula, but there is something wrong, I'll attache sheet
    Regards,
    Amr
    Attached Files Attached Files
    Last edited by amr7; 07-27-2013 at 06:44 AM.

  4. #4
    Forum Contributor
    Join Date
    06-26-2013
    Location
    LAX
    MS-Off Ver
    Excel 2007,Excel 2010
    Posts
    363

    Re: Problem when using find & replace

    Are you trying to replace all commas with dot OR only the last comma with a dot?

  5. #5
    Registered User
    Join Date
    07-10-2013
    Location
    Egypt
    MS-Off Ver
    Excel 2010
    Posts
    58

    Re: Problem when using find & replace

    the last comma only

  6. #6
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Problem when using find & replace

    are you talking about, col P, Q, R, S
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  7. #7
    Forum Contributor
    Join Date
    06-26-2013
    Location
    LAX
    MS-Off Ver
    Excel 2007,Excel 2010
    Posts
    363

    Re: Problem when using find & replace

    Okay. Then Try this

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    07-10-2013
    Location
    Egypt
    MS-Off Ver
    Excel 2010
    Posts
    58

    Re: Problem when using find & replace

    yes Col P, Q, R, s

  9. #9
    Registered User
    Join Date
    07-10-2013
    Location
    Egypt
    MS-Off Ver
    Excel 2010
    Posts
    58

    Re: Problem when using find & replace

    Quote Originally Posted by elayaz View Post
    Okay. Then Try this

    Please Login or Register  to view this content.
    it doesn't work

  10. #10
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Problem when using find & replace

    Lets try..

    Little bit Tricky.. so follow each step properly..

    * Office Button..
    * Excel Option
    * Advanced
    * editing Option.
    * Un-check Use System Separtors.
    Set Decimal Separator > "," without Quote
    Set Thousand Separator > "." without Quote

    OK..

    Now come back to Excel Sheet..
    * Write 1 in a blank area.
    * Copy... cell Contraining 1.
    * Select Column PQRS, containing only numbers you want to convert.
    * In you case "P7 to Q2496"
    * Paste > Special > Multiply (Alt E S M)
    * It will convert all TEXT digits to Numeric.. and will change all "," to Decimal Separator.

    * Now you can re-set your Decimal & Thousand Separator by selecting "Use System Seprator" from excel Option > Advance Option..

    by the way.. a simple macro can do it much faster.. but try to understand International Separator's for future reference..

  11. #11
    Valued Forum Contributor
    Join Date
    05-20-2013
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2013
    Posts
    941

    Re: Problem when using find & replace

    Quote Originally Posted by amr7 View Post
    the last comma only
    I'm assuming you want to change these as numbers and their formatting. If so, forget about find and replace.

    Go to File>Options>Advanced. In "Editing options" section, untick "Use system separators" and put comma in Decimal separator, period in Thousands separator. OK out of dialog.

    On your worksheet, select all that appear to be numbers but are left aligned (which generally speaking, are numbers entered as text). There should be a diamond icon menu indicator beside the upper left selected cell. Click on it and choose "Convert to number".

    Now go back to File>Options>Advanced and tick "Use system separators".

    Format your [new] number cells to for desired display


    DARN that Debraj Roy for posting while I was typing
    Last edited by jhren; 07-27-2013 at 08:01 AM.

  12. #12
    Forum Contributor
    Join Date
    06-26-2013
    Location
    LAX
    MS-Off Ver
    Excel 2007,Excel 2010
    Posts
    363

    Re: Problem when using find & replace

    The formula just changes the last comma to dot. I am not sure the decimal mark system of Egypt.

    Except the last decimal mark, which should be "dot" all the others are "comma"?. Please post example results in the work sheet itself.

  13. #13
    Forum Contributor
    Join Date
    06-26-2013
    Location
    LAX
    MS-Off Ver
    Excel 2007,Excel 2010
    Posts
    363

    Re: Problem when using find & replace

    See if this works.
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    07-10-2013
    Location
    Egypt
    MS-Off Ver
    Excel 2010
    Posts
    58

    Re: Problem when using find & replace

    Thank you Debraj Roy, jhren it's very helpfull to me

  15. #15
    Registered User
    Join Date
    07-10-2013
    Location
    Egypt
    MS-Off Ver
    Excel 2010
    Posts
    58

    Re: Problem when using find & replace

    Quote Originally Posted by elayaz View Post
    The formula just changes the last comma to dot. I am not sure the decimal mark system of Egypt.

    Except the last decimal mark, which should be "dot" all the others are "comma"?. Please post example results in the work sheet itself.
    Thanks a lot elayaz the equation in the sheet you attached is true and i use it , but i think it's little bit complicated and i don't understand it

+ 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. Find and Replace problem
    By mark99th in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-18-2012, 02:06 PM
  2. [SOLVED] A find and replace problem
    By denemeler01 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-18-2012, 02:53 PM
  3. Problem with find and replace
    By Reema in forum Word Formatting & General
    Replies: 2
    Last Post: 04-14-2009, 03:17 AM
  4. Problem with Find and Replace
    By Dave Peterson in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 04:05 AM
  5. Problem with Find and Replace
    By mjhill01 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 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