Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
roger_home
 
Posts: n/a
Default formula to delete last word in a column


Can someone give me a formula to delete last word in a column?

Thanks
roger901


--
roger_home
------------------------------------------------------------------------
roger_home's Profile: http://www.excelforum.com/member.php...o&userid=16434
View this thread: http://www.excelforum.com/showthread...hreadid=346091

  #2   Report Post  
Jason Morin
 
Posts: n/a
Default

One way:

=RIGHT(A1,MATCH(" ",MID(A1,LEN(A1)+1-ROW(INDIRECT("1:"&LEN
(A1))),1),0)-1)

Array-entered (press ctrl + shift + enter).

HTH
Jason
Atlanta, GA

-----Original Message-----

Can someone give me a formula to delete last word in a

column?

Thanks
roger901


--
roger_home
---------------------------------------------------------

---------------
roger_home's Profile:

http://www.excelforum.com/member.php?
action=getinfo&userid=16434
View this thread:

http://www.excelforum.com/showthread...hreadid=346091

.

  #3   Report Post  
swatsp0p
 
Posts: n/a
Default


Do you have a column of mixed numeric and text entries and you want to
delete the last text entry? What if the last text entry is more than
one word, delete only the last word or the entire entry?

This will probably require VB code to accomplish.

More details, please....


--
swatsp0p


------------------------------------------------------------------------
swatsp0p's Profile: http://www.excelforum.com/member.php...o&userid=15101
View this thread: http://www.excelforum.com/showthread...hreadid=346091

  #4   Report Post  
Jason Morin
 
Posts: n/a
Default

Sorry, I wasn't paying attention. The formula will
extract the last word. Use this instead:

=LEFT(A1,LEN(A1)-MATCH(" ",MID(A1,LEN(A1)+1-ROW(INDIRECT
("1:"&LEN(A1))),1),0))

Also array-entered.

Jason

-----Original Message-----
One way:

=RIGHT(A1,MATCH(" ",MID(A1,LEN(A1)+1-ROW(INDIRECT

("1:"&LEN
(A1))),1),0)-1)

Array-entered (press ctrl + shift + enter).

HTH
Jason
Atlanta, GA

-----Original Message-----

Can someone give me a formula to delete last word in a

column?

Thanks
roger901


--
roger_home
--------------------------------------------------------

-
---------------
roger_home's Profile:

http://www.excelforum.com/member.php?
action=getinfo&userid=16434
View this thread:

http://www.excelforum.com/showthread...hreadid=346091

.

.

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
Insert rows based on specific value bob Excel Worksheet Functions 6 February 29th 08 07:11 PM
Search column and move text formula tommy Excel Discussion (Misc queries) 0 February 8th 05 06:55 PM
ISSUE: Using VBA to Delete a Column cincode5 Excel Discussion (Misc queries) 1 January 27th 05 01:06 AM
what formula do i put for column m = column k minus column l in e. jenniss Excel Discussion (Misc queries) 5 January 6th 05 08:18 PM
how to enter a formula using column() function for a range Mike Peter Excel Worksheet Functions 6 December 8th 04 07:11 AM


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