Results 1 to 3 of 3
  1. #1
    Star Lounger
    Join Date
    Mar 2004
    Location
    Essex, England
    Posts
    93
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Making a Data Grid (2002)

    I have a csv file (without headers). Col A is Product Name and Col B onwards contains special codes. Each separate code is shown in a subsequent column i.e If there are 3 codes the first three columns are used; if there are 4 codes, the first four columns etc.
    My current data looks something like this :-
    Col A Col B Col C Col D
    a 1 2 4
    b 2 3
    c 2 4 5
    d 1 5

    I need to arrange the data in the following format :-

    Col A Col B Col C Col D Col E Col F
    Product 1 2 3 4 5

    a 1 2 - 4 -
    b - 2 3 - -
    c - 2 4 5
    d 1 - - - 5

    I need the grid to show all potential codes and so my headers wil run from 1 - 40 (Column AO) as there are 40 potential codes and hundreds or rows of data. Does anyone have an idea how I should go about this ?

    Many thanks

    Robert

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Making a Data Grid (2002)

    You could use a macro - see the attached sample workbook.
    Attached Files Attached Files

  3. #3
    Star Lounger
    Join Date
    Mar 2004
    Location
    Essex, England
    Posts
    93
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Making a Data Grid (2002)

    Works perfectly Hans - many thanks.

    Robert

Posting Permissions

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