Seeking Recommendations for Excel Data Cleaner

%3CLINGO-SUB%20id%3D%22lingo-sub-1716913%22%20slang%3D%22en-US%22%3ESeeking%20Recommendations%20for%20Excel%20Data%20Cleaner%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1716913%22%20slang%3D%22en-US%22%3E%3CP%3EEvery%20month%20I%20get%20about%2040%20Excel%20files%20and%20need%20to%20clean%20the%20data%20(remove%20extraneous%20rows%20and%20columns%2C%20remove%20unnecessary%20headers%2C%20ensure%20all%20values%20are%20numbers%20not%20text%2C%20convert%20merged%20cells%20to%20regular%20cells%2C%20etc.).%20Is%20there%20such%20a%20thing%20as%20an%20Excel%20data%20cleaner%20that%20can%20do%20something%20like%20this%20across%20all%2040%20excel%20files%20if%20I%20put%20it%20them%20in%20a%20folder%20with%20the%20click%20of%20a%20button%3F%20If%20yes%20or%20if%20you%20know%20of%20anything%20similar%2C%20please%20post%20recommendattions%20below.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1716913%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1717283%22%20slang%3D%22en-US%22%3ERe%3A%20Seeking%20Recommendations%20for%20Excel%20Data%20Cleaner%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1717283%22%20slang%3D%22en-US%22%3EIf%20every%2040%20files%20has%20same%20or%20identical%20corrections%2C%2C%20then%20VBA%20macro%20can%20be%20used%20to%20clean%2C%2C%20but%20you%20need%20to%20share%20one%20WB%20along%20with%20recommended%20corrections.%3C%2FLINGO-BODY%3E
Highlighted
Occasional Visitor

Every month I get about 40 Excel files and need to clean the data (remove extraneous rows and columns, remove unnecessary headers, ensure all values are numbers not text, convert merged cells to regular cells, etc.). Is there such a thing as an Excel data cleaner that can do something like this across all 40 excel files if I put it them in a folder with the click of a button? If yes or if you know of anything similar, please post recommendattions below.

 

Thanks

3 Replies
Highlighted
If every 40 files has same or identical corrections,, then VBA macro can be used to clean,, but you need to share one WB along with recommended corrections.
Highlighted

I do this all the time maybe I can help you. Can you upload a sample file that points out the data cleaning tasks? If you have sensitive data just replace it with something random.

Highlighted

@TarakK 

 

Many roads lead to Rome, as well as many proposed solutions in Excel lead to a solution.

Here is a small VBA example to clean files / worksheets, etc. yourself, you just have to adapt to what you want to clean exactly.

 

Sub clean ()
Dim wksA As Worksheet
Dim rngB As Range
Dim lngLine As Long
Dim lngLastline As Long
Set wksA = ActiveWorkbook.Worksheets ("Sheet1") 'adjust !!
lngLlastZeil = wksA.Cells (wksA.Rows.Count, 2) .End (xlUp) .Row

wksA.AutoFilterMode = False
wksA.Range (wksA.Cells (4, 1), wksA.Cells (last line, 22)). Sort _
    Key1: = wksA.Cells (4, 21), _
    Order1: = xlDescending, _
    Header: = xlNo, _
    OrderCustom: = 1, _
    MatchCase: = False, _
    Orientation: = xlTopToBottom, _
    DataOption1: = xlSortNormal

For lngZeile = lngLlastZeil To 5 Step -1
 If Application.WorksheetFunction.CountIf (wksA.Range (wksA.Cells (3, 2), wksA.Cells (lngZeile, 2)), wksA.Cells (lngZeile, 2))> 1 Then
  wksA.Rows (lngZeile) .Delete
 End If
Next

'possibly. sort the names
last line = wksA.Cells (wksA.Rows.Count, 2) .End (xlUp) .Row
wksA.Range (wksA.Cells (4, 1), wksA.Cells (last line, 22)). Sort _
    Key1: = wksA.Cells (4, 2), _
    Order1: = xlAscending, _
    Header: = xlNo, _
    OrderCustom: = 1, _
    MatchCase: = False, _
    Orientation: = xlTopToBottom, _
    DataOption1: = xlSortNormal
     
End Sub

'From German to English translate

 

 

Nikolino

I know I don't know anything (Socrates)