Hey guys,
i was wondering if i could ask for some help,
i am in the process of building a motorbike parts website and i have comprised a list of all bikes of all makes all models and all years, it has over 20,000 rows of data so would be a bit tedious to do manually haha
here is a sample of the data:
Honda CRF 150 R----- 7----- KE03A------ JH2KE03A-7K000001------ JH2KE03A-7K099999------ 2007----------- 1------ 22,6 BHP, 16,6 kw------
Honda CRF 150 R----- 8----- KE03A------ JH2KE03A-8K100001------ JH2KE03A-8K199999------ 2008----------- 1------ 22,6 BHP, 16,6 kw------
Honda CRF 150 R----- 9----- KE03A------ JH2KE03A-9K200001------ JH2KE03A-9K299999------ 2009-2011------ 1------ 22,6 BHP, 16,6 kw------
Honda CRF 150 R----- C----- KE03A------ JH2KE03A-CK300001------ JH2KE03A-DK499999------ 2012----------- 1------ 24 BHP, 18 kw------
Honda CRF 150 R----- D----- KE03A------ JH2KE03A-DK400001------ JH2KE03A-DK499999------ 2013----------- 1------ 24 BHP, 18 kw------
Honda CRF 150 R----- E----- KE03A------ JH2KE03A-EK500001------ JH2KE03A-DK499999------ 2014-2015------ 1------ 24 BHP, 18 kw------
Honda CRF 150 RB----- 7----- KE03B------ JH2KE03B-7K000001------ JH2KE03B-7K099999------ 2007----------- 1------ 22,6 BHP, 16,6 kw------
Honda CRF 150 RB----- 8----- KE03B------ JH2KE03B-8K100001------ JH2KE03B-8K199999------ 2008----------- 1------ 22,6 BHP, 16,6 kw------
Honda CRF 150 RB----- 9----- KE03A------ JH2KE03A-9K200001------ JH2KE03A-9K299999------ 2009-2011------ 1------ 22,6 BHP, 16,6 kw------
Honda CRF 150 RB----- C----- KE03A------ JH2KE03A-CK300001------ JH2KE03A-DK499999------ 2012----------- 1------ 24 BHP, 18 kw------
Honda CRF 150 RB----- D----- KE03A------ JH2KE03A-DK400001------ JH2KE03A-DK499999------ 2013----------- 1------ 24 BHP, 18 kw------
Honda CRF 150 RB----- E----- KE03A------ JH2KE03A-EK500001------ JH2KE03A-DK499999------ 2014-2015------ 1------ 24 BHP, 18 kw------
My issue comes from the year column,
the first to rows are ok, but its any row that contains multiple years i.e the third row down is 2009-2011,
what i need to be able to do is to insert two empty rows below that row, as the cell that "2009-2011" was in will now have to contain "2009" then the two cells below need to be "2010" and "2011" respectively, and in an ideal world, fills in the data identically to in the other columns ( i hope that makes sense lol)
So basically this row:
Honda CRF 150 RB------ 9------ KE03A------ JH2KE03A-9K200001------ JH2KE03A-9K299999------ 2009-2011------ 1------ 22,6 BHP, 16,6 kw------
Becomes:
Honda CRF 150 RB------ 9------ KE03A------ JH2KE03A-9K200001------ JH2KE03A-9K299999------ 2009------ 1------ 22,6 BHP, 16,6 kw------
Honda CRF 150 RB------ 9------ KE03A------ JH2KE03A-9K200001------ JH2KE03A-9K299999------ 2010------ 1------ 22,6 BHP, 16,6 kw------
Honda CRF 150 RB------ 9------ KE03A------ JH2KE03A-9K200001------ JH2KE03A-9K299999------ 2011------ 1------ 22,6 BHP, 16,6 kw------
I dont know if this is possible by a formula (probably not), i have no experience with macros or vba but i am willing to learn lol
thanks for any help in advance,
Warren.
ps. I have attached an excel version of the sample if it helps
Bookmarks