LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Retriving text from a column

You right, because I was removing spaces with the inner part of the formula

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

I never realised I would get the last space back when using the extracted
string in the outer substitute part, nice spot.

Mike

"Rick Rothstein" wrote:

Try this

=SUBSTITUTE(A1,),"")


You should encase that in a TRIM function in order to get rid of the space
that is in front of that last word...

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

--
Rick (MVP - Excel)


how can i retrieve text from one column to another except one last word
for eg:The text "how can i retrieve text from" is in column A1 and i have
to
retrieve "how can i retrieve text" to B1





 
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
retriving specific data????? wt.pm Excel Worksheet Functions 3 April 1st 09 10:55 PM
Find a text from a column in a text string within another column? Mike Garcia[_2_] New Users to Excel 1 October 22nd 08 06:50 PM
Retriving Values from a separate sheet of a different file Anift Excel Worksheet Functions 3 April 4th 06 01:42 PM
Wrap text in column headers to fit text in column MarkN Excel Discussion (Misc queries) 10 November 11th 05 04:21 AM
Retriving a deleted version of Excel gsp56 Excel Worksheet Functions 1 January 28th 05 03:01 PM


All times are GMT +1. The time now is 05:35 PM.

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"