Find size data from Item Title column to create a Size column

frewert

Board Regular
Joined
Apr 4, 2014
Messages
188
Office Version
  1. 365
Platform
  1. Windows
Originally the workbook only contained Column A and the intention is to create Column C (Size Column).

Here is my workbook so far.
Here is an image preview.

I have highlighted the ones that aren't working as intended and put a column of what the desired result should be.

You will notice I have columns F and G that are valid sizes and conversions.

My goals now:
  • Item Titles with (Number)X(Number) should return the first number. E.g., 32X30 should return 32.
  • Item Titles with M/L are returning nothing. It should return L (the largest size)
  • Item Titles ending in 0,2,4,6,8,S,M,L are not returning a result. Something to do with not being surrounding by the space character.
  • Item Titles with 6S, 6R, 6M, 6L, 6T should return 6. (Should work with all numbers, not just 6 in example)

Here is the vba code used. (credit: reddit.com/user/arkangelshadow007)
VBA Code:
Sub shoe_sizes()

Dim items As Range, validSizes As Range, conversion As Range

Set validSizes = Range("f2:f200") 'adjust ranges
Set conversion = Range("g2:g200")
Set items = Range("a2:a4200")

For Each Item In items.Cells

    For Each validSize In validSizes.Cells

        x = InStr(Item.Value, validSize.Value)

        If x > 0 Then

            Cells(Item.Row, 3) = Cells(validSize.Row, 7)

            GoTo next_item

        End If

    Next validSize

next_item:

Next Item

End Sub

Thank you!
 
Ok, this code uses WorksheetFunction.Sort, which is available only in Excel 365 or newer. I need to sort the variable vb, which holds the values of column H (Category), by the length of the words to make the Instr function work correctly.
It would be best if you could provide about 100 sample rows that represent data supposed to match all "groups" of criteria, so we can easily check whether it works as expected or not.
Also, in the Immediate Window you can see same info regarding data size & time processing.
VBA Code:
Sub frewert_3()
Dim regEx As Object, Matches As Object
Dim i As Long, j As Long, n As Long
Dim tx As String, pt
Dim va, vb, vc, ary
Dim Flag As Boolean

t = Timer
With Range("F2", Cells(Rows.Count, "F").End(xlUp)).Resize(, 2)
    .Value = Application.Trim(.Value)  'trim trailing space in data in col A
    vb = .Value
End With



va = Range("A2", Cells(Rows.Count, "A").End(xlUp)) 'populate va with col A data
ReDim vc(1 To UBound(va, 1), 1 To 1)

Debug.Print "Number of records  :" & " : " & UBound(va, 1)
Debug.Print "Number of Size List  :" & " : " & UBound(vb, 1)

For i = 1 To UBound(va, 1)
    tx = va(i, 1)
    
    For Each x In Split(", / \ ( ) . ; : [ ]", " ") 'replace some characters with a space (exclude ")
        tx = Replace(tx, x, " ")
    Next
    tx = " " & tx & " "   'add space at the beginning and end of each record
    va(i, 1) = Replace(tx, """", "ZZZ")  'replace " with ZZZ so word/number with " will be ignored
Next

    Set regEx = CreateObject("VBScript.RegExp")
    With regEx
    ary = Split("Ties|Scarves|Wallets|Hats|Bags", "|")
            
'            ============= Size =============================================
            For i = 1 To UBound(va, 1)
                Flag = False
                tx = va(i, 1)
                
                For Each x In ary  'deal with "Ties|Scarves|Wallets|Hats|Bags"
                     If InStr(tx, " " & x & " ") Then Flag = True: Exit For
                Next
                
                If Flag = False Then   '
                    If InStr(tx, " " & "Torrid" & " ") Then           'deal with Torrid
                        For Each x In Split("0 1 2 3 4 5 6", " ")
                            If InStr(tx, " " & x & " ") Then
                                vc(i, 1) = x & "X"
                                Flag = True: Exit For
                            End If
                        Next
                    End If
                End If
                
                If Flag = False Then
                    For j = 1 To UBound(vb, 1)
                        If InStr(tx, " " & vb(j, 1) & " ") Then  'check if a record has items in list in col F
                            vc(i, 1) = vb(j, 2)                  'if True then add col G value to variable vc
                            Flag = True: Exit For
                        End If
                    Next
                End If
                
                If Flag = False Then 'if the above cheking give empty result
                    For Each pt In Split(" [0-9]{2}X[0-9]{2} | [0-9]{1,2}[MRLST] ", "|")  'use this regex pattern to check
                        .Pattern = pt
                        If .test(tx) Then
                            Set Matches = .Execute(tx)
'                             Debug.Print i & " : " & Matches(0) & " : " & Val(Matches(0))
                            vc(i, 1) = Val(Matches(0))    'if there's a match then add the match to variable vc
                            Flag = True: Exit For
                        End If
                    Next
                End If
           

            Next
            
'===================== Category ======================

    With Range("H2", Cells(Rows.Count, "H").End(xlUp)).Resize(, 3)
        .Value = Application.Trim(.Value)                          'trim trailing space in data in col H:I
        vb = .Value                                                'load data to vb from col H:I
    End With
    
    For i = 1 To UBound(vb, 1)
        vb(i, 3) = Len(vb(i, 1))  'load col H word's length to 3rd col in vb
    Next
    
    vb = WorksheetFunction.Sort(vb, 3, -1)  'sort vb by word's length

    
    ReDim vc(1 To UBound(va, 1), 1 To 1)
        For i = 1 To UBound(va, 1)
            Flag = False
            tx = va(i, 1)
            For j = 1 To UBound(vb, 1)
                If InStr(tx, " " & vb(j, 1) & " ") Then  'check if a record has items in list in col H
                        vc(i, 1) = vb(j, 2)                  'if True then add col I value to variable vc
                        Flag = True: Exit For
                End If
            Next
        Next
            
End With
'put the result (of Category) in col C:
Range("C2").Resize(UBound(vc, 1), 1) = vc
Debug.Print "Number of Category List  :" & " : " & UBound(vb, 1)
Debug.Print "Completion time:  " & Format(Timer - t, "0.00") & " seconds"

End Sub

Size project method A-01.xlsm
ABCDEFGHI
1Item TitleSizeList of valid size entriesreplace entriesCategory
2Lands End Denim Shirt Womens M 10/12 Cotton Vintage Long Sleeve Button UpMTops7XP7XPTopTops
3Lululemon 11" Shorts Mens XL Black Zip Pockets Elastic Waist Drawstring VintageXL6XP6XPBlouseTops
4LC Lauren Conrad T-Shirt Womens 2XL XXL Plus Crew Short Sleeve Cotton Floral2XLTops5XP5XPTeeTops
5Dickies Long Sleeve Pocket Tee Mens 3XL XXXL Orange Relaxed Performance Wicking3XLTops4XP4XPTunicTops
6Croft & Barrow Blouse Womens 2X Blue 3/4 Sleeve Knit Spandex2XTops3XP3XPKimonoTops
7Chicos Travelers Dress Womens 3 (US: XL) Black Acetate Spandex Sheath SleevelessXLDresses2XP2XPT-ShirtTops
8Old Navy Active 5.5" Shorts Womens 3X Plus Olive Camo Stretch Tech Zip Pocket3X1XP1XPShirtTops
9Allison Daley T-Shirt Blouse Womens 1X Polyester Spandex Short Sleeve Colorful1XTops0XP0XPTankTops
10Old Navy NWT Wide Linen Blend Pants Womens Large Flax Beige Pockets High RiseLPants3XWP3XPDressDresses
11Apt 9 Kohls Snake Print Top Shirt Blouse Cotton Stretch Womens Plus 1X1XTops2XWP2XPShirt DressDresses
12American Eagle Mom Short Womens 6 High Rise Zip Distressed Denim 2.5" Inseam61XWP1XPJumpsuitJumpsuits
13D&Co Active Sleeveless 1/4 Zip Shirt Womens 1X Blue Cotton Spandex Tank Golf1XTops0XWP0XPRomperJumpsuits
14Croft & Barrow The Classic Tee Womens 1X Cotton Black Polka Dot T-Shirt Crew SS1XTops26P26POverallsJumpsuits
15Old Navy 100% Cashmere Sweater Full Zip Hoodie Womens XL (S, M) Long SleeveXL24P24PJeansJeans
16We The Free People Denim Cut-off Shorts Womens 26 2" Blue Cotton Fringe2622P22PPantsPants
17Melissa Paige NWT Petite Elastic Waist Skirt Blue Polyester Lined Womens PXLPXL20P20PLeggingsPants
18Nike Dri Fit Shirt Womens Large Relaxed Long Sleeve Teal Heather Crew RaglanLTops18P18PJacketJackets
19Nike Performance Polo Shirt Mens 2XL XXL Red Striped Short Sleeve Polyester2XLTops16P16PVestJackets
20JMS Just My Size NWT Blouse Polo Womens 2X 18W 20W Yellow 3/4 Sleeve Cotton2XTops14P14PSport CoatSport Coats
21Old Navy Boyfriend Mid Rise Blue Denim Shorts Womens 22 Cotton Stretch 2.5" Inse2212P12PBlazerSport Coats
22Nike Golf Shorts Pleated Beige Polyester 10" Mens 333310P10PDress ShirtTops
23Croft & Barrow Blouse Womens 2X Rayon Spandex Black Ruched Cuffs Pleated2XTops8P8P
24Woman Within Dress Womens 3X 30/32 Rayon Black Short Sleeve Floral3XDresses6P6P
25Sonoma T-Shirt Womens 2XL XXL Yellow Paisley Print Cotton Polyester Short Sleeve2XLTops4P4P
26Athleta Salutation Stash Pocket II 7" Short Womens 2X Blue Nylon Lycra Spandex2X2P2P
27NYDJ NWT Capri Jeans Original Slimming Fit Womens 24W Denim Stretch24WJeans0P0P
28Swannies Polo Shirt Mens Medium Blue Polyester Spandex Short Sleeve StripedMTops00P00P
29Levis 511 Denim Shorts Mens 30 Cotton Blue 11" Inseam Slim30P7XLP7XL
30Fila Sport NWT Golf Polo Shirt Mens 4XB 4X Big Gray Athletic Fit Polyester Wick4XBTopsP6XLP6XL
31Under Armour T-Shirt Womens 2XL XXL Pink Threadborne Loose Fit HeatGear V-Neck2XLTopsP5XLP5XL
32Lucky Brand Blouse Womens Medium Blue V-Neck Short Sleeve Elastic WaistMTopsP4XLP4XL
33Perceptions Dress Womens 1X Floral Black Yellow Sleeveless A-Line Swing Stretch1XDressesP3XLP3XL
34Red Hot By Spanx Full Slip Womens Large Spandex Nylon Soft Nude Lace SlimmingLP2XLP2XL
35Knox Rose Kimono Blouse Womens M/L Rayon Open Front Floral Red StainLTopsPXLPXL
36Susan Graver Ultra Stretch Pull On Pedal Pushers With Pockets Womens XLXLXLPPXL
37Suzanne Betro NWT Shirred Fit & Flare Dress Black/White Crew Stretch Womens MMDressesPLPL
38Tommy Bahama Orange Striped Polo Shirt Polyester Mens Medium MMTopsLPPL
39Champion Tank Top Mens 5XLT Gray Spell out Cotton Blend T-Shirt5XLTTopsPMPM
40Outdoor Research NWT T-Shirt Mens Large Echo Duo Tee Pewter Alloy Gray PolyesterLTopsMPPM
41Chaps Blouse Womens 3X Cotton Blend Beach Palm Trees Short Sleeve Blue3XTopsSPPS
42White Stag Sport Collection Blouse Womens 22W 2X Blue Polyester Cotton2XTopsPSPS
43Love + Joy Blouse Womens 3X Yellow Floral V-Neck Short Sleeve Elastic Waist3XTopsPXSPXS
44Quacker Factory Snap Front Cardigan Womens Medium Yellow Floral Long SleeveMP2XSP2XS
45Tahari 100% Cashmere Sweater Womens Small Beige Pockets Luxe Long SleeveS7XB7XB
46Style & Co Woman Embellished V-Neck Blue/Green Top Blouse Nylon Womens 2X2XTops6XB6XB
47Carhartt Polo Shirt Mens 2XLT Tall Green Pocket Short Sleeve Loose Fit2XLTTops5XB5XB
48Maurices Cardigan Sweater Womens 2X Open Front Ruffle Dolman Rayon Blend2X4XB4XB
49Wilfred Merino Wool Sweater Womens Medium Brown Mock Long SleeveM3XB3XB
50Duluth Trading Shirt Mens XL Trim Fit Multicolor Check Plaid Short Sleeve ButtonXLTops2XB2XB
51Old Navy Sweater Pullover Womens 2XL XXL Cotton Blend Classic Crew Gray2XL1XB1XB
52Croft & Barrow Button Front Shirt Womens 3X Cotton White Flamingo Pockets Stain3XTops6XLT6XLT
53Old Navy Mens XL Navy/Gray Gingham Plaid Shirt Long Sleeve Built In Flex ButtonXLTops5XLT5XLT
54Arcteryx T-Shirt Mens Medium M Gray Law Enforcement Armed Forces CrewMTops4XLT4XLT
55Falls Creek Dress Womens 2X Cotton Spandex Short Sleeve V-Neck Fit Flare Red2XDresses3XLT3XLT
56Maurices Tank Top Blouse Womens 2X Rayon Ruffle Sleeveless Red2XTops2XLT2XLT
57Knox Rose Tank Top Blouse Womens Large Blue White Floral Sleeveless Rayon CamiLTopsXLTXLT
58Torrid Button Front Shirt Womens 2 2X Blue Tencel Chambray Sleeveless Dolman2XTopsLTLT
59Lands End No Iron Pinpoint Oxford Shirt Womens 14 Long Sleeve Cotton Floral14TopsMTMT
60Ellen Tracy Linen Pants Womens XL Navy Blue Pull On Elastic Crop Capri PocketsXLPants7XL7XL
61Lands End Sport Tank Top Blouse Blue Stretch Womens 2X2XTops6XL6XL
62J Crew Pull On Pants Womens 10 Linen Cotton Striped Gray White Drawstring Pocket10Pants5XL5XL
63Torrid Cropped Cami Linen Blend Top Womens 1 1X Blue Stretch Smocked1XTops4XL4XL
647 For All Mankind Luxe Performance The Straight Mens Jeans 36X31 Stretch36Jeans3XL3XL
65American Eagle Vintage 7" Shorts Womens 14 Cotton Denim Blue Cut Off142XL2XL
66Levis 525 Straight Perfect Waist Jeans Womens 6S Cotton Spandex Original6JeansXLXL
67Shein T-Shirt White Tee Crew Short Sleeve Flag/Sunflower Stretch Womens XLXLTops1XLXL
68Eddie Bauer Adventurer 2.0 Skort Womens 8 Green Polyester Spandex Short Liner8LL
69J Crew Draped Pocket Tank Tunic Top Polyester Sleeveless Womens Size 44TopsMM
70Levis Premium Big E Wedgie Jeans Womens 30 Cotton Stretch Distressed Blue30JeansSS
71Old Navy Boyfriend Flannel Shirt Womens 2XL XXL Red Plaid Long Sleeve Cotton2XLTopsXSXS
72JM Collection Round Neck Beaded Blouse Top Shirt Cotton Modal Womens 3X3XTops2XS2XS
73Karen Scott Pullover Sweater Womens 2X Red Cotton Raglan Crew Knit2XXXS2XS
74Catherines Dress Womens 4X Short Sleeve Red Tiered Shift Lined Polyester 32W 30W4XDresses7X7X
75Lands End Polo Shirt Womens 2X 20W 22W Red Polka Dot Cotton Spandex Short Sleeve2XTops6X6X
76Terra & Sky 4" Shorts Womens 2X 20W 22W Tie Dye Drawstring Elastic Waist Soft2X5X5X
77I Love Jesus And Naps T-Shirt Womens 18 20 2X 2 Elly And Grace Live And Tell NWT2XTops4X4X
78Sara Michelle Blouse Womens 2X Polyester Green Tiered Lined Short Sleeve2XTops3X3X
79American Eagle Womens 6 Vintage Hi Rise Festival Distressed Gray Shorts Denim62X2X
80C Est 1946 Cato Blouse Womens 22/24W 3X Floral Polyester Spandex3XTops1X1X
81JM Collection Linen Shirt Womens 24W 3X Button Front Pocket Floral Tab Sleeve3XTops0X0X
82Maeve Womens Sz 4 Scallop Swiss Dot Blouse Top Blue Navy Rayon Crew Neck4TopsXXXL3XL
83Terra & Sky Sheer Blouse Button Front Black Floral Long Sleeve Womens 3X 24W 26W3XTopsXXL2XL
84Catherines Suprema Collection T-Shirt Womens 1X 18/20W Green Cotton Spandex V1XTopsLargeL
85Uniqlo Button Front Shirt Womens 2XL XXL Poly/Rayon Long Sleeve Flaw2XLTopsMediumM
86River Trader Button Front Shirt Mens 2XL XXL Seer****** Cotton Pocket SS Yellow2XLTopsSmallS
87Chaps Blouse Womens 2X Polyester 3/4 Sleeve All Over Floral Print2XTops44W44W
88Cato Blouse Womens 18/20W 2X Brown V-Neck Short Sleeve Elastic Waist2XTops42W42W
89Eliane Rose Blouse Tank Womens 1X Plus White Teal Brown Viscose Spandex Tunic1XTops38W38W
90LL Bean Chamois Cloth Shirt Mens Large Regular Red Pockets Long Sleeve CottonLTops36W36W
91Croft & Barrow Light Jacket Womens 1X Green Paisley Full Zip Polyester1XJackets34W34W
92Banana Republic Pants Mens 34X28 Linen Cotton Straight Fit Beige Plaid Pro Hem34Pants32W32W
93Shein Curve Fit Flare Dress Womens 2XL Pink Hearts V Wrap A-Line Short Sleeve2XLDresses30W30W
94American Eagle Hi Rise Festival Shorts Womens 4 Cotton Distressed Blue Denim Zip428W28W
95Protege Collection Cosby Sweater Mens XLT Made USA Black Crew PulloverXLT26W26W
96Belle Sky Blouse Womens 2X Blue Tie Neck Long Sleeve Polyester Ruffle2XTops24W24W
97White Stag NWT Draped Tankini Spandex Black Halter Womens 3X 22W 24W3X22W22W
98Boden Dress Womens 6P Cotton Spandex Short Sleeve Empire Tulip Jersey Gray6PDresses20W20W
99Old Navy Active Powersoft Leggings Womens Large Go Dry High Rise Gray HeatherLPants18W18W
100Chicos Weekends Blouse Tunic Womens 1 (US Medium) 8 Green Floral 3/4 SleeveMTops16W16W
101Old Navy Button Front Shirt Mens 2XL XXL Blue Slim Built In Flex Pocket SS2XLTops14W14W
102The North Face Narrows Short Mens 34 Shorts Distressed Straight Twill 8" Inseam34One SizeOne Size
103Terra & Sky Blouse Womens 1X 16W 18W Cotton Short Sleeve Notch Neck Swing Orange1XTopsAll SizesOne Size
104LL Bean Button Front Shirt Womens Medium Reg Pink Stripe Long Sleeve StainMTops6060
105Cato Blouse Womens 18W 20W Brown Paisley Split Round Hem 3/4 Sleeve V-Neck 2X2XTops5858
106Adidas Leggings Womens 2X Primegreen Aeroready Pink Abstract2XPants5656
107Sag Harbor Button Front Shirt Womens 1X Polyester Lined Short Sleeve Orange V1XTops5454
108Alice + Olivia Blouse Top Womens XS Stretchy Cropped Snake Print Long SleeveXSTops5252
109LOFT Ann Taylor Blouse Womens XL Yellow 3/4 Sleeve CottonXLTops5050
110Terra & Sky Button Front Shirt Womens 1X 16W 18W Blue Stripe Pockets SS1XTops4848
111Torrid Jogger Pants Womens 3 3X Green Cargo Rayon Stretch Pull On Elastic3XPants4646
112Guess Linen Pants Cropped Capri Black Drawstring Womens 3232Pants4444
113Eddie Bauer T-Shirt Mens 2XL XXL Cotton Black Long Sleeve Mock2XLTops4242
114Old Navy NWT Slim Jeans Mens 38X31 Black Wash Cotton 360 Stretch Zip Mid38Jeans4040
115Muk Luks Womens Cabin Sock NWT Black L/XL 8-10 Slip Resistant Warm CozyXL3838
116George Long Sleeve Button Front Shirt Mens 2XL XXL Blue Pink Check Plaid Cotton2XLTops3636
117Lands End Tunic Blouse Womens XL 18 Gray Pockets Long Sleeve V-Neck Cotton BlendXLTops3535
118CJ Banks Button Front Blouse Womens 2X Linen Rayon Black Pockets Jacket2XTops3434
119Talbots Pants Womens XLP Petite Plaid Black Blue Spandex Leggings Pull OnPXLPants3333
120Blair Pull On Capri Pants 24W Teal Pockets Elastic Waist Cotton Polyester24WPants3232
121Eddie Bauer Parka Coat Womens 1X Orange Cotton Polyester Hooded1X3131
122Levis Denim Shirt Mens XL Cotton Long Sleeve Pockets Charcoal Wash Button UpXLTops3030
123Levis 502 Taper Fit Mens Jeans Big E Premium (Actual 33X28) 33X30 Cotton Spandex33Jeans2929
124Lucky Brand Button Front Shirt Mens Large Linen Orange/Red/Yellow Plaid SSLTops2828
125Paradise Found Made In Hawaii Hawaiian Shirt Rayon Camp Mens Large LLTops2727
126Lucky Brand Henley Blouse Womens Large Taupe Short Sleeve Dolman PocketsLTops2626
127Eddie Bauer Polo Shirt Mens 2XL XXL Orange Pima Cotton Cocona Polyester SS2XLTops2525
128Verve Ami Cardigan Sweater Womens 3X Rayon Blend Red Open Front Long Sleeve3X2424
129J Crew Mercantile Slim Flex Shirt Mens Large Cotton Spandex Plaid Long SleeveLTops2222
130Grayson The Hero Button Up Shirt Womens Size 3 (M) Bicycle White Red Long SleeveMTops2020
131Croft & Barrow Tunic Blouse Womens 1X Rayon Blue Floral Smocked 3/4 Sleeve1XTops1818
132Livi Dress Womens 18/20 2X Blue Tie Dye Rayon Spandex Maxi Sleeveless2XDresses1616
133JMS Just My Size Blouse Womens 2X 18W 20W Polyester Flare Sleeve Purple Pink2XTops1414
134Great Northwest Indigo Blouse Womens 2X White Embroidered Short Sleeve2XTops1212
135C Est 1946 Cato Blouse Womens 26/28W 4X Yellow Pullover Puff Sleeve 3/44XTops1010
136Eileen Fisher Jumpsuit Womens Large Black Rayon Spandex Pockets Wide Leg ZipLJumpsuits00
137Nike Dri Fit Running Shorts Womens 2X Brief Lined Polyester Black Teal2X88
138Bonobos Button Front Shirt Mens XL Short Blue Cotton Seer****** Standard FitXLTops66
139Chicos Maxi Dress Womens 0 (US Small, 4) Sleeveless Polyester Spandex LinedSDresses44
140Avenue Shirt Womens 22/24 Purple Crinkle Long Sleeve Button Front Top24Tops22
141JM Collection Button Front Shirt Womens 24W 3X Cotton Purple Floral Sequin V3XTops00
142Cato Button Front Shirt Womens 18/20W 2X Orange Floral Cotton Short Sleeve2XTops
143Lane Bryant Womens 24 Button Front Shirt Tie Wrap Belt Blue Cotton Stretch24Tops
Sheet2
 
Upvote 0

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
More than 10,000 rows. I create about 3500 listing per year and I expect to double or triple that next year. The data comes in on CSV reports and then I transform the data via Power Query.

The code uses Instr function and Regex to find match per criteria. Regex is more robust & powerful but slower than Instr. Therefore I use Instr in most part of the code and use Regex in parts that I think Instr will fail to do the job. With your large data set I think it's the best choice.

Please, test the code on actual data & post the result you get from Immediate window.
Using the above example, the result is:
Number of records : : 142
Number of Size List : : 140
Number of Category List : : 21
Completion time: 0,03 seconds
 
Upvote 0
Size project method D.xlsm
ABCDEFGHI
1Item TitleSizeList of valid size entriesreplace entriesCategory
2Lands End Denim Shirt Womens M 10/12 Cotton Vintage Long Sleeve Button UpMTops7XP7XPTopTops
3Lululemon 11" Shorts Mens XL Black Zip Pockets Elastic Waist Drawstring VintageXLShorts6XP6XPBlouseTops
4LC Lauren Conrad T-Shirt Womens 2XL XXL Plus Crew Short Sleeve Cotton Floral2XLTops5XP5XPTeeTops
5Dickies Long Sleeve Pocket Tee Mens 3XL XXXL Orange Relaxed Performance Wicking3XLTops4XP4XPTunicTops
6Croft & Barrow Blouse Womens 2X Blue 3/4 Sleeve Knit Spandex2XTops3XP3XPKimonoTops
7Chicos Travelers Dress Womens 3 (US: XL) Black Acetate Spandex Sheath SleevelessXLDresses2XP2XPT-ShirtTops
8Old Navy Active 5.5" Shorts Womens 3X Plus Olive Camo Stretch Tech Zip Pocket3XShorts1XP1XPShirtTops
9Allison Daley T-Shirt Blouse Womens 1X Polyester Spandex Short Sleeve Colorful1XTops0XP0XPTankTops
10Old Navy NWT Wide Linen Blend Pants Womens Large Flax Beige Pockets High RiseLPants3XWP3XPDressDresses
11Apt 9 Kohls Snake Print Top Shirt Blouse Cotton Stretch Womens Plus 1X1XTops2XWP2XPShirt DressDresses
12American Eagle Mom Short Womens 6 High Rise Zip Distressed Denim 2.5" Inseam61XWP1XPJumpsuitJumpsuits
13D&Co Active Sleeveless 1/4 Zip Shirt Womens 1X Blue Cotton Spandex Tank Golf1XTops0XWP0XPRomperJumpsuits
14Croft & Barrow The Classic Tee Womens 1X Cotton Black Polka Dot T-Shirt Crew SS1XTops26P26POverallsJumpsuits
15Old Navy 100% Cashmere Sweater Full Zip Hoodie Womens XL (S, M) Long SleeveXLSweaters24P24PJeansJeans
16We The Free People Denim Cut-off Shorts Womens 26 2" Blue Cotton Fringe26Shorts22P22PPantsPants
17Melissa Paige NWT Petite Elastic Waist Skirt Blue Polyester Lined Womens PXLPXLSkirts20P20PLeggingsPants
18Nike Dri Fit Shirt Womens Large Relaxed Long Sleeve Teal Heather Crew RaglanLTops18P18PJacketJackets
19Nike Performance Polo Shirt Mens 2XL XXL Red Striped Short Sleeve Polyester2XLTops16P16PVestJackets
20JMS Just My Size NWT Blouse Polo Womens 2X 18W 20W Yellow 3/4 Sleeve Cotton2XTops14P14PSport CoatSport Coats
21Old Navy Boyfriend Mid Rise Blue Denim Shorts Womens 22 Cotton Stretch 2.5" Inse22Shorts12P12PBlazerSport Coats
22Nike Golf Shorts Pleated Beige Polyester 10" Mens 3333Shorts10P10PSuit JacketSport Coats
23Croft & Barrow Blouse Womens 2X Rayon Spandex Black Ruched Cuffs Pleated2XTops8P8PWaist CoatSport Coats
24Woman Within Dress Womens 3X 30/32 Rayon Black Short Sleeve Floral3XDresses6P6PSweaterSweaters
25Sonoma T-Shirt Womens 2XL XXL Yellow Paisley Print Cotton Polyester Short Sleeve2XLTops4P4PCardiganSweaters
26Athleta Salutation Stash Pocket II 7" Short Womens 2X Blue Nylon Lycra Spandex2X2P2PShortsShorts
27NYDJ NWT Capri Jeans Original Slimming Fit Womens 24W Denim Stretch24WJeans0P0PSkirtSkirts
28Swannies Polo Shirt Mens Medium Blue Polyester Spandex Short Sleeve StripedMTops00P00PSkortSkirts
29Levis 511 Denim Shorts Mens 30 Cotton Blue 11" Inseam Slim30ShortsP7XLP7XLPoloPolos
30Fila Sport NWT Golf Polo Shirt Mens 4XB 4X Big Gray Athletic Fit Polyester Wick4XBTopsP6XLP6XLRugby ShirtPolos
31Under Armour T-Shirt Womens 2XL XXL Pink Threadborne Loose Fit HeatGear V-Neck2XLTopsP5XLP5XLHoodieHoodies/Sweatshirts
32Lucky Brand Blouse Womens Medium Blue V-Neck Short Sleeve Elastic WaistMTopsP4XLP4XLSweatshirtHoodies/Sweatshirts
33Perceptions Dress Womens 1X Floral Black Yellow Sleeveless A-Line Swing Stretch1XDressesP3XLP3XLHatMisc
34Red Hot By Spanx Full Slip Womens Large Spandex Nylon Soft Nude Lace SlimmingLP2XLP2XLWalletMisc
35Knox Rose Kimono Blouse Womens M/L Rayon Open Front Floral Red StainLTopsPXLPXLBagMisc
36Susan Graver Ultra Stretch Pull On Pedal Pushers With Pockets Womens XLXLXLPPXLScarfMisc
37Suzanne Betro NWT Shirred Fit & Flare Dress Black/White Crew Stretch Womens MMDressesPLPL
38Tommy Bahama Orange Striped Polo Shirt Polyester Mens Medium MMTopsLPPL
39Champion Tank Top Mens 5XLT Gray Spell out Cotton Blend T-Shirt5XLTTopsPMPM
40Outdoor Research NWT T-Shirt Mens Large Echo Duo Tee Pewter Alloy Gray PolyesterLTopsMPPM
41Chaps Blouse Womens 3X Cotton Blend Beach Palm Trees Short Sleeve Blue3XTopsSPPS
42White Stag Sport Collection Blouse Womens 22W 2X Blue Polyester Cotton2XTopsPSPS
43Love + Joy Blouse Womens 3X Yellow Floral V-Neck Short Sleeve Elastic Waist3XTopsPXSPXS
44Quacker Factory Snap Front Cardigan Womens Medium Yellow Floral Long SleeveMSweatersP2XSP2XS
45Tahari 100% Cashmere Sweater Womens Small Beige Pockets Luxe Long SleeveSSweaters7XB7XB
46Style & Co Woman Embellished V-Neck Blue/Green Top Blouse Nylon Womens 2X2XTops6XB6XB
47Carhartt Polo Shirt Mens 2XLT Tall Green Pocket Short Sleeve Loose Fit2XLTTops5XB5XB
48Maurices Cardigan Sweater Womens 2X Open Front Ruffle Dolman Rayon Blend2XSweaters4XB4XB
49Wilfred Merino Wool Sweater Womens Medium Brown Mock Long SleeveMSweaters3XB3XB
50Duluth Trading Shirt Mens XL Trim Fit Multicolor Check Plaid Short Sleeve ButtonXLTops2XB2XB
51Old Navy Sweater Pullover Womens 2XL XXL Cotton Blend Classic Crew Gray2XLSweaters1XB1XB
52Croft & Barrow Button Front Shirt Womens 3X Cotton White Flamingo Pockets Stain3XTops6XLT6XLT
53Old Navy Mens XL Navy/Gray Gingham Plaid Shirt Long Sleeve Built In Flex ButtonXLTops5XLT5XLT
54Arcteryx T-Shirt Mens Medium M Gray Law Enforcement Armed Forces CrewMTops4XLT4XLT
55Falls Creek Dress Womens 2X Cotton Spandex Short Sleeve V-Neck Fit Flare Red2XDresses3XLT3XLT
56Maurices Tank Top Blouse Womens 2X Rayon Ruffle Sleeveless Red2XTops2XLT2XLT
57Knox Rose Tank Top Blouse Womens Large Blue White Floral Sleeveless Rayon CamiLTopsXLTXLT
58Torrid Button Front Shirt Womens 2 2X Blue Tencel Chambray Sleeveless Dolman2XTopsLTLT
59Lands End No Iron Pinpoint Oxford Shirt Womens 14 Long Sleeve Cotton Floral14TopsMTMT
60Ellen Tracy Linen Pants Womens XL Navy Blue Pull On Elastic Crop Capri PocketsXLPants7XL7XL
61Lands End Sport Tank Top Blouse Blue Stretch Womens 2X2XTops6XL6XL
62J Crew Pull On Pants Womens 10 Linen Cotton Striped Gray White Drawstring Pocket10Pants5XL5XL
63Torrid Cropped Cami Linen Blend Top Womens 1 1X Blue Stretch Smocked1XTops4XL4XL
647 For All Mankind Luxe Performance The Straight Mens Jeans 36X31 Stretch36Jeans3XL3XL
65American Eagle Vintage 7" Shorts Womens 14 Cotton Denim Blue Cut Off14Shorts2XL2XL
66Levis 525 Straight Perfect Waist Jeans Womens 6S Cotton Spandex Original6JeansXLXL
67Shein T-Shirt White Tee Crew Short Sleeve Flag/Sunflower Stretch Womens XLXLTops1XLXL
68Eddie Bauer Adventurer 2.0 Skort Womens 8 Green Polyester Spandex Short Liner8SkirtsLL
69J Crew Draped Pocket Tank Tunic Top Polyester Sleeveless Womens Size 44TopsMM
70Levis Premium Big E Wedgie Jeans Womens 30 Cotton Stretch Distressed Blue30JeansSS
71Old Navy Boyfriend Flannel Shirt Womens 2XL XXL Red Plaid Long Sleeve Cotton2XLTopsXSXS
72JM Collection Round Neck Beaded Blouse Top Shirt Cotton Modal Womens 3X3XTops2XS2XS
73Karen Scott Pullover Sweater Womens 2X Red Cotton Raglan Crew Knit2XSweatersXXS2XS
74Catherines Dress Womens 4X Short Sleeve Red Tiered Shift Lined Polyester 32W 30W4XDresses7X7X
75Lands End Polo Shirt Womens 2X 20W 22W Red Polka Dot Cotton Spandex Short Sleeve2XTops6X6X
76Terra & Sky 4" Shorts Womens 2X 20W 22W Tie Dye Drawstring Elastic Waist Soft2XShorts5X5X
77I Love Jesus And Naps T-Shirt Womens 18 20 2X 2 Elly And Grace Live And Tell NWT2XTops4X4X
78Sara Michelle Blouse Womens 2X Polyester Green Tiered Lined Short Sleeve2XTops3X3X
79American Eagle Womens 6 Vintage Hi Rise Festival Distressed Gray Shorts Denim6Shorts2X2X
80C Est 1946 Cato Blouse Womens 22/24W 3X Floral Polyester Spandex3XTops1X1X
81JM Collection Linen Shirt Womens 24W 3X Button Front Pocket Floral Tab Sleeve3XTops0X0X
82Maeve Womens Sz 4 Scallop Swiss Dot Blouse Top Blue Navy Rayon Crew Neck4TopsXXXL3XL
83Terra & Sky Sheer Blouse Button Front Black Floral Long Sleeve Womens 3X 24W 26W3XTopsXXL2XL
84Catherines Suprema Collection T-Shirt Womens 1X 18/20W Green Cotton Spandex V1XTopsLargeL
85Uniqlo Button Front Shirt Womens 2XL XXL Poly/Rayon Long Sleeve Flaw2XLTopsMediumM
86River Trader Button Front Shirt Mens 2XL XXL Seer****** Cotton Pocket SS Yellow2XLTopsSmallS
87Chaps Blouse Womens 2X Polyester 3/4 Sleeve All Over Floral Print2XTops44W44W
88Cato Blouse Womens 18/20W 2X Brown V-Neck Short Sleeve Elastic Waist2XTops42W42W
89Eliane Rose Blouse Tank Womens 1X Plus White Teal Brown Viscose Spandex Tunic1XTops38W38W
90LL Bean Chamois Cloth Shirt Mens Large Regular Red Pockets Long Sleeve CottonLTops36W36W
91Croft & Barrow Light Jacket Womens 1X Green Paisley Full Zip Polyester1XJackets34W34W
92Banana Republic Pants Mens 34X28 Linen Cotton Straight Fit Beige Plaid Pro Hem34Pants32W32W
93Shein Curve Fit Flare Dress Womens 2XL Pink Hearts V Wrap A-Line Short Sleeve2XLDresses30W30W
94American Eagle Hi Rise Festival Shorts Womens 4 Cotton Distressed Blue Denim Zip4Shorts28W28W
95Protege Collection Cosby Sweater Mens XLT Made USA Black Crew PulloverXLTSweaters26W26W
96Belle Sky Blouse Womens 2X Blue Tie Neck Long Sleeve Polyester Ruffle2XTops24W24W
97White Stag NWT Draped Tankini Spandex Black Halter Womens 3X 22W 24W3X22W22W
98Boden Dress Womens 6P Cotton Spandex Short Sleeve Empire Tulip Jersey Gray6PDresses20W20W
99Old Navy Active Powersoft Leggings Womens Large Go Dry High Rise Gray HeatherLPants18W18W
100Chicos Weekends Blouse Tunic Womens 1 (US Medium) 8 Green Floral 3/4 SleeveMTops16W16W
Sheet1


Number of records : : 1286
Number of Size List : : 140
Number of Category List : : 35
Completion time: 0.10 seconds

Very good results. Just a few things to clean up.

  • Short should be used for the Shorts category but a problem exists because many Tops titles are described as "Short Sleeve".
  • Full Slip is an Intimates category item. A very low percentage of my business, maybe .01%
  • Tankini is a Swimsuit category. Another very low percentage of my business. But of course, painless to add that to the column.
  • Pedal Pushers is a rare wording but they would be in Pants category.
I will look at more errors tomorrow past 100 rows. Thanks for your help tonight as always!
 
Upvote 0
Short should be used for the Shorts category but a problem exists because many Tops titles are described as "Short Sleeve".
There is Shorts but no Short in col H, you should put Short on col H. So, it's not because there is Short Sleeve in Title.
 
Upvote 0
I've added several things to the Category column.
Not sure why the ones with 3XWP, Torrid sizes, All Sizes, and Bag didn't work right.
There is some error with Short being read over Top, resulting in the wrong category. (But many cases (203 total) where it did work correctly)

Item TitleSizeCategoryNoteNote 2
American Eagle Curvy Hi Rise Jegging Womens 10 X-Long (32 Inseam) Black Stretch32JeansShould be 10Maybe ignore "(number) Inseam"
Torrid Maxi Dress Womens Size 1 Semi Sheer Polyester Short Sleeve Elastic WaistDressesShould be 1X
Torrid T-Shirt Womens 3 V-Neck Pocket Tee Pink Striped Short Sleeve Cotton BlendTopsShould be 3X
Catherines Suprema Collection Blouse Womens 3XWP Teal Short Sleeve Cotton VTopsShould be 3XWP
Polo Ralph Lauren Vintage Bag Blackwatch Leather Shoulder Strap ZipPolosShould be Misc
Handmade In Nepal 100% Cashmere Sweater Fits All Sizes Brown PonchoSweatersShould be One Size
Maurices Top Womens 0X Black Floral Rayon Stretch Short Sleeve Flutter Pink0XShortsShould be Tops
Old Navy NWT Top Womens XL Ribbed Ultralite Go Dry Short Sleeve Crop TeeXLShortsShould be Tops
LOFT Ann Taylor Wrap Top Womens Large Blue Lyocell Chambray Short Sleeve VLShortsShould be Tops
J Crew Flutter Sleeve Wrap Top Womens 6 Pink Tie Short Sleeve Cotton Side Zip6ShortsShould be Tops
Truself Knit Top Womens 2X Metallic Lettering Beige Soft Short Sleeve Dolman2XShortsShould be Tops
Liz Baker Button Front Top Womens 18W Plus White/Black Short Sleeve Polyester18WShortsShould be Tops
Perch By Blu Pepper Womens Top 2XL XXL Beige Polyester Tie Bow Short Sleeve2XLShortsShould be Tops
Bobbie Brooks Henley Top Womens 2X White Lace Back Short Sleeve Stretch2XShortsShould be Tops


Items that were the correct Tops category but had "Short" in the title (203 total).
Item TitleSizeCategory
LC Lauren Conrad T-Shirt Womens 2XL XXL Plus Crew Short Sleeve Cotton Floral2XLTops
Allison Daley T-Shirt Blouse Womens 1X Polyester Spandex Short Sleeve Colorful1XTops
Nike Performance Polo Shirt Mens 2XL XXL Red Striped Short Sleeve Polyester2XLTops
Sonoma T-Shirt Womens 2XL XXL Yellow Paisley Print Cotton Polyester Short Sleeve2XLTops
Swannies Polo Shirt Mens Medium Blue Polyester Spandex Short Sleeve StripedMTops
Lucky Brand Blouse Womens Medium Blue V-Neck Short Sleeve Elastic WaistMTops
Chaps Blouse Womens 3X Cotton Blend Beach Palm Trees Short Sleeve Blue3XTops
Love + Joy Blouse Womens 3X Yellow Floral V-Neck Short Sleeve Elastic Waist3XTops
Carhartt Polo Shirt Mens 2XLT Tall Green Pocket Short Sleeve Loose Fit2XLTTops
Duluth Trading Shirt Mens XL Trim Fit Multicolor Check Plaid Short Sleeve ButtonXLTops
Shein T-Shirt White Tee Crew Short Sleeve Flag/Sunflower Stretch Womens XLXLTops
Lands End Polo Shirt Womens 2X 20W 22W Red Polka Dot Cotton Spandex Short Sleeve2XTops
Sara Michelle Blouse Womens 2X Polyester Green Tiered Lined Short Sleeve2XTops
Cato Blouse Womens 18/20W 2X Brown V-Neck Short Sleeve Elastic Waist2XTops
Terra & Sky Blouse Womens 1X 16W 18W Cotton Short Sleeve Notch Neck Swing Orange1XTops
Sag Harbor Button Front Shirt Womens 1X Polyester Lined Short Sleeve Orange V1XTops
Lucky Brand Henley Blouse Womens Large Taupe Short Sleeve Dolman PocketsLTops
Great Northwest Indigo Blouse Womens 2X White Embroidered Short Sleeve2XTops
Bonobos Button Front Shirt Mens XL Short Blue Cotton Seer****** Standard FitXLTops
Cato Button Front Shirt Womens 18/20W 2X Orange Floral Cotton Short Sleeve2XTops
Cato Tunic Blouse Womens 22/24W 3X Cotton Short Sleeve Brown Pink Square3XTops
Dressbarn Button Front Shirt Blouse Womens 2X Short Sleeve Brown Accordion2XTops
Chicos Poncho Blouse Womens S/M Rayon Short Sleeve Black Blue PurpleMTops
Weatherproof Shirt Mens 2XL XXL Cotton Button Front Short Sleeve Plaid Pocket2XLTops
Lularoe NWT Irma Tunic Top Womens XL Blue Green Stretch Short SleeveXLTops
Croft & Barrow T-Shirt Womens 1X Pima Cotton Short Sleeve Brown Crew Soft1XTops
Talbots T-Shirt Blouse Womens 3X Silk Lycra Stretch Short Sleeve Black Knit3XTops
Lauren Ralph Lauren Navy Blue Shirt Top Tee Short Sleeve Cotton Womens LLTops
George Button Front Shirt Mens 3XL XXXL Blue Plaid Short Sleeve Classic Fit 543XLTops
Woman Within T-Shirt Womens 1X 22/24 Orange Short Sleeve Cotton Square Neck Top1XTops
Nike Dri Fit Polo Shirt Mens 2XL XXL Red Polyester Short Sleeve Solid2XLTops
Target TakePride Shirt Womens 2XL XXL Chambray Button Front Short Sleeve Cotton2XLTops
Under Armour Loose Fit HeatGear Polo Shirt Gray Short Sleeve Embroidered Mens XLXLTops
Daniel Rainn Blouse Womens XL Purple Rayon Lace Short Sleeve KeyholeXLTops
Croft & Barrow The Classic Tee T-Shirt Blue Cotton V-Neck Henley Short Sleeve 1X1XTops
Catherines Polo Shirt Womens 3X 26/28W Suprema Cotton Spandex Black Short Sleeve3XTops
Lane Seven L7 NWT T-Shirt West Coast California 2XL Cotton Short Sleeve2XLTops
Philosophy Round Neck Short Sleeve Top Blouse Yellow Rayon/Stretch Womens 1X1XTops
Falls Creek Polo Shirt Womens 1X Orange Cotton Spandex Polka Dot Short Sleeve1XTops
Croft & Barrow The Classic Tee Womens 2XL XXL T-Shirt Short Sleeve Stretch2XLTops
Catherines Blouse T-Shirt Womens 3X 26/28W Pink Short Sleeve Spandex Cotton3XTops
Ralph Lauren Denim & Supply Shirt Mens Medium Cotton Short Sleeve Regular FitMTops
Jane + Delancey Button Front Shirt Womens XL Short Sleeve Rayon Animal PrintXLTops
Rose + Olive Blouse Womens 2X Pink Orange Paisley Rayon Spandex Short Sleeve2XTops
Chaps Button Front Shirt Mens 2XL XXL Easy Care Short Sleeve Pocket Gingham2XLTops
Maurices T-Shirt Blouse Womens 2X Pink Cotton Polyester Floral Short Sleeve2XTops
Sara Michelle Blouse Womens 2X Polyester Green Tiered Lined Short Sleeve2XTops
Cato C Est 1946 Tunic Dress Womens 22W 24W 3X Orange Paisley Short Sleeve V3XTops
Terra & Sky Blouse Womens 2X 20W 22W Rayon Yellow Floral Short Sleeve Flare2XTops
Croft & Barrow T-Shirt Blouse Womens 2XL XXL Short Sleeve Cotton Pink Square2XLTops
Catherines Blouse T-Shirt Womens 2X 22/24W Teal Blue Purple Short Sleeve Spandex2XTops
Catherines Blouse T-Shirt Womens 2X 22/24W Purple Short Sleeve Spandex Cotton2XTops
Eddie Bauer Button Front Shirt Womens XL Cotton Spandex Short Sleeve StripeXLTops
Torrid T-Shirt Womens 1 1X Black Short Sleeve V-Neck Girlfriend Slub Cotton1XTops
Catherines Blouse T-Shirt Womens 3X Polyester Short Sleeve V-Neck Stain3XTops
Lands End Button Front Shirt Womens 16 No Iron Supima Cotton Plaid Short Sleeve16Tops
Perch By Blu Pepper Blouse Womens 3XL Short Sleeve Pleated Chambray Lyocell3XLTops
Basic Editions Shirt Mens 3XLT Short Sleeve Woven Plaid Blue White Pocket Button3XLTTops
CJ Banks T-Shirt Blouse Womens 3X Cotton Modal Short Sleeve Orange3XTops
Lane Bryant Shirt Floral Knot Button Up Short Sleeve Rayon Womens 1818Tops
Chicago Cubs Baseball Jersey T-Shirt Mens 4XL TX3 Cool V-Neck Short Sleeve4XLTops
Under Armour Polo Shirt Mens 2XL Loose HeatGear Camo Print Blue Short Sleeve2XLTops
Under Armour Polo Shirt Mens 3XL Loose HeatGear Short Sleeve Orange Stained3XLTops
Chicos Weekends Blouse Tee Womens 3 (US XL 16) Short Sleeve Flamingos WhiteXLTops
Truself Blouse Womens 2X Brown Cotton V-Neck Short Sleeve Eyelet Embroidered2XTops
Maurices Peasant Top Shirt Blouse Knot Button Up Short Sleeve Womens 1 1X1XTops
Sonoma NWT Camp Shirt Mens Medium Teal Cactus Short Sleeve Linen CottonMTops
LRL Lauren Jeans Co Henley Shirt Womens 1X Navy Blue Short Sleeve Cotton1XTops
Chaps Button Front Shirt Womens XL Cotton Spandex Blue Plaid Short Sleeve DolmanXLTops
Brooks Brothers Patchwork Plaid Shirt Mens XL Original Fit Cotton Short SleeveXLTops
Uniqlo Liberty London T-Shirt Womens Large Cotton Modal Floral Short SleeveLTops
Rebecca Malone T-Shirt Womens 3X Black Polka Dot Short Sleeve Cotton Blend3XTops
J Jill Blouse Womens XL Luxe Supima Relaxed Tee Black/White Plaid Short SleeveXLTops
Lands End Polo Shirt Mens 3XLT Blue Pocket Short Sleeve Cotton Traditional Fit3XLTTops
Alan Flusser Linen Shirt Mens Large Short Sleeve Yellow Blue Stripe PocketLTops
Lucky Brand T-Shirt Womens Medium Linen Blend White Blue Short SleeveMTops
Apt 9 Animal Print Top Shirt Blouse Short Sleeve Crew Essentials Womens 2XL XXL2XLTops
Danskin Now DriMore Mesh Crew T-Shirt Short Sleeve Burgundy Polyester Womens XXL2XLTops
St Johns Bay Quick Dri Shirt Womens 3X Polyester Purple Floral Short Sleeve Mesh3XTops
Michael Kors Blouse Womens XL Short Sleeve Tab Polyester Spandex Blue GreenXLTops
Old Navy Everywear T-Shirt Womens 2XL XXL Slub Cotton Short Sleeve V-Neck White2XLTops
Secret Treasures T-Shirt Dress Womens 2X/3X Colorful Short Sleeve Poly Spandex3XTops
Croft & Barrow Blouse Tee Womens 2X Navy Blue Cotton Blend Short Sleeve Eyelet2XTops
Ava & Viv T-Shirt Womens 2X Black Short Sleeve Cotton Modal Spandex Solid2XTops
Vibe Sportswear Tunic Dress Swing Blue Womens 2X Plus Short Sleeve Tie Stretch2XTops
Bobbie Brooks Button Front Shirt Womens 18W/20W 2X Short Sleeve Blue Patchwork2XTops
Lucky Brand Cotton Modal Shirt Blouse Tee Short Sleeve Red Blue Womens SSTops
Woman Within Button Front Shirt Womens 4X 34/36 Red Cotton Short Sleeve4XTops
LOFT Ann Taylor Blouse Womens Large Cotton Spandex Short Sleeve Green TealLTops
Nike Dri Fit Polo Shirt Mens 2XL XXL Black Striped Short Sleeve Polyester2XLTops
Lands End T-Shirt Womens 2X 20W 22W V-Neck Cotton Short Sleeve Blue Striped2XTops
Columbia PFG Shirt Mens 2XL XXL Blue Bahama Nylon Short Sleeve Solid Fishing2XLTops
Alfred Dunner NWT Blouse Womens 1X Green Short Sleeve Crinkle Polyester Lined1XTops
Ellos T-Shirt Womens 2X Plus 26/28 Cotton Peace Sign Short Sleeve Pink2XTops
Lularoe Carly T-Shirt Dress Womens 3XL XXXL Short Sleeve A-line Stretchy Maxi3XLTops
Athleta Finish Fast Shirt Womens Small Short Sleeve Nylon Spandex Black TeeSTops
Christopher Banks Blouse T-Shirt Womens XL Red Floral Short Sleeve CottonXLTops
Adidas NWT 1/4 Zip Knit T-Shirt Mens 3XL XXXL Black Polyester Short Sleeve3XLTops
By Chicos T-Shirt Womens 3 (US XL) Pink White Stripe 100% Cotton Short SleeveXLTops
Rachel Zoe Linen Blouse Womens 1X White Blue Floral Short Sleeve V-neck1XTops
Bobbie Brooks Blouse Womens 2X Short Sleeve Floral Pink Swing Cotton Polyester2XTops
Terra & Sky Blouse Womens 3X 24W 26W Woven Plaid Cotton Short Sleeve3XTops
Brooks Brothers Polo Shirt Mens XL Short Sleeve Cotton Performance Original FitXLTops
Nike Dri Fit T-Shirt Red Short Sleeve Spellout Crew Tee Mens 2XL XXL2XLTops
Chaps Blouse Womens 1X Short Sleeve Striped Ruffle Cotton1XTops
Simply Vera Wang Blouse Womens XL Short Sleeve Purple Tie Dye Rayon StretchXLTops
Faded Glory Blouse Womens 3X Purple Square Neck Short Sleeve Rayon Stain3XTops
Faded Glory Blouse Womens 4X 26W 28W Black White Floral Cotton Short Sleeve4XTops
Woman Within T-Shirt Womens 3X 30/32 Cotton Short Sleeve Red Crew Top3XTops
Tahari Linen T-Shirt Womens 1X White Black Floral Short Sleeve V-Neck1XTops
Terra & Sky Blouse Womens 1X Cotton Short Sleeve V-Neck Woven White Button Up1XTops
Joules NWT T-Shirt Dress Womens US 14 Jersey Knit Cotton Short Sleeve Floral Red14Tops
Croft & Barrow The Classic Tee Womens 1X Cotton Blue Floral Short Sleeve T-shirt1XTops
Studio 1940 Blouse Womens 22/24W Black Red Short Sleeve Polyester Stretch24WTops
Croft & Barrow NWT T-Shirt Blouse Womens 3X Intimates Short Sleeve Cotton Poly3XTops
Nike Just Do It T-Shirt Navy Blue Yellow Crew Short Sleeve Cotton Regular Mens LLTops
Tru Hearts V-Neck T-Shirt Womens 3X Polyester Stretch White Short Sleeve Top3XTops
Ben Hogan Performance Polo Shirt Gray Striped Short Sleeve Polyester Mens 3XL3XLTops
Torrid T-Shirt Womens 3 V-Neck Pocket Tee Pink Striped Short Sleeve Cotton BlendTops
Massini NWT T-Shirt Womens 1X Pink V-Neck Foil Metallic Short Sleeve Stretch1XTops
Knox Rose Blouse Womens 2XL XXL Black Purple Tassel Short Sleeve Pleat Cotton2XLTops
Catherines Blouse Womens 1X Polyester Spandex Embellished Short Sleeve1XTops
Chicos T-Shirt Womens 3 (US XL) Blue White Cotton Modal Short Sleeve StainXLTops
Catherines Suprema Collection Blouse Womens 3XWP Teal Short Sleeve Cotton VTops
Michael Kors T-Shirt Womens 3XL Short Sleeve Black Cotton Logo Spellout Crew3XLTops
Notations Blouse Womens 3X Plus Polka Dot Orange/Pink Short Sleeve Spandex3XTops
Croft & Barrow Classic Tee Womens 2X 100% Cotton Teal Green Short Sleeve T-Shirt2XTops
Arizona Jeans Co NWT T-Shirt Mens Large Blue V-Neck Cotton Blend Short Sleeve LLTops
Chicos Zenergy Blouse Womens 4 (US 2XL XXL 20/22) Short Sleeve USA Spandex Tee2XLTops
Falls Creek Blouse Womens 1X Cotton Modal Pink Short Sleeve V-Neck Gauze Trim1XTops
Chicos Blouse Womens Size 3 (US XL/16) Yellow Embroidered Short Sleeve CottonXLTops
Wrangler Wrancher Western Pearl Snap Shirt Womens 2XL XXL Short Sleeve Pink2XLTops
For The Republic Blouse Womens 2X Cotton Pink Tassels V-Neck Short Sleeve2XTops
LA Blues Fashion Bug NWT Blouse Womens 22/24 2X Teal Paisley Short Sleeve2XTops
Nike Running T-Shirt Mens Medium Teal Dri Fit Short Sleeve Poly StretchMTops
Adidas NWT Polo Shirt Mens 2XL XXL Short Sleeve ClimaCool White Graphite Striped2XLTops
Sonoma Blouse T-Shirt Womens 1X Cotton Blend Blue V-Neck Short Sleeve Dolman1XTops
Croft & Barrow Henley T-Shirt Womens 3X Purple Floral Butterfly Short Sleeve3XTops
Lucky Brand T-Shirt Mens 2XL XXL Orange Venice Burnout Short Sleeve V-Neck2XLTops
Notations Vintage Top Shirt Blouse Brown Short Sleeve Square Neck USA Womens 2X2XTops
THML Blouse Womens Medium Short Sleeve Balloon Sleeve White Floral ColorfulMTops
Lucky Brand Blouse Womens Medium Cotton Modal Blue Paisley Tassel Short SleeveMTops
Ava & Viv T-Shirt Womens 3X Cotton Polyester Short Sleeve V-Neck Black Tee3XTops
Old Navy Button Front Shirt Womens 3X Cotton Pink Short Sleeve Pocket Collar3XTops
Lauren Conrad Blouse Womens 2X Polyester Pink Floral Short Sleeve Pullover Tie2XTops
Signature 1 Studio Ruffle Short Sleeve Top Shirt Blouse Cotton Crew Womens 1X1XTops
Tory Burch T-Shirt Womens Medium Blue Pima Cotton Short Sleeve Crew TeeMTops
C Est 1946 Cato Blouse Womens 18/20W 2X Teal Pink Short Sleeve Cotton Modal2XTops
Lane Bryant Tunic Top Womens 20 Black Short Sleeve Asymmetric Polyester20Tops
Catherines Blouse Tunic Womens 0X Polyester Spandex Short Sleeve Light Pilling0XTops
Rewind Blouse Womens 3X Mixed Media Paisley Short Sleeve Square V-Neck3XTops
RVCA Button Front Shirt Mens XL Slim Fit Red Short Sleeve Pocket CottonXLTops
Wrangler Double Pocket Button Front Shirt Gray Short Sleeve Cotton Mens 3XL3XLTops
Cocomo NWT Blouse Womens Medium Polyester Spandex Knot Front Short Sleeve RedMTops
Maurices Blouse Womens 3X Cotton Embroidered Short Sleeve Pink Pleated3XTops
Old Navy Blouse Top Womens 3X White Blue Floral Embroidered Short Sleeve Cotton3XTops
J Crew NWT T-shirt Womens XL Neon Pink Burnout Made In LA USA Short SleeveXLTops
Lucky Brand Blouse Womens XS Viscose Short Sleeve V-neck Tie White PeasantXSTops
Affliction AC DC T-Shirt Mens 3XL XXXL Tie Dye Embellished Short Sleeve Tee3XLTops
American Giant T-Shirt Womens Large Made USA Supima Cotton Short Sleeve CrewLTops
Peter Millar Summer Comfort Polo Shirt Mens XL White Blue Striped Short SleeveXLTops
BSA Boy Scouts of America Youth Shirt Medium Indiana Hoosier Blue Short SleeveMTops
Jaclyn Smith Blouse Womens 3X Polyester Spandex Short Sleeve Black Pink Striped3XTops
Terra & Sky Button Front Shirt Womens 3X 24W 26W Cotton Pink Short Sleeve V-Neck3XTops
BKE Buckle Tunic Top Womens XL Short Sleeve Burgundy Round Neck Stretchy RayonXLTops
Alfred Dunner Blouse Womens 3X Pink Crinkle Polyester Tiered Short Sleeve3XTops
Lucky Brand Blouse Womens Large Blue Rayon Tie V Short Sleeve FloralLTops
Nouveau Monde Blouse Womens 2X Crinkle Polyester Green Short Sleeve Lightweight2XTops
Lucky Brand Blouse Womens 3X Plus Purple Pink Orange Viscose Short Sleeve Tie3XTops
Ralph Lauren Sport T-Shirt Womens S/M Cotton Striped Pony Short SleeveMTops
East 5th Essentials Orange Crew Short Sleeve Top Shirt Blouse Stretch Womens 1X1XTops
Sag Harbor Classics Textured Shirt Top Short Sleeve Orange Stretch Womens 1X1XTops
Old Navy Dress Womens Large Fit Flair Waist Elastic Short Sleeve Knit T-ShirtLTops
Lularoe Irma Tunic Top T-Shirt Womens 2XL XXL Purple Paisley Short Sleeve Hi Low2XLTops
Torrid Blouse Womens 3 3X Rayon Button Front Tie Short Sleeve Crop3XTops
Cherokee Blouse T-Shirt Womens 1X Floral Red Orange Short Sleeve Cotton V1XTops
Carhartt Pocket Red Check Shirt Button Front Short Sleeve Mens Large - Reg LLTops
George Denim Shirt Mens 2XL XXL 50-52 Blue Short Sleeve Cotton Button Front2XLTops
Time And Tru NWT T-Shirt Maternity Womens 2XL XXL 20 Navy Blue Short Sleeve2XLTops
Ralph Lauren Sport T-Shirt Womens Large Pink Pima Cotton V-Neck Short SleeveLTops
LOFT Ann Taylor Blouse Womens Large Polyester Black Floral Short SleeveLTops
Athleta Chi Dot Mesh Top Womens XL Burgundy Polyester Lycra Short Sleeve T-ShirtXLTops
Woman Within T-Shirt Blouse Womens 2X 26/28 Cotton Short Sleeve White V-Neck2XTops
Orvis Fishing Shirt Mens Large Blue Short Sleeve Double Pocket Polyester DryLTops
Tahari Linen Blouse Womens Medium Dark Teal Green V-Neck Short SleeveMTops
Banana Republic Eco T-shirt Bike Club Mens Large Crew Short Sleeve Burgundy LLTops
Under Armour T-Shirt Womens XL HeatGear V-Neck Short Sleeve Loose Fit PinkXLTops
Cynthia Rowley 100% Linen Blouse Womens Small Short Sleeve Button AccentSTops
Eddie Bauer Button Front Shirt Womens XL Classic Fit Plaid Short Sleeve PocketXLTops
Massimo Dutti Short Sleeve Polo Shirt Pink Casual Fit Cotton Womens XLXLTops
Knox Rose Blouse Womens Large Floral Short Sleeve Rayon V-Neck Pleat PeasantLTops
Knox Rose Blouse Womens Medium Green Rayon Floral Short Sleeve Puff CrewMTops
Croft & Barrow NWT T-Shirt Womens 1X Yellow/White Striped Short Sleeve Cotton1XTops
J Jill Luxe Supima Pleat Back Tee Womens Large Paisley White Short Sleeve BlouseLTops
Croft & Barrow Lobster Shirt Mens 3XB 3X Big Blue Short Sleeve Cotton Button Up3XBTops
Croft & Barrow T-Shirt Womens 1X Cotton The Classic Tee Short Sleeve Paisley1XTops
J Jill Blouse Womens Large Cotton Tassel Embroidered Pleated Short Sleeve RedLTops
Polo Ralph Lauren Polo Shirt Mens Medium Classic Fit Blue Cotton M Short SleeveMTops
One World Live and Let Live Blouse Womens XL Polyester Short Sleeve V-Neck FitXLTops
Harley Davidson T-Shirt Mens Large Green Mineral Wash Short Sleeve Cotton SkullLTops
Soft Surroundings T-Shirt Womens Small Blue Embroidered Short Sleeve CottonSTops
Life Is Good T-Shirt Womens XL Green Cotton Short Sleeve Crew FlowerXLTops
Ann Taylor Blouse Womens Large Rayon Short Sleeve Elastic Waist Yellow BlueLTops


Updated lists:
List of valid size entriesreplace entriesCategory
7XP7XPTopTops
6XP6XPBlouseTops
5XP5XPTeeTops
4XP4XPTunicTops
3XP3XPKimonoTops
2XP2XPT-ShirtTops
1XP1XPT-shirtTops
0XP0XPShirtTops
3XWP3XPTankTops
2XWP2XPDressDresses
1XWP1XPShirt DressDresses
0XWP0XPJumpsuitJumpsuits
26P26PRomperJumpsuits
24P24POverallsJumpsuits
22P22PShortallsJumpsuits
20P20PJeansJeans
18P18PJeggingJeans
16P16PJeggingsJeans
14P14PMom JeanJeans
12P12PPantsPants
10P10PLeggingsPants
8P8PLeggingPants
6P6PPantPants
4P4PPedal PushersPants
2P2PJoggerPants
0P0PJoggersPants
00P00PTrouserPants
P7XLP7XLTrousersPants
P6XLP6XLJacketJackets
P5XLP5XLVestJackets
P4XLP4XLCoatJackets
P3XLP3XLSport CoatSport Coats
P2XLP2XLBlazerSport Coats
PXLPXLSuit JacketSport Coats
XLPPXLWaist CoatSport Coats
PLPLSweaterSweaters
LPPLCardiganSweaters
PMPMShortsShorts
MPPMShortShorts
SPPSSkirtSkirts
PSPSSkortSkirts
PXSPXSPoloPolos
P2XSP2XSRugby ShirtPolos
7XB7XBHoodieHoodies/Sweatshirts
6XB6XBSweatshirtHoodies/Sweatshirts
5XB5XBFleece PulloverHoodies/Sweatshirts
4XB4XBHatMisc
3XB3XBWalletMisc
2XB2XBBagMisc
1XB1XBScarfMisc
6XLT6XLT
5XLT5XLT
4XLT4XLT
3XLT3XLT
2XLT2XLT
XLTXLT
LTLT
MTMT
7XL7XL
6XL6XL
5XL5XL
4XL4XL
3XL3XL
2XL2XL
XLXL
1XLXL
LL
MM
SS
XSXS
2XS2XS
XXS2XS
7X7X
6X6X
5X5X
4X4X
3X3X
2X2X
1X1X
0X0X
XXXL3XL
XXL2XL
LargeL
MediumM
SmallS
44W44W
42W42W
38W38W
36W36W
34W34W
32W32W
30W30W
28W28W
26W26W
24W24W
22W22W
20W20W
18W18W
16W16W
14W14W
One SizeOne Size
All SizesOne Size
6060
5858
5656
5454
5252
5050
4848
4646
4444
4242
4040
3838
3636
3535
3434
3333
3232
3131
3030
2929
2828
2727
2626
2525
2424
2222
2020
1818
1616
1414
1212
1010
000
88
66
44
22
00
 
Upvote 0
I just realized that Sub frewert_3 only creates Column C. It will not create Column B.

This is probably why 3XWP, Torrid sizes, and All Sizes were not working for me this morning.
 
Upvote 0
I just realized that Sub frewert_3 only creates Column C. It will not create Column B.
Sorry, I overlooked that part while updating the code.

here is some error with Short being read over Top, resulting in the wrong category.
What's the rule if there are multiple Category in a Title?
For example:
Maurices Top Womens 0X Black Floral Rayon Stretch Short Sleeve Flutter Pink0XShortsShould be Tops
It has Top & Short, so why choose Top instead of Short?

Polo Ralph Lauren Vintage Bag Blackwatch Leather Shoulder Strap ZipPolosShould be Misc
It has Polo & Bag, so why choose Bag instead of Polo?
 
Upvote 0
  • Of the 203 in the list above, all but one have "Short Sleeve" in common. I think it'd be a good rule to make that IF "Short Sleeve" exists, then ignore Short in that case.
  • Similar with "Polo Ralph Lauren", "Polo Jeans Co" and "US Polo Assn", if they could be ignored, they would always accompany a category word somewhere else in the title.
 
Upvote 0
Try this:
VBA Code:
Sub frewert_4()
Dim regEx As Object, Matches As Object
Dim i As Long, j As Long, n As Long
Dim tx As String, pt
Dim va, vb, vc, ary
Dim Flag As Boolean

t = Timer

Range("B2:C200000").ClearContents  'clear col B:C

With Range("F2", Cells(Rows.Count, "F").End(xlUp)).Resize(, 2)
    .Value = Application.Trim(.Value)  'trim trailing space in data in col A
    vb = .Value
End With



va = Range("A2", Cells(Rows.Count, "A").End(xlUp)) 'populate va with col A data
ReDim vc(1 To UBound(va, 1), 1 To 1)

Debug.Print "Number of records  :" & " : " & UBound(va, 1)
Debug.Print "Number of Size List  :" & " : " & UBound(vb, 1)

For i = 1 To UBound(va, 1)
    tx = va(i, 1)
    
    For Each x In Split(", / \ ( ) . ; : [ ]", " ") 'replace some characters with a space (exclude ")
        tx = Replace(tx, x, " ")
    Next
    tx = " " & tx & " "   'add space at the beginning and end of each record
    tx = Replace(tx, """", "ZZZ")  'replace " with ZZZ so word/number with " will be ignored
    
    tx = Replace(tx, "Short Sleeve", " Sleeve")             'replace "Short Sleeve" with " Sleeve"
    tx = Replace(tx, "Polo Ralph Lauren", " Ralph Lauren")
    tx = Replace(tx, "Polo Jeans Co", " Jeans Co")
    tx = Replace(tx, "US Polo Assn", "US Assn")
    tx = Replace(tx, "US Polo Assn", "US Assn")
    va(i, 1) = Replace(tx, " Inseam", "Inseam")             '   Maybe ignore "(number) Inseam"
    
Next

    Set regEx = CreateObject("VBScript.RegExp")
    With regEx
    ary = Split("Ties|Scarves|Wallets|Hats|Bags", "|")
            
'            ============= Size =============================================
            For i = 1 To UBound(va, 1)
                Flag = False
                tx = va(i, 1)
                
                For Each x In ary  'deal with "Ties|Scarves|Wallets|Hats|Bags"
                     If InStr(tx, " " & x & " ") Then Flag = True: Exit For
                Next
                
                If Flag = False Then   '
                    If InStr(tx, " " & "Torrid" & " ") Then           'deal with Torrid
                        For Each x In Split("0 1 2 3 4 5 6", " ")
                            If InStr(tx, " " & x & " ") Then
                                vc(i, 1) = x & "X"
                                Flag = True: Exit For
                            End If
                        Next
                    End If
                End If
                
                If Flag = False Then
                    For j = 1 To UBound(vb, 1)
                        If InStr(tx, " " & vb(j, 1) & " ") Then  'check if a record has items in list in col F
                            vc(i, 1) = vb(j, 2)                  'if True then add col G value to variable vc
                            Flag = True: Exit For
                        End If
                    Next
                End If
                
                If Flag = False Then 'if the above cheking give empty result
                    For Each pt In Split(" [0-9]{2}X[0-9]{2} | [0-9]{1,2}[MRLST] ", "|")  'use this regex pattern to check
                        .Pattern = pt
                        If .test(tx) Then
                            Set Matches = .Execute(tx)
'                             Debug.Print i & " : " & Matches(0) & " : " & Val(Matches(0))
                            vc(i, 1) = Val(Matches(0))    'if there's a match then add the match to variable vc
                            Flag = True: Exit For
                        End If
                    Next
                End If
           

            Next
            
'put the result (of Category) in col C:
Range("B2").Resize(UBound(vc, 1), 1) = vc
            
            

            
'===================== Category ======================

    With Range("H2", Cells(Rows.Count, "H").End(xlUp)).Resize(, 3)
        .Value = Application.Trim(.Value)                          'trim trailing space in data in col H:I
        vb = .Value                                                'load data to vb from col H:I
    End With
    
    For i = 1 To UBound(vb, 1)
        vb(i, 3) = Len(vb(i, 1))  'load col H word length to 3rd col in vb
    Next
    
    vb = WorksheetFunction.Sort(vb, 3, -1)  'sort vb by word length

    
    ReDim vc(1 To UBound(va, 1), 1 To 1)
        For i = 1 To UBound(va, 1)
            Flag = False
            tx = va(i, 1)
            For j = 1 To UBound(vb, 1)
                If InStr(tx, " " & vb(j, 1) & " ") Then  'check if a record has items in list in col H
                        vc(i, 1) = vb(j, 2)                  'if True then add col I value to variable vc
                        Flag = True: Exit For
                End If
            Next
        Next
            
End With
'put the result (of Category) in col C:
Range("C2").Resize(UBound(vc, 1), 1) = vc
Debug.Print "Number of Category List  :" & " : " & UBound(vb, 1)
Debug.Print "Completion time:  " & Format(Timer - t, "0.00") & " seconds"

End Sub
 
Upvote 0
We are error free now on both Size and Category! Nice job on this.
 
Upvote 0

Forum statistics

Threads
1,224,819
Messages
6,181,153
Members
453,021
Latest member
Justyna P

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