Closed Thread
Results 1 to 3 of 3

Need help with Excel macro for some data processing

  1. #1
    Registered User
    Join Date
    08-01-2012
    Location
    Anyville, Anywhere
    MS-Off Ver
    Excel 2007
    Posts
    11

    Need help with Excel macro for some data processing

    Hi folks - I have a large spreadsheet (over 100,000 rows) with 10 columns of data. Two of the columns have comma separate value entries. I need a macro (or series of macros) that can automatically duplicate rows of data with only a single entry for each such comma separated value.

    so today I have: John | Smith | Virginia | Apples, Bananas, Grapes, Mangoes

    And I want:

    John | Smith | Virginia | Apples
    John | Smith | Virginia | Bananas
    John | Smith | Virginia | Grapes
    John | Smith | Virginia | Mangoes

    I need the macro to be "smart enough" to only create duplicate rows for the number of entries in the CSV cell. So, in my example, I had 4 fruit names. If I had 17 fruit names, I'd want 17 rows, each with a single instance of each fruit. If there are two identical fruit names, that's okay - I can live with two duplicate rows of the same exact fruit name.

    Thoughts on how to do this??

  2. #2
    Valued Forum Contributor
    Join Date
    11-26-2012
    Location
    Sydney
    MS-Off Ver
    2010
    Posts
    419

    Re: Need help with Excel macro for some data processing

    Try this - I think it should do what you want.

    Please Login or Register  to view this content.
    Last edited by mgs73; 01-14-2014 at 10:30 PM.

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Need help with Excel macro for some data processing

    Thread posted in CS subforum, hence closed.

    Airbeast, you are duplicating efforts by posting it in both the paid and free forums. Please avoid doing so.

    Thanks,
    Admin
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Reduce processing time for processing multiple excel sheets
    By rexer231 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-06-2014, 09:25 AM
  2. Excel - bulk processing disparate spread sheets with common data into 1 table or SS
    By rblackcat in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-29-2013, 08:41 PM
  3. Pause excel macro code while application is processing
    By rschimmel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-19-2013, 08:56 PM
  4. [SOLVED] Need advice on data processing formulas in Excel 2010
    By robinc1969 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-15-2013, 05:32 PM
  5. macro for processing one excel file and saving it to other
    By shwetaparekh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-30-2005, 07:05 PM

Tags for this Thread

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