Saturday, May 18, 2019

Use Word’s Replace to Transpose a Column of Names

Use Words Replace to transpose a column of names Available fromhttp//blogs. techrepublic. com. com/msoffice/? p=4156 Date November 22nd, 2010 Author Susan Harkins Category Microsoft Word Youll often work out a column of names entered in a Word document either as a list or part of a table. Listing the names is no problem, but changing their value after theyre entered could be. For instance, lets say your document contains a list of names entered in initiativename lastname format, but you want them in lastname, firstname format. Do you have to re-enter them?No, theres a elementary wildcard trick you can use with Words Replace feature that will take electric charge of the transposing for you. To get Word to transform a list or column of names, do the following tell apart the list of names you want to transpose. From the Edit menu, choose Replace. In Word 2010, click Replace in the Editing group on the Home tab. Click the More button and check the Use Wildcards option. This is an cardinal stepif you miss it, this technique wont work. In the Find What control, enter () (), with a office character between the two sets.In the Replace With control, enter the following characters 2, 1, with a space character onwards the second slash character. Click Replace All. Word will transpose the first and last names and separate them with a comma character. When Word asks you to expand the search, click No, and then Close to return to the document. Wildcard interpretation Once you understand the wildcards, the whole trick is easily exposed () The parentheses arent true wildcards, not in a matching sense. They allow you to divide a pattern into logical sequences. The brackets mark the beginning and ratiocination of a word or phrase. The slash character replaces characters, and is used with a number that specifies a bracketed fortune (above). In this case, the Find What code splits the two names into two separate sequences. The 2 component in the Replace What code rep laces the contents of the first sequence with the contents of the second sequence. The 1 component replaces the contents of the second sequence with the contents of the first. As you can see, youre not limited to just transposing first and last names. With these wildcard tools, you can rearrange quite a bit of content

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.