Auto Splitting of Data

Ruban S

New Member
Joined
Dec 31, 2019
Messages
35
Office Version
  1. 2016
Platform
  1. Windows
Dear,

I have data like this

SHORTLONGNOUNMODIFIERATT N1ATT V1ATT N2ATT V2ATT N3ATT V3
CHEMICAL,FAST-DRY SELF VULCANIZING CEMNTCHEMICAL, TYPE:FAST-DRY SELF VULCANIZING CEMENT, PACK SIZE:236.6MLCHEMICAL--TYPEPACK SIZE
CHEMICAL,FLUSH,LOCO,236.6MLCHEMICAL,FLUSH, BRAND:LOCO, PACK SIZE:236.6MLCHEMICALFLUSHMANUFACTURERBRANDPACK SIZE

I Need it like this

SHORTLONGNOUNMODIFIERATT N1ATT V1ATT N2ATT V2ATT N3ATT V3
CHEMICAL,FAST-DRY SELF VULCANIZING CEMNTCHEMICAL, TYPE:FAST-DRY SELF VULCANIZING CEMENT, PACK SIZE:236.6MLCHEMICAL--TYPEFAST-DRY SELF VULCANIZING CEMENTPACK SIZE236.6ML
CHEMICAL,FLUSH,LOCO,236.6MLCHEMICAL,FLUSH, BRAND:LOCO, PACK SIZE:236.6MLCHEMICALFLUSHMANUFACTURERBRANDLOCOPACK SIZE236.6ML

Likewise, I have many records, Please help me with some solution.
Data has to be Autofill based on LONG
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Below is a Simple Example for this Thread.

I have Data Like this

SHORTLONGXYXXXX1YYYY1ZZZZ1
A,B,1,2,3A,B,C:1,D:2,E:3ABCDE
A,1,3A,B,C:1,E:3A--CDE

And, I need it like this

SHORTLONGXYXXXX1YYYY1ZZZZ1
A,B,1,2,3A,B,C:1,D:2,E:3ABC
1
D
2
E
3
A,1,3A,B,C:1,E:3A--C
1
D--E
3
 
Upvote 0
Actually, We have to consider LONG.
First, in column XX1, it has to check LONG whether XX (i.e. C) is available are not. If yes it has to fetch the value Corresponding to C (i.e. 1). Same way for the rest of the cells.
Please let me know if you need more clarification.
 
Upvote 0
I see you want to do it "in place"
Power Query can't do that so you need to wait for someone else with vba
 
Upvote 0
Here is another simple Example
i have like this

DESCRIPTIONNOUNMODIFIERATT1VAL1ATT2VAL2ATT3VAL3ATT4VAL4ATT5VAL5ATT6VAL6ATT7VAL7ATT8VAL8ATT9VAL9ATT10VAL10
ABRASIVE:FLAP WHEEL;TYPE:CRIMPED, BRUSH,OUTSIDE DIAMETER:8IN,FACE WIDTH:7/8IN,ARBOR SIZE:2INABRASIVEFLAP WHEELTYPEOUTSIDE DIAMETERFACE WIDTHARBOR SIZEMOUNTING TYPEGRITABRASIVE MATERIALSPEED RATINGCERTIFICATION/STANDARDADDITIONAL FEATURES

I Need Like this as value populated in corresponding cells as Highlighted in Bold

DESCRIPTIONNOUNMODIFIERATT1VAL1ATT2VAL2ATT3VAL3ATT4VAL4ATT5VAL5ATT6VAL6ATT7VAL7ATT8VAL8ATT9VAL9ATT10VAL10
ABRASIVE:FLAP WHEEL;TYPE:CRIMPED, BRUSH,OUTSIDE DIAMETER:8IN,FACE WIDTH:7/8IN,ARBOR SIZE:2INABRASIVEFLAP WHEELTYPECRIMPED, BRUSHOUTSIDE DIAMETER8INFACE WIDTH7/8INARBOR SIZE2INMOUNTING TYPE--GRIT--ABRASIVE MATERIAL--SPEED RATING--CERTIFICATION/STANDARD--ADDITIONAL FEATURES--


Please anyone help me
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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