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

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
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,214,940
Messages
6,122,356
Members
449,080
Latest member
Armadillos

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