Gingertrees
Well-known Member
- Joined
- Sep 21, 2009
- Messages
- 697
Summary: Inherited some data - now trying to categorize products based on a description in a text field.
Details: Identifying info could be across several fields, so I concatenated the data into a single messy text field. Easiest analogy would be to categorize cars as being made by GM or Ford or Other, based on manufacturer, brand, and model - any or none of which may be present.
My text fields look like this:
CHEVROLET MALIBU
GM CHEVROLET TRUCK
GM TRUCK
FORD FUSION
TOYOTA CAMRY
I was thinking if I put together a function using INSTR with a case function, or maybe an array, I could do this, but I'm unclear where to start.
I have a list of makes and models, and if a make or model is found in my text field, that will produce the manufacturer. So to look at my sample text fields again,
CHEVROLET MALIBU..........GM
GM CHEVROLET AVEO.......GM
GM TRUCK......................GM
FORD FUSION..................Ford Motor Company
TOYOTA CAMRY...............Other
Can anyone help me? Or at least point me in the right direction?
Details: Identifying info could be across several fields, so I concatenated the data into a single messy text field. Easiest analogy would be to categorize cars as being made by GM or Ford or Other, based on manufacturer, brand, and model - any or none of which may be present.
My text fields look like this:
CHEVROLET MALIBU
GM CHEVROLET TRUCK
GM TRUCK
FORD FUSION
TOYOTA CAMRY
I was thinking if I put together a function using INSTR with a case function, or maybe an array, I could do this, but I'm unclear where to start.
I have a list of makes and models, and if a make or model is found in my text field, that will produce the manufacturer. So to look at my sample text fields again,
CHEVROLET MALIBU..........GM
GM CHEVROLET AVEO.......GM
GM TRUCK......................GM
FORD FUSION..................Ford Motor Company
TOYOTA CAMRY...............Other
Can anyone help me? Or at least point me in the right direction?