Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default Text removal question

I have a column (A1) that has text similar to the following:
Adult Services-DMHAS, Bridgeport A100215249400

I want to take only the text to the right of the last space. The resulting
column (A2) would have the following text in it:
A100215249400

Can someone tell me the formula for this?--
Thanks

You all are teaching me so much
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Text removal question

=RIGHT(A1,MATCH(" ",MID(A1,LEN(A1)-ROW(INDIRECT("1:"&LEN(A1))),1),0))
This is an array formula that must be entered with CNTRL-SHFT-ENTER rather
than just the ENTER key.
--
Gary''s Student - gsnu200819


"knowshowrosegrows" wrote:

I have a column (A1) that has text similar to the following:
Adult Services-DMHAS, Bridgeport A100215249400

I want to take only the text to the right of the last space. The resulting
column (A2) would have the following text in it:
A100215249400

Can someone tell me the formula for this?--
Thanks

You all are teaching me so much

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default Text removal question

Shazam!

That was a quick reply. Thanks

There are about four concepts in that formula that I will need to read up on
to understand. Great -

Unfortunately, when I pasted it in and hit CNTRL-SHFT-ENTER I got #N/A. Any
ideas?
--
Thanks

You all are teaching me so much


"Gary''s Student" wrote:

=RIGHT(A1,MATCH(" ",MID(A1,LEN(A1)-ROW(INDIRECT("1:"&LEN(A1))),1),0))
This is an array formula that must be entered with CNTRL-SHFT-ENTER rather
than just the ENTER key.
--
Gary''s Student - gsnu200819


"knowshowrosegrows" wrote:

I have a column (A1) that has text similar to the following:
Adult Services-DMHAS, Bridgeport A100215249400

I want to take only the text to the right of the last space. The resulting
column (A2) would have the following text in it:
A100215249400

Can someone tell me the formula for this?--
Thanks

You all are teaching me so much

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default Text removal question

I got it! Your formula worked. Thanks
--
Thanks

You all are teaching me so much


"Gary''s Student" wrote:

=RIGHT(A1,MATCH(" ",MID(A1,LEN(A1)-ROW(INDIRECT("1:"&LEN(A1))),1),0))
This is an array formula that must be entered with CNTRL-SHFT-ENTER rather
than just the ENTER key.
--
Gary''s Student - gsnu200819


"knowshowrosegrows" wrote:

I have a column (A1) that has text similar to the following:
Adult Services-DMHAS, Bridgeport A100215249400

I want to take only the text to the right of the last space. The resulting
column (A2) would have the following text in it:
A100215249400

Can someone tell me the formula for this?--
Thanks

You all are teaching me so much

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default Text removal question

A1 and A2 are not columns, so I'm not totally clear where your data is.
Perhaps this normally entered formula does what you want...

=TRIM(RIGHT(SUBSTITUTE(TRIM(A1)," ",REPT(" ",99)),99))

--
Rick (MVP - Excel)


"knowshowrosegrows" wrote in
message ...
I have a column (A1) that has text similar to the following:
Adult Services-DMHAS, Bridgeport A100215249400

I want to take only the text to the right of the last space. The
resulting
column (A2) would have the following text in it:
A100215249400

Can someone tell me the formula for this?--
Thanks

You all are teaching me so much




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default Text removal question

While I think the formula I just posted may be a little more efficient than
this one, I'm thinking your problem with the formula Gary''s Student posted
might be in where you pasted it. If you pasted it directly into the cell,
Ctrl+Shift+Enter won't work... you have to paste the formula directly into
the Formula Bar and then hit Ctrl+Shift+Enter from that location.

--
Rick (MVP - Excel)


"knowshowrosegrows" wrote in
message ...
Shazam!

That was a quick reply. Thanks

There are about four concepts in that formula that I will need to read up
on
to understand. Great -

Unfortunately, when I pasted it in and hit CNTRL-SHFT-ENTER I got #N/A.
Any
ideas?
--
Thanks

You all are teaching me so much


"Gary''s Student" wrote:

=RIGHT(A1,MATCH(" ",MID(A1,LEN(A1)-ROW(INDIRECT("1:"&LEN(A1))),1),0))
This is an array formula that must be entered with CNTRL-SHFT-ENTER
rather
than just the ENTER key.
--
Gary''s Student - gsnu200819


"knowshowrosegrows" wrote:

I have a column (A1) that has text similar to the following:
Adult Services-DMHAS, Bridgeport A100215249400

I want to take only the text to the right of the last space. The
resulting
column (A2) would have the following text in it:
A100215249400

Can someone tell me the formula for this?--
Thanks

You all are teaching me so much


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
Removal of text from a cell containing both text and numbers Paul Gapes Excel Discussion (Misc queries) 1 September 26th 08 05:54 AM
paranthesis removal RADM Excel Worksheet Functions 1 May 11th 07 05:13 PM
Macro removal Mike Milmoe Excel Discussion (Misc queries) 2 February 16th 06 08:19 PM
Number removal Jennings Excel Worksheet Functions 4 February 15th 06 04:56 PM
Year row removal smurray444 Excel Worksheet Functions 0 December 5th 05 10:48 PM


All times are GMT +1. The time now is 11:54 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"