Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-02-2015, 08:07 AM
juddman juddman is offline Deleting phrases or from one point to another? Windows 7 64bit Deleting phrases or from one point to another? Office 2010 64bit
Novice
Deleting phrases or from one point to another?
 
Join Date: Oct 2015
Posts: 2
juddman is on a distinguished road
Default Deleting phrases or from one point to another?

Ok I'm trying this forum because when I just google for answers the language used for Excel baffles me so I apparently need more help.



I populated a large spreadsheet with music information, but unfortunately the "Artist" column all starts with a long thread like this:

E:\Various Artist 1979-2010\Karaoke English\CAPITAL KARAOKE AUSTRALIA\CKA20\CKA20\CKA20-02 - Do It With Madonna - Andriods.mp3

I only want the artist or Andriods.mp3 in this case. Is there any way to mass delete from "E: all the way to the second -"?

Thank you for any help you can provide.

Steve
Reply With Quote
  #2  
Old 10-02-2015, 11:16 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Deleting phrases or from one point to another? Windows 7 64bit Deleting phrases or from one point to another? Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,920
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

This formula should do the job
=TRIM(RIGHT(SUBSTITUTE(A1;"-";REPT(" ";LEN(A1)));LEN(A1)))

(replace semi-colons with commas)
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #3  
Old 10-02-2015, 11:32 AM
juddman juddman is offline Deleting phrases or from one point to another? Windows 7 64bit Deleting phrases or from one point to another? Office 2010 64bit
Novice
Deleting phrases or from one point to another?
 
Join Date: Oct 2015
Posts: 2
juddman is on a distinguished road
Default

This didn't work. It just replaced the whole row with the header from it's column.
Reply With Quote
  #4  
Old 10-02-2015, 04:44 PM
macropod's Avatar
macropod macropod is offline Deleting phrases or from one point to another? Windows 7 64bit Deleting phrases or from one point to another? Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,369
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

Quote:
Originally Posted by juddman View Post
This didn't work.
It works for me.

Do note that, as with most Excel formulas posted in forums where no cell address context is given, the formula assumes the data are in A1 and the formula is in any other cell. Obviously, you can't put a formula in the very cell you want to extract data from and, if the cell you want to process isn't A1, you need to change the formula's cell references.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 10-03-2015, 05:40 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Deleting phrases or from one point to another? Windows 7 64bit Deleting phrases or from one point to another? Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,920
Pecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond reputePecoflyer has a reputation beyond repute
Default

Cross post http://www.excelforum.com/excel-form...-to-point.html
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Power Point - Deleting Legend enteries via VBA PowerPoint_VBA PowerPoint 4 06-07-2015 06:46 AM
Counting Keywords and Phrases tlamae Excel 5 05-30-2014 06:49 AM
How do I find Repeating Words/Phrases? CCD2016 PowerPoint 0 12-01-2013 09:37 PM
Deleting phrases or from one point to another? Selecting text between two key phrases Chayes Word VBA 6 06-24-2012 06:54 PM
Deleting phrases or from one point to another? Automatically Hyperlink phrases TinaIgnatiev Word 1 12-22-2010 01:42 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:31 PM.


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