Help fix Extra Spaces and other errors

desibouy

Board Regular
Joined
Nov 20, 2014
Messages
98
Office Version
  1. 365
Platform
  1. Windows
Hi,

So I've been working on like 20 different CSV files, these are all products we sell, the task was to find specifications for each product, the specifications columns could range from 3 to 20. Some CSV files contain 1500 products others 100, different CSV because of the different categories. Thinking around 7000 products if not more.

So now it's time to review these files looking for errors, spelling mistakes, and anything else.
Heres what I found below (few examples)



Incontinence Category - Full.csv
AA
1Size
2x-Large
3X-Large
4X -Large
5X-Large
Incontinence Category - Full

Row 4 being correct.

Incontinence Category - Full.csv
AB
1Waist/Hip Size
259"-64"
359" -64"
459" - 64"
Incontinence Category - Full

Row 3 being correct.

Incontinence Category - Full.csv
AC
1Weight
218 lbs.
318lbs
418 lb
518 lbs
Incontinence Category - Full

Row 4 being correct.


Incontinence Category - Full.csv
AH
1Backsheet
2Cloth-Like
3Cloth-like
4Cloth-like
Incontinence Category - Full

Row 3 being correct.


Catagory file.xlsx
B
14Stethoscopes
15Thermometers
16 Pulse Oximeters
Diagnostic Products

Leading and trailing spaces



Please can anyone help me with these errors? Not sure if you can get it to spell check them too.

Much appreciated & Thanks in advance.
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
1. L-ALT,A, PN, F, F
2. Select the folder with ur files.
3. Load and transform
4. if everything is in 1 column as in shown example then append it all, if not load them separetly.
5. I'm not sure what exactly do you want, so PQ can:
5.1 Trim text (fully, Left, Right side)
5.2 Split the text by number-to-digit or digit-to-number like in 18lbs example
5.3 split the text by delimiter
1624733284225.png
here it would be simply "-" sign (with no qutes) then trim both columns then merge them by either "-" or " - " delimiters or even "ThisIsMyDelimiter"
5.4 PQ can also remove all duplicates from a set of data leaving only unique values. This however should be done AFTER doing all above cleanups. cos "-text: is not equal to "- text"or " -text"
 
Upvote 0
1. L-ALT,A, PN, F, F
2. Select the folder with ur files.
3. Load and transform
4. if everything is in 1 column as in shown example then append it all, if not load them separetly.
5. I'm not sure what exactly do you want, so PQ can:
5.1 Trim text (fully, Left, Right side)
5.2 Split the text by number-to-digit or digit-to-number like in 18lbs example
5.3 split the text by delimiter View attachment 41672here it would be simply "-" sign (with no qutes) then trim both columns then merge them by either "-" or " - " delimiters or even "ThisIsMyDelimiter"
5.4 PQ can also remove all duplicates from a set of data leaving only unique values. This however should be done AFTER doing all above cleanups. cos "-text: is not equal to "- text"or " -text"

I'm sorry but I've never been so confused in my life :( I understood 5.3 by using the Text to Columns and then using the delimiter "-" and then clean the text but then wouldn't I have to contact/join the text again?
 
Upvote 0
text to columns? wow that's as ancient as it can get... i think only 5.4 floppy diskscan be older...
I'm talking about the power query solution and the keyboard shortcut opens the filepath searcher for power query.
 
Upvote 0
Lol, well I should have mentioned that I'm not an Excel Pro, judging by your comment below I'm probably still stuck in 1999 or something lol. The Most I've done is using formula's else I usually come here to ask for help.

I've never heard of Power Query or those pesky shortcuts. Sorry.
 
Upvote 0
1624737146384.png

or the "pesky shortcut" version:
ALT:
1624737194884.png

A:
1624737221569.png


PN:

1624737247408.png


F:
1624737283206.png

F:
1624737351467.png


any way, if you provide bigger data sample i can help with power query.
since u never heard of PQ then i would need a sample file for each CSV file (can be rarred or zipped.)
 
Upvote 0
Hi,

Sorry got busy here :(

Here is a larger data sample. There might not be any errors in this sample (maybe spelling) but I've just opened the file and just took a dump.
Thanks again.

Ostomy - Full.csv
VWXYZAAABACADAEAFAGAHAIAJAKALAMANAO
1VolumeSizeColorMatchMaterialApplicationTypeCompatibleOpeningFlange SizeStomaShapeLengthPanelBarrierSterileAbsorbencyUserClouserLatex free
2One SizeClearLow Pressure AdaptorBarrier RingColostomy4"RoundDisposableNoAdultYes
3One SizeClearLow Pressure AdaptorBarrier RingColostomy2-1/4"RoundDisposableNoAdultYes
4One SizeClearLow Pressure AdaptorBarrier RingColostomy2-3/4"RoundDisposableNoAdultYes
5One SizeClearLow Pressure AdaptorBarrier RingColostomy1-3/4"RoundDisposableNoAdultYes
690 mmOpaqueAutoLock SystemOstomy RodColostomy4"YesYes
790 mmOpaqueAutoLock SystemOstomy RodColostomy4"YesYes
865 mmOpaqueAutoLock SystemOstomy RodColostomy2-1/4"YesYes
965 mmOpaqueAutoLock SystemOstomy RodColostomy2-1/4"YesYes
10One SizeSoftPouch ClampClip ClouserDrainable PouchStraightNoAdultTailYes
11One SizeSoftPouch ClampClip ClouserDrainable PouchStraightNoAdultTailYes
12One SizeHypoallergenicStoma CoverWaterproof CapUrostomyStyle FX1-1/8"Round EndDisposableMedium Yes
13One SizeHypoallergenicStoma CoverWaterproof CapUrostomyStyle FR7/8"Round CenterDisposableMedium Yes
14One SizeHypoallergenicStoma CoverWaterproof CapUrostomyStyle F-47/8"Round CenterDisposableMedium Yes
15One SizeHypoallergenicStoma CoverWaterproof CapUrostomyStyle F-33/4" to 1-1/4"Rectangular CenterDisposableMedium Yes
16One SizeHypoallergenicStoma CoverWaterproof CapUrostomyStyle F-231-1/8"Round EndDisposableMedium Yes
17One SizeHypoallergenicStoma CoverWaterproof CapUrostomyStyle F-23/4" to 1-1/4"Oval centerDisposableMedium Yes
18One SizeHypoallergenicStoma CoverWaterproof CapUrostomyStyle F-11-1/8"Round CenterDisposableMedium Yes
19One SizeHypoallergenicStoma CoverWaterproof CapUrostomyStyle DMRound CenterDisposableMedium Yes
20One SizeHypoallergenicStoma CoverWaterproof CapUrostomyStyle DE7/8"Round CenterDisposableMedium Yes
21One SizeAdhesivePorous PatchPre-Cut2-1/2" to 3-3/4"DisposableNo AbsorbencyYes
22One SizeAdhesivePorous PatchPre-Cut2-1/2" to 3-3/4"DisposableNo AbsorbencyYes
23One SizeBeigeHypoallergenicStoma CoverWaterproof Cap7/8"Round CenterDisposableMediumYes
24One SizeBeigeHypoallergenicStoma CoverWaterproof Cap1-1/8"Round CenterDisposableHighYes
25One SizeBeigeHypoallergenicStoma CoverWaterproof Cap7/8"Round CenterDisposableMediumYes
26One SizeBeigeHypoallergenicStoma CoverWaterproof Cap3/4" to 1-1/4"Round CenterDisposableHighYes
27One SizeBeigeHypoallergenicStoma CoverWaterproof Cap1-1/8"Round CenterDisposableMediumYes
28One SizeBeigeHypoallergenicStoma CoverWaterproof Cap1-1/8"Round CenterDisposableMediumYes
29One SizeBeigeHypoallergenicStoma CoverWaterproof Cap1-1/8"Round CenterDisposableMediumYes
30One SizeBeigeHypoallergenicStoma CoverWaterproof Cap1-1/8"Round CenterDisposableMediumYes
31One SizeBeigeHypoallergenicStoma CoverWaterproof Cap1-1/4"Round CenterDisposableMediumYes
32One SizeBeigeHypoallergenicStoma CoverWaterproof Cap1-1/4"Round CenterDisposableMediumYes
33One SizeBeigeHypoallergenicStoma CoverWaterproof Cap1-1/8"Round CenterDisposableMediumYes
34One SizeBeigeHypoallergenicStoma CoverWaterproof Cap7/8"Round CenterDisposableMediumYes
35One SizeBeigeHypoallergenicStoma CoverWaterproof Cap7/8"Round CenterDisposableLowYes
36One SizeBeigeHypoallergenicStoma CoverWaterproof Cap1-1/8"Round CenterDisposableHighYes
37One SizeBeigeHypoallergenicStoma CoverWaterproof Cap1-1/8"Round CenterDisposableHighYes
38One SizeBeigeHypoallergenicStoma CoverWaterproof Cap1-1/2"Round CenterDisposableHighYes
39One SizeBeigeHypoallergenicStoma CoverWaterproof Cap1-1/8"Round CenterDisposableHighYes
40One SizeBeigeHypoallergenicStoma CoverWaterproof Cap3/4" to 1-1/4"Oval CenterDisposableHighYes
41One SizeBeigeHypoallergenicStoma CoverWaterproof Cap1-1/8"Round CenterDisposableMediumYes
42One SizeBeigeHypoallergenicStoma CoverWaterproof Cap7/8"Round CenterDisposableMediumYes
43One SizeSkin BarrierRingOstomy Pouch1-1/2" to 2-3/16"Oval FlextendNoAdultYes
44One SizeSkin BarrierRingOstomy Pouch1-3/16" to 1-7/8"Oval FlextendNoAdultYes
45One SizeSkin BarrierRingOstomy Pouch7/8" to 1-1/2"Oval FlextendNoAdultYes
46One SizeHypoallergenicStoma CoverWaterproof CapStyle G-31-1/2" to 1-1/2"RoundYes
47One SizeHypoallergenicStoma CoverWaterproof Cap1-1/2" to 2-3/4"RectangleLowYes
48One SizeHypoallergenicStoma CoverWaterproof Cap1" to 2-1/4"RectangleLowYes
49One SizeStoma CoverWaterproof Cap1-1/8"Round CenterYes
50One SizeStoma CoverWaterproof Cap1-1/2"Round CenterYes
51200 mLOne SizeStoma CoverWaterproof Cap2-1/4" to 2-1/4"Round Center7/8"Yes
52200 mLOne SizeStoma CoverWaterproof Cap3" to 3"Round Center1-1/8"Yes
53200 mLOne SizeStoma CoverWaterproof Cap3/4" to 1-1/4"Rectangular Yes
54One SizeStoma CoverWaterproof Cap2-1/2" to 3-3/4"Round Center1"Yes
55200 mLOne SizeStoma CoverWaterproof Cap7/8" to 2-5/8" Round Yes
56One SizeStoma CoverWaterproof Cap3/4" to 1-1/4"Rectangular Yes
57200 mLOne SizeStoma CoverWaterproof Cap2-5/8"Round Center7/8"Yes
58200 mLOne SizeStoma CoverWaterproof Cap3" to 3"Round Center1-1/8"Yes
59One SizeFabricAdhesiveBandage2" to 3"OvalYesHighYes
60One SizeFabricAdhesiveBandage1-1/4"OvalYesHighYes
61One SizeFabricAdhesiveStripMold-to-Fit1" to 3"Two Sided Comfort StomahesiveYesHighYes
62One SizeFabricAdhesiveStripMold-to-Fit3/4" to 3"Two Sided Comfort StomahesiveYesHighYes
63One SizeClearLow Pressure AdaptorBarrier Ring2-3/4"DisposableYes
64ClearPolymerOstomy VentPouchNoUniversalYes
65ThickBlueSkin BarrierRing1/2" to 3"Yes
66StandardYellowSkin BarrierRing1/2" to 3"Yes
67StandardYellowSkin BarrierRing3"Yes
68X-LargeWhitePolyster BeltElastic 41" to 46"6"NoAdultFlatYes
69LargeWhitePolyster BeltElastic 36" to 40"6"NoAdultFlatYes
70X-LargeWhitePolyster BeltElastic 41" to 46"6"NoAdultFlatYes
71LargeWhitePolyster BeltElastic 36" to 40"6"NoAdultFlatYes
72X-LargeWhitePolyster BeltElastic 41" to 46"4"NoAdultFlatYes
73LargeWhitePolyster BeltElastic 36" to 40"4"NoAdultFlatYes
74MediumWhitePolyster BeltElastic 32" to 35"4"NoAdultFlatYes
75X-LargeWhitePolyster BeltElastic 41" to 46"6"NoAdultFlatYes
76Large WhitePolyster BeltElastic 36" to 40"6"NoAdultFlatYes
77X-LargeWhitePolyster BeltElastic 41" to 46"6"NoAdultFlatYes
78Large WhitePolyster BeltElastic 36" to 40"6"NoAdultFlatYes
79X-LargeWhitePolyster BeltElastic 41" to 46"4"NoAdultFlatYes
80LargeWhitePolyster BeltElastic 36" to 40"4"NoAdultFlatYes
81WhiteBeltAdjustableTwo Piece Appliance26" to 49"NoAdultFlatYes
82Skin Barrier RingCut-to-Fit1-9/16"RoundFlextend NoAdultYes
83Skin Barrier RingCut-to-Fit1-3/16"OvalFlextend NoAdultYes
84Skin Barrier RingCut-to-Fit1-3/16"RoundFlextend NoAdultYes
8560 gSkin Barrier StripsTraingular5-1/8"Flextend NoAdultYes
Ostomy - Full
 
Upvote 0
Then I am sorry, but this is not doable,
the table has too many of different options for incorrect spelling.
this is like trying to find microscopic droplet of evaporating water on Jupiter using basic magnifying glass.

The only way I can think of is to prepare 1 column table with properly spelled descriptions and then compare it with this dataset.
 
Upvote 0

Forum statistics

Threads
1,223,703
Messages
6,173,973
Members
452,540
Latest member
haasro02

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top