Well you wouldn’t have to use a macro.
There are several ways to do this, here’s one
Highlight all the cells that have the “City of” that you want changed
Then hit “Ctrl+H”
Then go to the replace tab
Then where it says “Find what”
Type in City Of
Leave replace with blank
Then hit replace all.
This will replace “City of” with nothing.
This leaves you with all the city names only
Close out of Find/Replace
Then for step 2:
In the column next to all the city names type the words City of in one cell and copy that for all the cities on your list.
So now you should have something like
Column A -> Column B
Minneapolis -> City of
Chicago -> City of
Detroit -> City of
Then in colum C you use a function called “Concatenate”
So in this if Minneapolis is in cell A1 and City of is in cell B1 you would go to cell C1 and hit the Fx button
Then go to the Concatenate funtion (found in text) and follow the prompts
Basically it’ll read (in column C1):
=CONCATENATE(B3,A3)
But now you’re saying, “Mark I want a SPACE”
So you have to alter this a bit
It should read
=CONCATENATE(B3, " ",A3)
See how the little " " put a space.
Then you copy that formula all the way down your list
Now for the final step.
This is fine for what it is but the cells in column three are pulling from other sources so you don’t want that.
So what you do is highlight all of column C which contains the correct names
City of Chicago
City of Minneapolis
City of Detroit
Then you copy that column and go to a blank column (in this case it’d be column D)
Then you RIGHT CLICK and PASTE SPECIAL -> Values only
This way your cells in column D are correct and aren’t pulling from anything.
You could write a macro and there are lots of ways of doing it, but this is one that goes step by step and helps you learn the process a bit