ISD/Add Ins uploads and removing special characters - is there a specific tool Infor or the Community recommends to clean the data of special characters before an upload? Is Albeits a tool anyone is using?
Hi Lisa K,
I use VBA code to make it easier to find and remove characters. I can send you a copy of the spreadsheet with the vba code in it? I've pasted it below but it might just be easier for me to e-mail you the spreadsheet.
It basically creates a formula you can use called RemoveSpecial and you just drag the formula down your spreadsheet and then upload your ISD/Add Ins after you're done.
Below is the vba code you can insert into excel if you know where to do that in the Developer tab. It also only looks for these special characters "#$%()^*&" but you can always add whatever special characters you want. Just make sure they're entered between the " ".
Function RemoveSpecial(Str As String) As String'updatebyExtendoffice 20160303 Dim xChars As String Dim I As Long xChars = "#$%()^*&" For I = 1 To Len(xChars) Str = Replace$(Str, Mid$(xChars, I, 1), "") Next RemoveSpecial = StrEnd Function
Thanks,
Michelle
Michelle.Hager@clearskyerp.com
@michelle-hager that would be wonderful! Thank you for replying,
Lisa K
lisa.klena@uchealth.org
Is this mainly because the source of the data is "bad" or just trying to protect the data going in from failure in general?
I would say both. We receive PDFs from vendors we are converting into Excel and still wind up loading extra spaces in some cases (not all.) I did find that this one user has the Ablebits program they run to clean the spreadsheets but, it still seems to occur. We are going to try to do some training with the user as well.
For cleaning data, I highly recommend Power Query -- it is built into Excel versions 2016 and later, and if you have the latest version of Excel, you can even import PDF files. Seriously one of the best tools for cleaning data. While there certainly are advanced features, the basics are quite easy to learn and the rewards are great.
For example, at the click of a button, you can trim all leading and trailing spaces from your data. To remove special characters, you can create a custom column using this type of formula: =Text.Select([ColumnName], {"A".."z", "0".."9"})
This will return only upper- and lower-case letters, as well as numbers -- ignoring / "stripping" any special characters.
While there are great, free resources you can find on YouTube, for a more structured lesson, I can recommend this course for anyone wanting to learn more: Master Excel Power Query: Beginner to Advanced (including M) | XelPlus. It is how I got started and it is no hyperbole to state that, for anyone who works with a lot of different data sources within Excel, learning Power Query will change your life for the better.