Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default How do I separate a hyphenated word in Excel?

I have a large file of 2000 lines and I would like to make 2 columns from 1.
For example:

COLUMN A

HEW-FA282A

I would like to remove the HEW- and insert it into another (new) column and
have the original column just read FA282A. Since the word is hyphenated I
have been unable to find the appropriate formula. Can anyone help me?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Toppers
 
Posts: n/a
Default How do I separate a hyphenated word in Excel?

to get FA282A use:

=RIGHT(A1,LEN(A1)-FIND("-",A1,1))

to get HEW use:

=LEFT(A1,FIND("-",A1,1)-1)

HTH

" wrote:

I have a large file of 2000 lines and I would like to make 2 columns from 1.
For example:

COLUMN A

HEW-FA282A

I would like to remove the HEW- and insert it into another (new) column and
have the original column just read FA282A. Since the word is hyphenated I
have been unable to find the appropriate formula. Can anyone help me?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
FurRelKT
 
Posts: n/a
Default How do I separate a hyphenated word in Excel?

This really helped me too,thanks, another question though, what if i
had 2 hyphens and needed the middle too?
for example: 01DEV-XXX-thisandthat
How do i get the 'inbetween' ?
Thanks for any help!

Keri

Toppers wrote:
to get FA282A use:

=RIGHT(A1,LEN(A1)-FIND("-",A1,1))

to get HEW use:

=LEFT(A1,FIND("-",A1,1)-1)

HTH

" wrote:

I have a large file of 2000 lines and I would like to make 2 columns from 1.
For example:

COLUMN A

HEW-FA282A

I would like to remove the HEW- and insert it into another (new) column and
have the original column just read FA282A. Since the word is hyphenated I
have been unable to find the appropriate formula. Can anyone help me?


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
FurRelKT
 
Posts: n/a
Default How do I separate a hyphenated word in Excel?

This really helped me too,thanks, another question though, what if i
had 2 hyphens and needed the middle too?
for example: 01DEV-XXX-thisandthat
How do i get the 'inbetween' ?
Thanks for any help!

Keri

Toppers wrote:
to get FA282A use:

=RIGHT(A1,LEN(A1)-FIND("-",A1,1))

to get HEW use:

=LEFT(A1,FIND("-",A1,1)-1)

HTH

" wrote:

I have a large file of 2000 lines and I would like to make 2 columns from 1.
For example:

COLUMN A

HEW-FA282A

I would like to remove the HEW- and insert it into another (new) column and
have the original column just read FA282A. Since the word is hyphenated I
have been unable to find the appropriate formula. Can anyone help me?


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Toppers
 
Posts: n/a
Default How do I separate a hyphenated word in Excel?

For the middle use:

=MID(A1,FIND("-",A1,1)+1,FIND("-",SUBSTITUTE(A1,"-","/",1),1)-FIND("-",A1,1)-1)

For the right use:

=RIGHT(A1,LEN(A1)-FIND("/",SUBSTITUTE(A1,"-","/",2),1))

HTH

"FurRelKT" wrote:

This really helped me too,thanks, another question though, what if i
had 2 hyphens and needed the middle too?
for example: 01DEV-XXX-thisandthat
How do i get the 'inbetween' ?
Thanks for any help!

Keri

Toppers wrote:
to get FA282A use:

=RIGHT(A1,LEN(A1)-FIND("-",A1,1))

to get HEW use:

=LEFT(A1,FIND("-",A1,1)-1)

HTH

" wrote:

I have a large file of 2000 lines and I would like to make 2 columns from 1.
For example:

COLUMN A

HEW-FA282A

I would like to remove the HEW- and insert it into another (new) column and
have the original column just read FA282A. Since the word is hyphenated I
have been unable to find the appropriate formula. Can anyone help me?





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
FurRelKT
 
Posts: n/a
Default How do I separate a hyphenated word in Excel?

Toppers, thanks so much! It worked perfectly.

K~

Toppers wrote:
For the middle use:

=MID(A1,FIND("-",A1,1)+1,FIND("-",SUBSTITUTE(A1,"-","/",1),1)-FIND("-",A1,1)-1)

For the right use:

=RIGHT(A1,LEN(A1)-FIND("/",SUBSTITUTE(A1,"-","/",2),1))

HTH

"FurRelKT" wrote:

This really helped me too,thanks, another question though, what if i
had 2 hyphens and needed the middle too?
for example: 01DEV-XXX-thisandthat
How do i get the 'inbetween' ?
Thanks for any help!

Keri

Toppers wrote:
to get FA282A use:

=RIGHT(A1,LEN(A1)-FIND("-",A1,1))

to get HEW use:

=LEFT(A1,FIND("-",A1,1)-1)

HTH

" wrote:

I have a large file of 2000 lines and I would like to make 2 columns from 1.
For example:

COLUMN A

HEW-FA282A

I would like to remove the HEW- and insert it into another (new) column and
have the original column just read FA282A. Since the word is hyphenated I
have been unable to find the appropriate formula. Can anyone help me?




  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CLR
 
Posts: n/a
Default How do I separate a hyphenated word in Excel?

Make sure column B is empty, then Highlight column A and do Data
TextToColumns Delimited Next Other type the hyphen in the little
square next to Other Next Finish

Vaya con Dios,
Chuck, CABGx3



" wrote:

I have a large file of 2000 lines and I would like to make 2 columns from 1.
For example:

COLUMN A

HEW-FA282A

I would like to remove the HEW- and insert it into another (new) column and
have the original column just read FA282A. Since the word is hyphenated I
have been unable to find the appropriate formula. Can anyone help me?

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
Excel cannot establish a DDE with WORD rmoritzky Excel Discussion (Misc queries) 0 December 18th 05 02:16 PM
Merging in Excel from Word, Excel, or Access RS Excel Discussion (Misc queries) 2 December 16th 05 05:16 PM
Opening two separate instances of Excel Ron Bishop Excel Discussion (Misc queries) 2 August 4th 05 05:30 PM
Pasting Word table cell with paragraph markers into single Excel c Steve Excel Discussion (Misc queries) 1 June 16th 05 11:26 PM
Can Excel Export Data to Word Format? Reddiance Excel Discussion (Misc queries) 2 April 18th 05 06:03 PM


All times are GMT +1. The time now is 10:42 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"