Hi sorensjp,
PFA and PFB for the small macro. Paste this code in new module in Visual Basic Editor. Click on the sheet which contains the raw data and run this macro by pressing shortcut key ALT + F8. I hope this code will help.
Sub FormulaRemoving()
'Declaring variables
Dim DynamicRange As Range
Dim CellValue As Variant
'Defining the range
Set DynamicRange = Range("A1", Range("A1").SpecialCells(xlCellTypeLastCell))
'Looping through all the cells in the range
For Each CellValue In DynamicRange
'Checking whether value in the cell is of date data type
If IsDate(CellValue) Then
'Formatting for date data type
CellValue.NumberFormat = "m/d/yyyy"
Else
'Formatting for number data type
CellValue.NumberFormat = "0"
End If
'Removing formula
CellValue.Value = CellValue.Value
Next
'Auto adjusting the size of the columns
Columns.AutoFit
End Sub
Regards
Ramandeep Singh
Please Click * icon to Add Reputation if my answer helped!
Bookmarks