Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-29-2015, 06:48 PM
Gef Gef is offline I'm looking for a formula to extract all the text before the last name in a cell Mac OS X I'm looking for a formula to extract all the text before the last name in a cell Office for Mac 2011
Novice
I'm looking for a formula to extract all the text before the last name in a cell
 
Join Date: Jan 2015
Posts: 11
Gef is on a distinguished road
Default I'm looking for a formula to extract all the text before the last name in a cell

Hello,



I'm trying to separate out the first and last names in a spreadsheet. I used a formula to extract the last name. Now I just want to extract all the text that is to the left of the space before the last name. Is this possible?

The text to the left of the space before the last name is totally inconsistent - - and that's ok for my purposes now.

Thanks for your help!
Reply With Quote
  #2  
Old 01-29-2015, 09:07 PM
macropod's Avatar
macropod macropod is offline I'm looking for a formula to extract all the text before the last name in a cell Windows 7 64bit I'm looking for a formula to extract all the text before the last name in a cell Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Try:
=LEFT(A1,FIND("‡",SUBSTITUTE(A1," ","‡",LEN(A1)-LEN(SUBSTITUTE(A1," ",""))))-1)
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 01-29-2015, 10:07 PM
Gef Gef is offline I'm looking for a formula to extract all the text before the last name in a cell Mac OS X I'm looking for a formula to extract all the text before the last name in a cell Office for Mac 2011
Novice
I'm looking for a formula to extract all the text before the last name in a cell
 
Join Date: Jan 2015
Posts: 11
Gef is on a distinguished road
Default

Thank you so much, Paul! This works perfectly!
Reply With Quote
  #4  
Old 02-01-2015, 07:05 PM
thetraininglady thetraininglady is offline I'm looking for a formula to extract all the text before the last name in a cell Windows 7 64bit I'm looking for a formula to extract all the text before the last name in a cell Office 2010 32bit
Competent Performer
 
Join Date: Sep 2014
Location: Sydney, Australia
Posts: 214
thetraininglady is on a distinguished road
Default

Otherwise the Text to Columns function will separate text in a cell to multiple columns.
Reply With Quote
  #5  
Old 02-01-2015, 07:14 PM
macropod's Avatar
macropod macropod is offline I'm looking for a formula to extract all the text before the last name in a cell Windows 7 64bit I'm looking for a formula to extract all the text before the last name in a cell Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

True, but that's not much good when (as in this case) the desired output (which could be multiple given names, initials & honorifics) are all required in a single column.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to extract text from a cell and preserve special formatting? epid011 Word VBA 2 04-04-2014 04:54 PM
Extract Min and highlight cell from source LeilaniMerle Excel 3 01-26-2014 11:05 PM
extract text with formula s7y Excel 7 06-05-2013 06:18 AM
Change formula cell range based on cell value Scoth Excel 4 10-25-2012 07:51 AM
Formula that references cell with text in different workbook no1texan Excel 3 07-17-2012 05:58 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:08 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft