ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Rewrite name in new format (https://www.excelbanter.com/excel-discussion-misc-queries/175765-rewrite-name-new-format.html)

ALaw

Rewrite name in new format
 
Hi there,

I have a column with numbers such as
100/16-14-059-08W6/3
100/02-16-059-08W6/3
100/15-17-059-08W6/0
100/02-18-059-08W6/2

I need these to be rewritten in a column in the following format
100161405908W6003
100021605908W6003
100151705908W6000
100021805908W6002

So basically all dashes and slashes are removed, and there is a 00 added
infront of the last number.

I don't want to type it in since I have a lot of numbers, how can I do this
in excel?

dlw

Rewrite name in new format
 
search and replace (with nothing) to get rid of all slashes and dashes
then =left(a1,14)&"000"&right(a1,1) to get the zeros in.
that's assuming they are all the same length, if not, replace the 14 with
=len(a1)-1

"ALaw" wrote:

Hi there,

I have a column with numbers such as
100/16-14-059-08W6/3
100/02-16-059-08W6/3
100/15-17-059-08W6/0
100/02-18-059-08W6/2

I need these to be rewritten in a column in the following format
100161405908W6003
100021605908W6003
100151705908W6000
100021805908W6002

So basically all dashes and slashes are removed, and there is a 00 added
infront of the last number.

I don't want to type it in since I have a lot of numbers, how can I do this
in excel?


Ardus Petus

Rewrite name in new format
 
=MID(A1,1,3)&MID(A1,5,2)&MID(A1,8,2)&MID(A1,11,3)& MID(A1,15,4)&"00"&MID(A1,20,1)

HTH
--
AP

"ALaw" a écrit dans le message de news:
...
Hi there,

I have a column with numbers such as
100/16-14-059-08W6/3
100/02-16-059-08W6/3
100/15-17-059-08W6/0
100/02-18-059-08W6/2

I need these to be rewritten in a column in the following format
100161405908W6003
100021605908W6003
100151705908W6000
100021805908W6002

So basically all dashes and slashes are removed, and there is a 00 added
infront of the last number.

I don't want to type it in since I have a lot of numbers, how can I do
this
in excel?




FSt1

Rewrite name in new format
 
hi
if all the number are the same format as your example, you can use this
formula
=LEFT(K2,3)
&MID(K2,5,2)&MID(K2,8,2)&MID(K2,11,3)&MID(K2,15,4) &"00"&RIGHT(K2,1)

regards
FSt1
"ALaw" wrote:

Hi there,

I have a column with numbers such as
100/16-14-059-08W6/3
100/02-16-059-08W6/3
100/15-17-059-08W6/0
100/02-18-059-08W6/2

I need these to be rewritten in a column in the following format
100161405908W6003
100021605908W6003
100151705908W6000
100021805908W6002

So basically all dashes and slashes are removed, and there is a 00 added
infront of the last number.

I don't want to type it in since I have a lot of numbers, how can I do this
in excel?


Pete_UK

Rewrite name in new format
 
You could do it using Find & Replace (CTRL-H). Highlight the column
containing your data and do CTRL-H (or Edit | Replace):

Find What: 100/
Replace with: 100
click Replace All

CTRL-H again:
Find What: W6/
Replace with: W600
click Replace All


CTRL-H again:
Find What: -
Replace with: leave blank
click Replace All

Hope this helps.

Pete

On Feb 6, 4:33*pm, ALaw wrote:
Hi there,

I have a column with numbers such as
100/16-14-059-08W6/3
100/02-16-059-08W6/3
100/15-17-059-08W6/0
100/02-18-059-08W6/2

I need these to be rewritten in a column in the following format
100161405908W6003
100021605908W6003
100151705908W6000
100021805908W6002

So basically all dashes and slashes are removed, and there is a 00 added
infront of the last number.

I don't want to type it in since I have a lot of numbers, how can I do this
in excel?




All times are GMT +1. The time now is 05:22 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com