#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 119
Default FIND & REPLACE ISSUE

I have a colomn with 2-digits (currently text format):

03
04
10
20

.. . . etc.

I'd like to do a find and replace which adds three zeroes to the end, so
that I get this:

03000
04000
10000
20000

Is it possible?

Thanks
--
William
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,696
Default FIND & REPLACE ISSUE

Not with find and replace.. but with a helper column...

So, if your column is in A, then in B, format as text, then type =A2&"000"
and paste down.

"William" wrote:

I have a colomn with 2-digits (currently text format):

03
04
10
20

. . . etc.

I'd like to do a find and replace which adds three zeroes to the end, so
that I get this:

03000
04000
10000
20000

Is it possible?

Thanks
--
William

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 61
Default FIND & REPLACE ISSUE

in the next column, can you just create a formula to add three zeros at the
end of the cell? For example, if your 2 digit text column starts in "A1", in
cell "B1" you can put the formula =A1&"000" and copy that formula down?

"William" wrote:

I have a colomn with 2-digits (currently text format):

03
04
10
20

. . . etc.

I'd like to do a find and replace which adds three zeroes to the end, so
that I get this:

03000
04000
10000
20000

Is it possible?

Thanks
--
William

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default FIND & REPLACE ISSUE

Can you change them to number format?

If yes...
Put 1000 in an empty cell.
edit|copy that cell
select your range to fix
Edit|paste special|multiply
clear the helper cell with 1000 in it.
Format the fixed range to show leading 0's:
Select the range
format|cells|number tab|custom category
00000
(or as many as you need)



William wrote:

I have a colomn with 2-digits (currently text format):

03
04
10
20

. . . etc.

I'd like to do a find and replace which adds three zeroes to the end, so
that I get this:

03000
04000
10000
20000

Is it possible?

Thanks
--
William


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default FIND & REPLACE ISSUE

try this
Sub addzerostotextcells()
For Each c In Selection
If Len(c) < 5 Then c.Value _
= c & Application.Rept("0", 5 - Len(c))
Next
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"William" wrote in message
...
I have a colomn with 2-digits (currently text format):

03
04
10
20

. . . etc.

I'd like to do a find and replace which adds three zeroes to the end, so
that I get this:

03000
04000
10000
20000

Is it possible?

Thanks
--
William




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 119
Default FIND & REPLACE ISSUE

Thanks to all!

"Dave Peterson" wrote:

Can you change them to number format?

If yes...
Put 1000 in an empty cell.
edit|copy that cell
select your range to fix
Edit|paste special|multiply
clear the helper cell with 1000 in it.
Format the fixed range to show leading 0's:
Select the range
format|cells|number tab|custom category
00000
(or as many as you need)



William wrote:

I have a colomn with 2-digits (currently text format):

03
04
10
20

. . . etc.

I'd like to do a find and replace which adds three zeroes to the end, so
that I get this:

03000
04000
10000
20000

Is it possible?

Thanks
--
William


--

Dave Peterson

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 303
Default FIND & REPLACE ISSUE

I do not see how you can do it with find and replace
A different way would be with a help column as follows...............
assuming your first number is in A1 insert a new column (B)
enter =A1&"000" in B1 and extend this down the column
then do the <edit<copy<edit<paste special<values trick to change the
formula's in B column back to values.

--
Greetings from New Zealand



"William" wrote in message
...
I have a colomn with 2-digits (currently text format):

03
04
10
20

. . . etc.

I'd like to do a find and replace which adds three zeroes to the end, so
that I get this:

03000
04000
10000
20000

Is it possible?

Thanks
--
William



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Find and Replace - Replace with Blank Space Studebaker Excel Discussion (Misc queries) 4 April 3rd 23 10:55 AM
find and replace issue in macro ben New Users to Excel 2 December 21st 08 11:50 PM
find and replace - replace data in rows to separated by commas msdker Excel Worksheet Functions 1 April 15th 06 01:00 AM
Excel find and replace issue buddyorliz Excel Discussion (Misc queries) 3 June 4th 05 09:51 PM
Excel find and replace issue buddyorliz Excel Discussion (Misc queries) 2 June 4th 05 04:14 PM


All times are GMT +1. The time now is 01:14 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"