+ Reply to Thread
Results 1 to 3 of 3

change table structure

  1. #1
    Registered User
    Join Date
    05-09-2019
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    2

    change table structure

    Hi Guys,
    this is my first thread and I hope I dont come across to stupid..
    Its a bit tricky to explain. But I think from the pictures below, you can figure out what I am trying to do...

    Is there any formula or VBA I can use?

    I need to change the structure of a table and tried for hours how to do it, but didn't manage.

    before (this is how it is)
    1.png

    after (this is how it should be)
    2.png

    Thanks, tmo
    Attached Files Attached Files

  2. #2
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,483

    Re: change table structure

    a simple index formula can do that for you.

    for the name column to be.. use

    Please Login or Register  to view this content.
    for each next column only the (red) 1 in the formula needs to be changed to 2,3 and 4
    *4 makes the row number to find jump by 4 to the next record.
    the ROW()-2 makes sure that for the first record it is 0*4 so 1+0 = use row 1 of the tablerange B2:B21 or cell B2

    see also the attachment.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    05-09-2019
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    2

    Re: change table structure

    Dear Roel,
    this is amazing and so fast...Thanks a lot!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 4
    Last Post: 12-02-2018, 10:04 AM
  2. Replies: 40
    Last Post: 08-29-2018, 01:36 PM
  3. Replies: 5
    Last Post: 01-29-2017, 08:43 PM
  4. [SOLVED] How to change data structure by month #'s
    By stephme55 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-30-2015, 06:21 PM
  5. Replies: 6
    Last Post: 09-04-2015, 08:20 PM
  6. Prevent structure of a range to change when row is inserted
    By nickmax1 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-05-2015, 12:37 PM
  7. VBA to change structure of excel file
    By Jedgroev in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-21-2012, 09:13 AM

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