Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-13-2019, 04:49 AM
ArviLaanemets ArviLaanemets is offline Remove everything after the last instance of a digit/letter combo Windows 8 Remove everything after the last instance of a digit/letter combo Office 2016
Expert
 
Join Date: May 2017
Posts: 949
ArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant futureArviLaanemets has a brilliant future
Default


When the number of possible variants of beginnings of end part of strings is not more than 6 (seventh IFERROR() is reserved for no ending found), then like this:
Code:
=IFERROR(LEFT($A2,IFERROR(SEARCH(" Front",$A2),IFERROR(SEARCH(" Top",$A2),IFERROR(SEARCH(" Rear",$A2),IFERROR(SEARCH(" Bottom",$A2),0))))-1),$A2)
When there is more possible starts for ending part, then you have to croup IFERROR()'s using IF(). But the formula will be terrible - probably you have to use several helper columns to keep some overview how the calculation is done and which condition is where applied.
Reply With Quote
  #2  
Old 05-13-2019, 08:07 PM
14spar15 14spar15 is offline Remove everything after the last instance of a digit/letter combo Windows 7 64bit Remove everything after the last instance of a digit/letter combo Office 2010 64bit
Competent Performer
Remove everything after the last instance of a digit/letter combo
 
Join Date: Mar 2011
Posts: 100
14spar15 is on a distinguished road
Default

Wow!!, This turned out to be much more involved than I first thought. I tried xor’s solution first and it seems to be working pretty good. Reading onto some of the other post I’m seeing more robust, easier to maintain, resource hungry and faster. As soon as I get a chance here I will experiment with some of these other options. Thanks for all the help here.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Letter Template /w combo box list etruz Word 4 10-31-2018 05:16 AM
Pasting a table with combo boxes to a new document looses the combo box bobsut@enviro-consult.com Word 1 01-03-2017 01:29 PM
Regex/wildcard search for dates with 2-digit and 4-digit years Marrick13 Word VBA 2 01-29-2016 07:04 AM
Remove everything after the last instance of a digit/letter combo A challenging digit by digit manipulation, rotate the digit in range of 0 to 9 laucn Excel Programming 14 05-17-2015 12:12 PM
Macro to keep first instance and remove duplicates in certain column zhead Excel 2 03-18-2015 10:16 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:49 AM.


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