Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How to Substract a word from right side of the column using Right(

Hi
How can i remove a Right side word from a set of words in one column
i need to substract the last names in to another column
eg: James William Watson... In this case i need to to take" Watson to the
next column

Regards
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default How to Substract a word from right side of the column using Right(

With the full name in cell A1; try the below formula in B1 and copy down as
required

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

If this post helps click Yes
---------------
Jacob Skaria


"JAF-In" wrote:

Hi
How can i remove a Right side word from a set of words in one column
i need to substract the last names in to another column
eg: James William Watson... In this case i need to to take" Watson to the
next column

Regards

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default How to Substract a word from right side of the column using Right(

Try this

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

Mike

"JAF-In" wrote:

Hi
How can i remove a Right side word from a set of words in one column
i need to substract the last names in to another column
eg: James William Watson... In this case i need to to take" Watson to the
next column

Regards

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default How to Substract a word from right side of the column using Ri

hi
if i want to retrieve more than one words
Eg: All names except last name?

Regards

"Mike H" wrote:

Try this

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

Mike

"JAF-In" wrote:

Hi
How can i remove a Right side word from a set of words in one column
i need to substract the last names in to another column
eg: James William Watson... In this case i need to to take" Watson to the
next column

Regards

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default How to Substract a word from right side of the column using Ri

Hi,

Try this with your text string in a1 and the number of the word to extract
in b1

=MID(MID(MID(SUBSTITUTE(A1," ","^",B1-1),1,256),FIND("^",SUBSTITUTE(A1,"
","^",B1-1)),256),2,FIND(" ",MID(MID(SUBSTITUTE(A1,"
","^",B1-1),1,256),FIND("^",SUBSTITUTE(A1," ","^",B1-1)),256))-2)

Mike

"JAF-In" wrote:

hi
if i want to retrieve more than one words
Eg: All names except last name?

Regards

"Mike H" wrote:

Try this

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

Mike

"JAF-In" wrote:

Hi
How can i remove a Right side word from a set of words in one column
i need to substract the last names in to another column
eg: James William Watson... In this case i need to to take" Watson to the
next column

Regards



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,346
Default How to Substract a word from right side of the column using Right(

Here is another approach:

1. Suppose the names are in A1:A100, select them and choose Data, Text to
Columns, Delimited, Next, check Space, Next, pick a destination cell, for
this example, C1, Finish.
2. Enter the following formula in B1 and fill it down
=SUBSTITUTE(A1,LOOKUP("ZZ",1:1),"")

convert column B to values and delete the results of step 1.

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"JAF-In" wrote:

Hi
How can i remove a Right side word from a set of words in one column
i need to substract the last names in to another column
eg: James William Watson... In this case i need to to take" Watson to the
next column

Regards

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
How can i print one long column side by side? chiller20 Excel Discussion (Misc queries) 2 August 21st 08 05:50 PM
How to permantently hide clipboard pane on the right side of Word/Excel 2003? Goran Ivanic Excel Discussion (Misc queries) 1 May 7th 08 10:37 PM
Can you set dual axis side by side column charts? Shane Daniel Charts and Charting in Excel 2 August 25th 06 08:05 PM
How do I substract numbers in range like this: Substract(a1..a10) Paulo New Users to Excel 3 November 17th 05 04:48 AM
How do I make a stacked column chart with side-by-side comparison. Tim Charts and Charting in Excel 3 June 9th 05 03:38 AM


All times are GMT +1. The time now is 02:15 PM.

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"