Results 1 to 16 of 16

Insert blank rows based on a cell value

Threaded View

  1. #1
    Registered User
    Join Date
    10-23-2012
    Location
    belfast
    MS-Off Ver
    Excel 2010
    Posts
    12

    Insert blank rows based on a cell value

    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
    Attached Files Attached Files
    Last edited by warrenr6; 09-03-2016 at 05:29 PM. Reason: HARD TO READ DATA

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Macro needed to insert blank rows below row based on value in cell in row
    By lauragoodwin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-02-2015, 12:41 PM
  2. [SOLVED] Insert Blank Rows between existing data based on dups in sheet2
    By Melissa Camp in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-29-2014, 07:07 AM
  3. [SOLVED] Macro to Insert blank rows based on condition
    By Nikkishr in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-07-2012, 03:32 AM
  4. Insert 2 blank rows and sum columns based on cell value change
    By parreola in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-27-2009, 11:14 PM
  5. insert a blank rows based on cell value
    By pani_hcu in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 08-28-2009, 09:47 AM
  6. insert blank rows based on columns a values numerically
    By elkhole in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-18-2009, 04:57 AM
  7. Macro to insert blank rows based on data above
    By MattLinkus in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-22-2007, 06:35 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1