Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-03-2017, 04:43 PM
LCLARK LCLARK is offline How to delete all text after second space? Mac OS X How to delete all text after second space? Office 2016
Novice
How to delete all text after second space?
 
Join Date: May 2017
Posts: 1
LCLARK is on a distinguished road
Default How to delete all text after second space?


I have this string of text:

MULLER PL (BEPM 100%) NEW CONDO LOT 16

I need to get rid of everything except MULLER PL. I have a large data set of these and they are all different lengths. For example, I also have: SHEFFIELD DR HAMPTON PARK (BEPM 100%) 6 PLEX" and I just need SHEFFIELD DR.

Help anyone?
Reply With Quote
  #2  
Old 05-03-2017, 07:07 PM
macropod's Avatar
macropod macropod is offline How to delete all text after second space? Windows 7 64bit How to delete all text after second space? Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
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

Is this to be done in the same cell (i.e. everything after the 2nd space is forever deleted) or in a separate cell (thus allowing the source cell to retain the full data)?
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 05-04-2017, 09:38 PM
jolivanes jolivanes is offline How to delete all text after second space? Windows 10 How to delete all text after second space? Office 2013
Advanced Beginner
 
Join Date: Sep 2011
Posts: 93
jolivanes will become famous soon enough
Default

If you want a formula.
Your data should be in A1 on down and the formulas in B1 on down.
Code:
=LEFT(A1,SEARCH(" ",A1,SEARCH(" ",A1)+1)-1)
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to delete all text after second space? Why when I paste text into word, blank space appears after a paragraph & I can't delete it? AWD Word 3 10-16-2018 01:10 PM
how to get control/option-delete to only delete the word and not the preceding space microsofthelp Word 0 11-20-2016 04:34 AM
How to delete all text after second space? Delete Space mariadanmark Excel 2 05-17-2012 02:53 AM
How to delete all text after second space? how to delete table without losing space tomcruiser Word 3 11-28-2011 03:24 PM
How to delete first 6 Digits and one Space from a CELL? Learner7 Excel 3 08-10-2010 04:06 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:10 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