Solved

tidy up Mc/Mac/O in Excel database

Posted on 2015-02-20
3
34 Views
Last Modified: 2015-02-24
I got a question about ways to clean up the following..
someone has entered Mc Donald instead of McDonald or MacDonald. Or someone enters O Brien instead of O'Brien....is there a way to tidy up the data in Excel to the desired format? Thanks :-)
0
Comment
Question by:agwalsh
3 Comments
 
LVL 18

Accepted Solution

by:
Simon earned 250 total points
ID: 40620769
The only way I know is to search for the strings, by dropping extra formula columns down the end of your table.
e.g. =OR(LEFT(A2,3)="Mc ",LEFT(A2,2)="o ",LEFT(A2,4)="mac ")
Then you can filter on TRUE in the new column to find all the ones to change.
You could do the replacement directly with a formula, but I find it safest to visually inspect the data first.
e.g. a sample formula for the first case you mentioned would be:
=SUBSTITUTE(A2,"Mc ","Mc",1)
0
 
LVL 32

Assisted Solution

by:Rob Henson
Rob Henson earned 250 total points
ID: 40621518
Apply a filter to the data and then on the Name column enable the filter and select the tick boxes for those that match the various options, ie Mc D, McD, MacD.

From those that are visible select one that is correct and copy. You can then select the remainder of the column and paste, so long as you have only selected one cell to copy, this will only paste into the visible cells.

Repeat for next option.
0
 

Author Closing Comment

by:agwalsh
ID: 40627618
Does the job both of them but just chose the SimonAdept solution as best solution for its elegance and flexibility. But both do the job.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now