Solved

tidy up Mc/Mac/O in Excel database

Posted on 2015-02-20
3
37 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 33

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

738 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