removal of delimiter

R

raja

i have contents in column E like

E

Arun - Ram
Philips - rook
guru - kar

i want to remove - and store it in the following fashion

F G
Arun Ram
Philips rook
guru kar

how can i do this in macros


kindly help me..
 
G

galimi

Place the following formula in column f

=LEFT(E1,FIND(" ",E1))

and the following formula in column g

=RIGHT(E1,LEN(E1)-FIND("-",E1)-1)
 
G

George Nicholson

Copy column E to F. Highlight F
Data>Text-To-Columns
-"Delimited">Next
- Check both "Space" and "Other". In the box by "Other" enter "-" (with
no quotes)
- Finish

HTH,
 
R

raja

can u give me the VBA macros script
thank u

George Nicholson said:
Copy column E to F. Highlight F
Data>Text-To-Columns
-"Delimited">Next
- Check both "Space" and "Other". In the box by "Other" enter "-" (with
no quotes)
- Finish

HTH,
 
D

Dave Peterson

If you record a macro when you do it manually, you'll have the code that you
need.
 

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