karv,
please provide enough and complete sample data,
if you want to receive significant and/or usefull responses.
Your provided data were vague and not complete for me.
For example:
1) How to make this intermediate data from bare data?
(How to know each of MAZDAs make one concatenated string and BMWs make another concatenated string?
(Do you want to make a string from rows with same values of COL1?)
Quote:
COL1 COL2 COL3 DESC
MAZDA XYZ COMM MAZDA XYZ AWD COMM WITH UPGRADE
BMW 3.25 9iJKpon BMW 325i REG 9iJKpon
|
or, concatenate columns in a row only and your data were these kind?
Quote:
row 1
COL1: MAZDA XYZ COMM
COL2: MAZDA XYZ AWD COMM WITH UPGRADE
row 2
COL1: BMW 3.25 9iJKpon
COL2: BMW 325i REG 9iJKpon
|
2) did some words in desc repeat data in col1, col2, col3?
Quote:
col1
MAZDA
BMW
****
col2
XYZ
3.25
********
col3
COMM*
REG 9iJKpon
*******
desc
MAZDA XYZ AWD COMM WITH UPGRADE
BMW 325i 9iJKpon
|
3) If sequence of words were significant, how to get this result
Quote:
|
BMW 3.25 325I REG 9iJKpon
|
from this data?
Quote:
|
BMW 3.25 9iJKpon BMW 325i REG 9iJKpon
|
If I removed second and subsequent repeated words from left to right,
the result may be
BMW 3.25 9iJKpon 325i REG