Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-25-2019, 09:50 AM
cheech1981 cheech1981 is offline Reversing Word Order with Multiple String Types Windows 10 Reversing Word Order with Multiple String Types Office 2016
Advanced Beginner
Reversing Word Order with Multiple String Types
 
Join Date: Nov 2011
Location: New Jersey, USA
Posts: 77
cheech1981 is on a distinguished road
Default Reversing Word Order with Multiple String Types

Hi all,



I am doing a find/replace to reverse the first initial and last name in a list, like this:

J. Smith --> Smith, J.

I've got that down with:
Find: <([A-Z][! ]@) ([A-Z][! ]@)>
Replace: \2, \1

However, I quickly stumbled across a challenge. Some names have both a first and middle initial, such as

R. M. Johnson --> Johnson, R. M.

Is there a single find/replace query I can run that would account for both types of names (names with just a first initial and names with both first and middle initials)?

Thank you for any ideas you can provide!
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I change multiple pictures in Word 2016 to all new pictures that appear in a specified order? chaz Word VBA 7 07-11-2018 03:57 AM
Reversing Word Order with Multiple String Types Replace multiple strings by one same string at once puff Word 2 02-28-2018 11:04 AM
How to do multiple find and replace in string. PRA007 Word VBA 2 01-06-2016 09:10 PM
multiple types of alignment on one line? uoficowboy Word 1 03-06-2010 08:54 PM
Reversing Word Order with Multiple String Types Reversing Text Order weemikey Word 4 08-05-2009 11:10 AM

Other Forums: Access Forums

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