Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Removing text between hyphens and removing the hyphens

I am a bit new with regards to excel but If have a column of data that has
values in this format (note the placement of the hyphens)

9999- RR - AAAAAAAAAA

The length of 9's are constant at 4
The length of A's can change between cells

I would like to remove the R's and hypens to have this:

9999 AAAAAAAAAAA

Any suggestions? Thanks for your help
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Removing text between hyphens and removing the hyphens

Select the range to fix
Edit|Replace
what: -bRRb- (b represents the space character
with: (leave blank)
replace all



sonofroy wrote:

I am a bit new with regards to excel but If have a column of data that has
values in this format (note the placement of the hyphens)

9999- RR - AAAAAAAAAA

The length of 9's are constant at 4
The length of A's can change between cells

I would like to remove the R's and hypens to have this:

9999 AAAAAAAAAAA

Any suggestions? Thanks for your help


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default Removing text between hyphens and removing the hyphens

=LEFT(A1, 4) & MID(A1, FIND("-", A1, 6)+1, 256)

Where your text is in cell A1
--
HTH...

Jim Thomlinson


"sonofroy" wrote:

I am a bit new with regards to excel but If have a column of data that has
values in this format (note the placement of the hyphens)

9999- RR - AAAAAAAAAA

The length of 9's are constant at 4
The length of A's can change between cells

I would like to remove the R's and hypens to have this:

9999 AAAAAAAAAAA

Any suggestions? Thanks for your help

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Removing text between hyphens and removing the hyphens

This just came up but what if I want to put back one hyphen to look like this?

9999 - AAAAAAAAAAAAAAA

"Jim Thomlinson" wrote:

=LEFT(A1, 4) & MID(A1, FIND("-", A1, 6)+1, 256)

Where your text is in cell A1
--
HTH...

Jim Thomlinson


"sonofroy" wrote:

I am a bit new with regards to excel but If have a column of data that has
values in this format (note the placement of the hyphens)

9999- RR - AAAAAAAAAA

The length of 9's are constant at 4
The length of A's can change between cells

I would like to remove the R's and hypens to have this:

9999 AAAAAAAAAAA

Any suggestions? Thanks for your help

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Removing text between hyphens and removing the hyphens

Did you try -1 instead of +1 ?
--
David Biddulph

"sonofroy" wrote in message
...
This just came up but what if I want to put back one hyphen to look like
this?

9999 - AAAAAAAAAAAAAAA

"Jim Thomlinson" wrote:

=LEFT(A1, 4) & MID(A1, FIND("-", A1, 6)+1, 256)

Where your text is in cell A1
--
HTH...

Jim Thomlinson


"sonofroy" wrote:

I am a bit new with regards to excel but If have a column of data that
has
values in this format (note the placement of the hyphens)

9999- RR - AAAAAAAAAA

The length of 9's are constant at 4
The length of A's can change between cells

I would like to remove the R's and hypens to have this:

9999 AAAAAAAAAAA

Any suggestions? Thanks for your help





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Removing text between hyphens and removing the hyphens

That worked Perfectly Thank you!

"David Biddulph" wrote:

Did you try -1 instead of +1 ?
--
David Biddulph

"sonofroy" wrote in message
...
This just came up but what if I want to put back one hyphen to look like
this?

9999 - AAAAAAAAAAAAAAA

"Jim Thomlinson" wrote:

=LEFT(A1, 4) & MID(A1, FIND("-", A1, 6)+1, 256)

Where your text is in cell A1
--
HTH...

Jim Thomlinson


"sonofroy" wrote:

I am a bit new with regards to excel but If have a column of data that
has
values in this format (note the placement of the hyphens)

9999- RR - AAAAAAAAAA

The length of 9's are constant at 4
The length of A's can change between cells

I would like to remove the R's and hypens to have this:

9999 AAAAAAAAAAA

Any suggestions? Thanks for your help



.

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default Removing text between hyphens and removing the hyphens

Perhaps something like this:
=LEFT(A2,4)&MID(A2,FIND("-",A2,6)+1,999)
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"sonofroy" wrote:

I am a bit new with regards to excel but If have a column of data that has
values in this format (note the placement of the hyphens)

9999- RR - AAAAAAAAAA

The length of 9's are constant at 4
The length of A's can change between cells

I would like to remove the R's and hypens to have this:

9999 AAAAAAAAAAA

Any suggestions? Thanks for your help

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Removing text between hyphens and removing the hyphens

If the 9's are fixed in number then all you need to do is to remove a fixed
length prefix:

=MID(A1,11,256)

This assumes the R's, the dashes, and the spaces are fixed in number and
position.
--
Gary''s Student - gsnu200909


"sonofroy" wrote:

I am a bit new with regards to excel but If have a column of data that has
values in this format (note the placement of the hyphens)

9999- RR - AAAAAAAAAA

The length of 9's are constant at 4
The length of A's can change between cells

I would like to remove the R's and hypens to have this:

9999 AAAAAAAAAAA

Any suggestions? Thanks for your help

  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Removing text between hyphens and removing the hyphens

=SUBSTITUTE(A1,"- RR -","")
--
David Biddulph

"sonofroy" wrote in message
...
I am a bit new with regards to excel but If have a column of data that has
values in this format (note the placement of the hyphens)

9999- RR - AAAAAAAAAA

The length of 9's are constant at 4
The length of A's can change between cells

I would like to remove the R's and hypens to have this:

9999 AAAAAAAAAAA

Any suggestions? Thanks for your help



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
Removing Hyphens in phone list??? TotallyConfused Excel Discussion (Misc queries) 4 March 2nd 08 03:11 AM
Macro For Removing Hyphens FARAZ QURESHI Excel Discussion (Misc queries) 3 June 27th 07 12:32 PM
Automatically removing hyphens from ID# or SSN. FARAZ QURESHI Excel Discussion (Misc queries) 8 February 2nd 07 11:35 PM
Remove hyphens in text Pat Excel Worksheet Functions 7 October 21st 05 12:30 PM
Does XL2K have "hard hyphens" (non-break hyphens)? StargateFan Excel Discussion (Misc queries) 0 January 29th 05 01:36 PM


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