+ Reply to Thread
Results 1 to 2 of 2

Help duplicating rows within Excel based upon cell info.

  1. #1
    Registered User
    Join Date
    10-13-2015
    Location
    Fort Worth, Texas
    MS-Off Ver
    MS Office 365 on Mac
    Posts
    5

    Help duplicating rows within Excel based upon cell info.

    I have an Excel file that has the following columns. I need to have each Fitment Year listed as a single row. This cell contains a lising of years separated with ",". These may not always be consecutive years. I need a way to look at how many are listed and duplicate the row of data replacing the info in the Fitment years to be a single unique year for that row of text. Is there a way to create a Macro that would look at the fitment years cell and then duplicate the row for each year? This is an ongoing macro that I will have to run each month against an Excel file that has several hundred lines that will expand exponentially once it is expanded for each year. I really need your help! I'm desperate. Below is a sample of what a row of my data looks like and what I need it to look like.

    THIS IS WHAT I HAVE:

    P/N Make Mfg Model Year Span Fitment Years
    881612 Aprilia 881965 1000 RSV4 - (SACHS) 10-12 2010, 2011, 2012


    THIS IS WHAT I NEED IT TO BE:
    P/N Make Mfg Model YearSpan Fitment Years
    881612 Aprilia 881965 1000 RSV4 - (SACHS) 10-12 2010
    881612 Aprilia 881965 1000 RSV4 - (SACHS) 10-12 2011
    881612 Aprilia 881965 1000 RSV4 - (SACHS) 10-12 2012
    Last edited by jnowell; 10-13-2015 at 12:55 PM.

  2. #2
    Registered User
    Join Date
    02-09-2014
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    69

    Re: Help duplicating rows within Excel based upon cell info.

    Try this

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Delete Duplicate Rows based on one duplicating value- and keep total at the top the same.
    By jeremynorthwestern in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-21-2014, 01:32 AM
  2. Duplicating/Deleting rows based on criteria
    By excelit in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-26-2013, 09:34 AM
  3. Duplicating rows and doing calculations based on a field
    By Iceotron in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-17-2012, 02:48 AM
  4. Replies: 8
    Last Post: 06-05-2011, 02:31 PM
  5. Macro for combining columns and duplicating rows based on data
    By abuchan in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-27-2011, 01:57 AM
  6. Replies: 11
    Last Post: 08-24-2009, 11:44 AM
  7. duplicating rows based on one column
    By mediadirect in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-07-2007, 03:49 PM
  8. Hide rows based on cell info in another sheet
    By holst3n in forum Excel General
    Replies: 0
    Last Post: 01-19-2005, 09:53 AM

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