Consulting

Results 1 to 11 of 11

Thread: Solved: Reorgranize data

  1. #1

    Solved: Reorgranize data

    I have a worksheet with data looking as follows:

    Serial# result1 result2 ... resultn
    A
    A
    A
    B
    B
    B
    C
    C
    C
    .
    .
    .
    X
    X
    X

    i want to make these into tables

    result1
    serial# trial1 trial2 trial3
    A
    B
    C
    .
    .
    .


    result2
    serial# trial1 trial2 trial3
    A
    B
    C
    .
    .
    .


    any ideas on how to do this.

  2. #2
    VBAX Mentor MaximS's Avatar
    Joined
    Sep 2008
    Location
    Stoke-On-Trent
    Posts
    360
    Location
    check attachment for details i hope that will do the job.

  3. #3
    THANKS MaximS!!!

    I think this is awesome...it should do the trick.

    I really appreciate the help!

  4. #4
    Hey MaximS

    your unique function is great!

    how would i modify that fuction to return the number of each serial number occuring (i.e. 3 for the example in the original post)?


    thanks!

  5. #5
    VBAX Mentor MaximS's Avatar
    Joined
    Sep 2008
    Location
    Stoke-On-Trent
    Posts
    360
    Location
    Try this:

    [VBA]Cells(1,1).Value = UBound(Category)[/VBA]


    this should fill "A1" with nuber of unique serial numbers

  6. #6
    No, I mean if I want to store the occurrences of each serial number in an array..so the array is like this:


    Serial1, 5
    Serial2, 3
    Serial3, 2
    Serial4, 3
    Serial5, 3
    .
    .
    .


    basically, i want to make the program more usable...so as opposed to each serial number occurring 3 times...if some occur 2 others 4 it will list the trials according to the largest number of occurrences, leaving trial4, etc.. blank if that particular serial number does not have that many trials, i.e:

    result1
    serial# trial1 trial2 trial3 trial4 trial5
    A data data data
    B data data data data data
    C data data
    .
    .
    .


    result2
    serial# trial1 trial2 trial3 trial4 trial5
    A data data data
    B data data data data data
    C data data
    .
    .
    .


    Do you understand what I am saying

    I really appreciate the help...let me know if you need ANYTHING!

  7. #7
    VBAX Mentor MaximS's Avatar
    Joined
    Sep 2008
    Location
    Stoke-On-Trent
    Posts
    360
    Location
    I will look in to this.

  8. #8
    Thanks...you are seriously the best!

  9. #9
    VBAX Mentor MaximS's Avatar
    Joined
    Sep 2008
    Location
    Stoke-On-Trent
    Posts
    360
    Location
    try now this will work no matter how many trials per item (ie A or B) you have.

  10. #10
    I will try this out and let you know how it goes. THANK YOU!

  11. #11
    works fine...thats for all the help.

    i really appreciate it

Posting Permissions

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