masking

G

Guest

How can delete the first 6 charaters or numbers from the front end a a
string. I am sure this can be done with a macro, however I am unsure of the
code.(Example)
2145mm2356.110 jimmy joe bob I want to only extract the 2356.110 and place
it in an adoining cell or extract the first six charaters and put them in
another cell example 2145mm
 
J

John A. Eyon

You don't need a macro. Using string functions in the adjacent cells will
work.

In the following example, A1 holds the original string. B1 will be the
string with the first six characters stripped away. C1 will contain the
first six characters.

A1: 2145mm2356.110
B1: =RIGHT(A1,LEN(A1)-6)
C1: =MID(A1,1,6)

--John
 
M

Myrna Larson

You don't need a macro:

=MID(A1,7,255)

should do the trick.

But your example isn't just removing the 1st 6 characters. Somehow the " jimmy
joe bob" got lost.

You can also use Data/Text to columns, specifying fixed width and placing the
column boundary between the 6th and 7th characters.
 

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

Top