search-replace

  • Thread starter Thread starter Narendra Boga
  • Start date Start date
N

Narendra Boga

Dear All,

I have data like this.

Additional paid-in capital 1 722 286 1 630 394
Accumulated other comprehensive income (loss) (890 446) 239 041
Retained earnings 40 026 498 40 611 396
-----------
Can you please tell me how I replace the spaces in amounts with comma
without replace effecting in descriptions. Only comma should come in amounts
only not in descriptions. I data should like this:

Additional paid-in capital 1,722,286 1,630,394
Accumulated other comprehensive income (loss) (890,446) 239,041
Retained earnings 40,026,498 40,611,396

Thank You
Narendra
 
Dear All,

I have data like this.

Additional paid-in capital 1 722 286 1 630 394
Accumulated other comprehensive income (loss) (890 446) 239 041
Retained earnings 40 026 498 40 611 396
-----------
Can you please tell me how I replace the spaces in amounts with comma
without replace effecting in descriptions. Only comma should come in amounts
only not in descriptions. I data should like this:

Additional paid-in capital 1,722,286 1,630,394
Accumulated other comprehensive income (loss) (890,446) 239,041
Retained earnings 40,026,498 40,611,396

Thank You
Narendra

Click the More button in the Replace dialog and check the box for "Use
wildcards".

Put this expression in the Find What box (there is one space between the two
groups):

([0-9]) ([0-9])

Put this expression in the Replace With box:

\1,\2

Click the Replace All button.
 
Dear Jay Freedman,

Thank you for your instant reply. It reduced my time.


Jay Freedman said:
Dear All,

I have data like this.

Additional paid-in capital 1 722 286 1 630 394
Accumulated other comprehensive income (loss) (890 446) 239 041
Retained earnings 40 026 498 40 611 396
-----------
Can you please tell me how I replace the spaces in amounts with comma
without replace effecting in descriptions. Only comma should come in amounts
only not in descriptions. I data should like this:

Additional paid-in capital 1,722,286 1,630,394
Accumulated other comprehensive income (loss) (890,446) 239,041
Retained earnings 40,026,498 40,611,396

Thank You
Narendra

Click the More button in the Replace dialog and check the box for "Use
wildcards".

Put this expression in the Find What box (there is one space between the two
groups):

([0-9]) ([0-9])

Put this expression in the Replace With box:

\1,\2

Click the Replace All button.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit.
 
This post is very useful, however when I type the serie with a space:
([0-9]) ([9-0])
I get this message
"The Find What text contains a range that is not valid"

Could you precise,

Thanks

Jay Freedman said:
Dear All,

I have data like this.

Additional paid-in capital 1 722 286 1 630 394
Accumulated other comprehensive income (loss) (890 446) 239 041
Retained earnings 40 026 498 40 611 396
-----------
Can you please tell me how I replace the spaces in amounts with comma
without replace effecting in descriptions. Only comma should come in amounts
only not in descriptions. I data should like this:

Additional paid-in capital 1,722,286 1,630,394
Accumulated other comprehensive income (loss) (890,446) 239,041
Retained earnings 40,026,498 40,611,396

Thank You
Narendra

Click the More button in the Replace dialog and check the box for "Use
wildcards".

Put this expression in the Find What box (there is one space between the two
groups):

([0-9]) ([0-9])

Put this expression in the Replace With box:

\1,\2

Click the Replace All button.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit.
 
This should be:
([0-9]) ([0-9])
NOT
([0-9]) ([9-0])

Von Stussi said:
This post is very useful, however when I type the serie with a space:
([0-9]) ([9-0])
I get this message
"The Find What text contains a range that is not valid"

Could you precise,

Thanks

Jay Freedman said:
Dear All,

I have data like this.

Additional paid-in capital 1 722 286 1 630 394
Accumulated other comprehensive income (loss) (890 446) 239 041
Retained earnings 40 026 498 40 611 396
-----------
Can you please tell me how I replace the spaces in amounts with comma
without replace effecting in descriptions. Only comma should come in amounts
only not in descriptions. I data should like this:

Additional paid-in capital 1,722,286 1,630,394
Accumulated other comprehensive income (loss) (890,446) 239,041
Retained earnings 40,026,498 40,611,396

Thank You
Narendra

Click the More button in the Replace dialog and check the box for "Use
wildcards".

Put this expression in the Find What box (there is one space between the two
groups):

([0-9]) ([0-9])

Put this expression in the Replace With box:

\1,\2

Click the Replace All button.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit.
 
Thanks DeanH

DeanH said:
This should be:
([0-9]) ([0-9])
NOT
([0-9]) ([9-0])

Von Stussi said:
This post is very useful, however when I type the serie with a space:
([0-9]) ([9-0])
I get this message
"The Find What text contains a range that is not valid"

Could you precise,

Thanks

Jay Freedman said:
On Thu, 8 May 2008 19:42:00 -0700, Narendra Boga

Dear All,

I have data like this.

Additional paid-in capital 1 722 286 1 630 394
Accumulated other comprehensive income (loss) (890 446) 239 041
Retained earnings 40 026 498 40 611 396
-----------
Can you please tell me how I replace the spaces in amounts with comma
without replace effecting in descriptions. Only comma should come in amounts
only not in descriptions. I data should like this:

Additional paid-in capital 1,722,286 1,630,394
Accumulated other comprehensive income (loss) (890,446) 239,041
Retained earnings 40,026,498 40,611,396

Thank You
Narendra

Click the More button in the Replace dialog and check the box for "Use
wildcards".

Put this expression in the Find What box (there is one space between the two
groups):

([0-9]) ([0-9])

Put this expression in the Replace With box:

\1,\2

Click the Replace All button.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top