Eloise T
Active Member
I receive Excel spreadsheets weekly from technicians submitting their work. Since these sheets are often a mess I use:
to help clean up the data.
I started with TRIM which removes leading and trailing spaces, then as an added measure I added CLEAN to remove leading and trailing ASCII characters 0-31. See sanitized attachment.
Based on cell D3, the ASCII character is a 1 which is SOH (Start of Heading) and should be removed by CLEAN, but after running TRIM and CLEAN the ASCII 1 persists. Any suggests for adjusting the formula to get rid of all ASCII 1s in the future?
Thank you for any assistance.
Code:
.Value = .Parent.Evaluate(Replace("IF(#>"""",TRIM(CLEAN(#)),"""")", "#", .Address))
to help clean up the data.
I started with TRIM which removes leading and trailing spaces, then as an added measure I added CLEAN to remove leading and trailing ASCII characters 0-31. See sanitized attachment.
Based on cell D3, the ASCII character is a 1 which is SOH (Start of Heading) and should be removed by CLEAN, but after running TRIM and CLEAN the ASCII 1 persists. Any suggests for adjusting the formula to get rid of all ASCII 1s in the future?
Thank you for any assistance.