Cleansing misspelled data

Callum Wade

New Member
Joined
Aug 28, 2019
Messages
1
I have taken control of a very messy safety management system at work. I'm working on creating a dashboard using pivot charts and slicers to make the KPI's easiy visualised without excessive manual input.

The biggest problem I'm having is that in fields such as Cause and Department I'm faced with multiple spellings of the same value. For example in "Cause" I have things like "Struck By", "Struck by", "struck by" "STRUCK BY", "struck_by" etc. I have a list range prepared with standardised causes and departments to use with data validation to ensure this isn't a problem going forward however I need to make sure all the entries are identical so that the pivot tables provide accurate reports.

Can anyone recommend a way of cleansing the data so all the entries follow the new standardised formats that isn't manually scrolling through hundreds of rows?

All options considered as I am wanting to learn VBA as well.

Thanks
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
A helper column with a formula like =PROPER(TRIM(A1)) that is then copy/pasted over the original column would fix the capitalization issue.

Quicker than looking and editing each cell.
 
Upvote 0
...."struck_by" etc
There's an underscore in the string, what other Non-Alphanumeric Characters could be there? like .;'/ etc?
Could you post some actual example?
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top