Consulting

Results 1 to 3 of 3

Thread: Help Organising Data

  1. #1
    VBAX Newbie
    Joined
    Sep 2013
    Posts
    1
    Location

    Help Organising Data

    Hello all,

    Not sure if this is in the correct part of the forum but here goes.

    I am in dire need of some expert assistance as my limited knowledge of Excel has me completely stumped.

    I have attached a small spreadsheet (just a snippet of the amount of data i actually have to process) that demonstrates the current format and required format.

    there are a set number of column headings and they are
    Companies
    Ind / Edu Qualifications
    Industry Technology
    Positions
    Programming Langs
    International Regions
    UK Regions
    Sector / Vertical Mkt
    Product / Search
    Languages

    If anyone can help me in trying to organize my data I would be hugely grateful.

    many thanks
    Attached Files Attached Files

  2. #2
    VBAX Regular
    Joined
    Nov 2008
    Location
    Cedar Creek, Texas
    Posts
    95
    Location
    Hi Arvon,

    Welcome to this forum!

    Please review the attached, it's my attempt at solving your issue, I am learning VBA as well so please excuse the simple code, but it gives you what you want.
    I am sure someone else will offer a more elegant solution in the form of nicer code.
    Attached Files Attached Files

  3. #3
    Knowledge Base Approver VBAX Wizard
    Joined
    Apr 2012
    Posts
    5,646
    Remove the first row in sheet2 before running this macro:

    Sub M_snb()
        sn = Sheets("sheet2").Cells(1).CurrentRegion
        ReDim sp(UBound(sn), 8)
        
        For j = 1 To UBound(sn)
          sp((j - 1) \ 8, 0) = sn(j, 1)
          sp((j - 1) \ 8, (j - 1) Mod 8 + 1) = Replace(sn(j, 3), ";", vbLf)
        Next
        
        Sheets("sheet3").Cells(1, 2).Resize(, 8) = Array(sn(1, 2), sn(2, 2), sn(3, 2), sn(4, 2), sn(5, 2), sn(6, 2), sn(7, 2), sn(8, 2))
        Sheets("sheet3").Cells(2, 1).Resize(UBound(sp) + 1, UBound(sp, 2) + 1) = sp
    End Sub

Posting Permissions

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