Any way to do this as part of a data cleansing routine?
One customer has supplied text that looks like this:
" 100 UF_____________ _______16V_____ ________6555___ __________ELEC_ ___________SM__ __"
Another row:
"___0.1UF______ ________16V____ ________0603___ __________X7R__ _______________ _____"
Obviously, it would be much more desirable to store that as:
"100 UF 16V 6555 ELEC SM"
"0.1UF 16V 0603 X7R"
In Excel, the "trim" function removes all whitespace, converting it into single spaces, I believe.
In Access, it doesn't work that way... in fact, displaying the raw description and the TRIM(descriptio n), I actually can't even see a difference...
If it helps, I will be running this SQL as part of an VBA script that performs the data import. I'm pulling the data from Excel spreadsheets that have been pre-formatted.
EDIT: Pretend the underscore characters above are spaces!
In a frustratingly ironic twist of fate, THIS FORUM won't even let me post repeated spaces without truncating them down to one or two!
Not Funny. [takes 2 Advil]
One customer has supplied text that looks like this:
" 100 UF_____________ _______16V_____ ________6555___ __________ELEC_ ___________SM__ __"
Another row:
"___0.1UF______ ________16V____ ________0603___ __________X7R__ _______________ _____"
Obviously, it would be much more desirable to store that as:
"100 UF 16V 6555 ELEC SM"
"0.1UF 16V 0603 X7R"
In Excel, the "trim" function removes all whitespace, converting it into single spaces, I believe.
In Access, it doesn't work that way... in fact, displaying the raw description and the TRIM(descriptio n), I actually can't even see a difference...
If it helps, I will be running this SQL as part of an VBA script that performs the data import. I'm pulling the data from Excel spreadsheets that have been pre-formatted.
EDIT: Pretend the underscore characters above are spaces!
In a frustratingly ironic twist of fate, THIS FORUM won't even let me post repeated spaces without truncating them down to one or two!
Not Funny. [takes 2 Advil]
Comment