Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Getting a clean part number

I have a need to clean/remove dots, dashes, and slashes from a series of part
numbers. The numbers look something like the following: AI246-34-D/34 I
need it to look like AI24634D34 I can use the Substitute function to get rid
of the dashes or get rid of the slash, but when I try to combine them and get
rid of both I get an error on the formula. Some of the part numbers, I am
using numbers here loosely when these are actually text, have dots and dashes,
and some of the slashes are right not only left slahes. I'm sure that there
are other charactors in some of them. But I need one formula that I can put
all the charactors I want to get rid of and clean up these numbers so I can
work with them the way I need to. Can anyone help me here.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 380
Default Getting a clean part number

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

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"Rick5k" <u28335@uwe wrote in message news:684fc6639b122@uwe...
I have a need to clean/remove dots, dashes, and slashes from a series of

part
numbers. The numbers look something like the following: AI246-34-D/34 I
need it to look like AI24634D34 I can use the Substitute function to get

rid
of the dashes or get rid of the slash, but when I try to combine them and

get
rid of both I get an error on the formula. Some of the part numbers, I am
using numbers here loosely when these are actually text, have dots and

dashes,
and some of the slashes are right not only left slahes. I'm sure that

there
are other charactors in some of them. But I need one formula that I can

put
all the charactors I want to get rid of and clean up these numbers so I

can
work with them the way I need to. Can anyone help me here.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Getting a clean part number

Bob even though I didn't start this thread, I have found it very helpful, as
I didn't even know this command existed.

This is one of the few replies that I have tried that actually works.
Example I read somebody's else problem, and I see the propose fix. So I
dupicate(?) what the poster is trying to do, and then apply the fix. Well I
would say about 80% of the time the fix dosen't work.

So wanted to let you know thanks for a reply that does work.

Steve Martin

"Bob Phillips" wrote:

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

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"Rick5k" <u28335@uwe wrote in message news:684fc6639b122@uwe...
I have a need to clean/remove dots, dashes, and slashes from a series of

part
numbers. The numbers look something like the following: AI246-34-D/34 I
need it to look like AI24634D34 I can use the Substitute function to get

rid
of the dashes or get rid of the slash, but when I try to combine them and

get
rid of both I get an error on the formula. Some of the part numbers, I am
using numbers here loosely when these are actually text, have dots and

dashes,
and some of the slashes are right not only left slahes. I'm sure that

there
are other charactors in some of them. But I need one formula that I can

put
all the charactors I want to get rid of and clean up these numbers so I

can
work with them the way I need to. Can anyone help me here.




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 380
Default Getting a clean part number

Thanks, Steve. Glad it helped you as well.

Bob

"beginner here" wrote in message
...
Bob even though I didn't start this thread, I have found it very helpful,

as
I didn't even know this command existed.

This is one of the few replies that I have tried that actually works.
Example I read somebody's else problem, and I see the propose fix. So I
dupicate(?) what the poster is trying to do, and then apply the fix. Well

I
would say about 80% of the time the fix dosen't work.

So wanted to let you know thanks for a reply that does work.

Steve Martin

"Bob Phillips" wrote:

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

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"Rick5k" <u28335@uwe wrote in message news:684fc6639b122@uwe...
I have a need to clean/remove dots, dashes, and slashes from a series

of
part
numbers. The numbers look something like the following: AI246-34-D/34

I
need it to look like AI24634D34 I can use the Substitute function to

get
rid
of the dashes or get rid of the slash, but when I try to combine them

and
get
rid of both I get an error on the formula. Some of the part numbers, I

am
using numbers here loosely when these are actually text, have dots and

dashes,
and some of the slashes are right not only left slahes. I'm sure that

there
are other charactors in some of them. But I need one formula that I

can
put
all the charactors I want to get rid of and clean up these numbers so

I
can
work with them the way I need to. Can anyone help me here.






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Getting a clean part number

Bob, that was to simple. I have been trying to combine an IF statement with
the substitute and it just would not work. Thank You. Now if I could get
this to work in access my day would be complete. Any thoughts on this? I
really need to perform this in Access and I just found out this morning that
Substitute is not a built in function. I am going to try it in VBA and se if
that will work. Again, Thanks

Bob Phillips wrote:
=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,".",""),"/",""),"-","")

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

I have a need to clean/remove dots, dashes, and slashes from a series of part
numbers. The numbers look something like the following: AI246-34-D/34 I

[quoted text clipped - 6 lines]
all the charactors I want to get rid of and clean up these numbers so I can
work with them the way I need to. Can anyone help me here.


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200610/1



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Getting a clean part number

Bob, that was to simple. I have been trying to combine an IF statement with
the substitute and it just would not work. Thank You. Now if I could get
this to work in access my day would be complete. Any thoughts on this? I
really need to perform this in Access and I just found out this morning that
Substitute is not a built in function. I am going to try it in VBA and se if
that will work. Again, Thanks

Bob Phillips wrote:
=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,".",""),"/",""),"-","")

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

I have a need to clean/remove dots, dashes, and slashes from a series of part
numbers. The numbers look something like the following: AI246-34-D/34 I

[quoted text clipped - 6 lines]
all the charactors I want to get rid of and clean up these numbers so I can
work with them the way I need to. Can anyone help me here.


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200610/1

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
Look up part of a number within a serial number and cpy back assoc Seantastic Excel Worksheet Functions 9 November 3rd 08 04:10 PM
part number with 'E' chiuinggum Excel Worksheet Functions 7 November 15th 05 04:20 AM
Part Number Lookup Marshall2 Excel Worksheet Functions 2 July 11th 05 08:58 AM
Clean does not remove hidden formatting on a number MickF Excel Worksheet Functions 2 May 19th 05 07:18 PM
GOTO a Part Number CLR Excel Programming 4 November 9th 04 08:23 PM


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

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"