+ Reply to Thread
Results 1 to 3 of 3

Generating new data based on cell value

  1. #1
    Registered User
    Join Date
    01-13-2012
    Location
    LA
    MS-Off Ver
    Excel 2003
    Posts
    8

    Generating new data based on cell value

    Hello all!
    Could you please help me with this problem - I need a vba macro that will generate new data based on a cell value. For example:
    This is what I have
    Model;Sizes;
    J-1;0-14;
    J-1;0-24;
    J-2;0-14;
    J-3;0-14;
    J-4;0-14;
    J-4;0-24;
    J-5;0-24;

    And this what I want to have:
    J-1;0;
    J-1;2;
    J-1;4;
    J-1;6;
    J-1;8;
    J-1;10;
    J-1;12;
    J-1;14;
    J-1;16;
    J-1;18;
    J-1;20;
    J-1;22;
    J-1;24;
    And so on for the other models.

    Some models are represented in both 0-14 and 0-24 sizes, that's why after all sizes have been generated they also need to be checked for duplicates and delete them if found.

    Attached file has the above example with full details on final results

    Thank you very much for your help!
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Generating new data based on cell value

    This should do it:

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    01-13-2012
    Location
    LA
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Generating new data based on cell value

    Awesome!!! Thank you very much for your help, i really appreciate it!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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