Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-01-2018, 02:49 PM
jon.fallows@sedgman.com jon.fallows@sedgman.com is offline strip characters from the right Windows 7 64bit strip characters from the right Office 2010 64bit
Novice
strip characters from the right
 
Join Date: May 2018
Location: Australia
Posts: 2
jon.fallows@sedgman.com is on a distinguished road
Default strip characters from the right

I need to strip (and not keep) characters from the right of a list of irregular strings. For example, in this string;



SCR SC207 MC3001 4W FIRE SUPP & EXT INSP STAT Rev 0';

I need to strip 'Rev 0' and retain the rest.

Note that strings in the list may NOT be all the same length.

I can strip from the left, but the right is proving to be tricky.

Thanks
Jon
Reply With Quote
  #2  
Old 05-01-2018, 10:24 PM
ArviLaanemets ArviLaanemets is offline strip characters from the right Windows 8 strip characters from the right Office 2016
Expert
 
Join Date: May 2017
Posts: 873
ArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud of
Default

It depends on what you have to strip!

a) certain number of characters;
b) certain substring (like " Rev 0'");
c) all starting with certain substring (like all starting with " Rev";
d) something else.
Reply With Quote
  #3  
Old 05-02-2018, 02:07 PM
jon.fallows@sedgman.com jon.fallows@sedgman.com is offline strip characters from the right Windows 7 64bit strip characters from the right Office 2010 64bit
Novice
strip characters from the right
 
Join Date: May 2018
Location: Australia
Posts: 2
jon.fallows@sedgman.com is on a distinguished road
Default

Thanks for your query.
I have figured it out. Thanks
Reply With Quote
  #4  
Old 05-09-2018, 11:38 PM
jolivanes jolivanes is offline strip characters from the right Windows 10 strip characters from the right Office 2013
Advanced Beginner
 
Join Date: Sep 2011
Posts: 93
jolivanes will become famous soon enough
Default

Would you be so kind and show your solution for other people who would have the same problem and are looking for a helping hand.
Reply With Quote
Reply

Tags
string



Similar Threads
Thread Thread Starter Forum Replies Last Post
strip characters from the right Format shelf strip graphic and data ShaunO Mail Merge 1 08-19-2016 04:20 PM
Strange Characters appear when selecting SHOW ALL NON PRINTING CHARACTERS ann Amber Word 1 08-01-2015 08:06 PM
strip characters from the right strip extra information from email addresses jbk1043 Word 1 03-03-2013 01:46 PM
Junk characters (box-like characters) in Word file Sashikala Word 1 04-20-2010 02:03 PM
strip characters from the right Strip lf/cr from text p3aul Word 9 08-18-2009 12:42 AM

Other Forums: Access Forums

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