+ Reply to Thread
Results 1 to 9 of 9

How do I transform my table?

  1. #1
    Registered User
    Join Date
    07-07-2015
    Location
    Lisbon, Portugal
    MS-Off Ver
    365
    Posts
    4

    How do I transform my table?

    Hi,

    Is there a simple way of transforming this table:

    Resource 1 Resource 2 Resource 3
    Activity 1 5 4 5
    Activity 2 4 5 6
    Activity 3 5 3 5

    Into something like this:

    Activity 1 Resource 1 5
    Activity 1 Resource 2 4
    Activity 1 Resource 3 5
    Activity 2 Resource 1 4
    Activity 2 Resource 2 5
    Activity 2 Resource 3 6
    Activity 3 Resource 1 5
    Activity 3 Resource 2 3
    Activity 3 Resource 3 5

    Btw, I am hopeless at VBA and macros.

    Thank you very much in advance.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: How do I transform my table?

    Please attach a sample workbook - as there is some ambiguity about what values are in which cell, in your post. Make sure there is enough data to demonstrate your need. Make sure your desired results are shown, mock them up manually if necessary. Remember to remove ALL confidential information first!!!

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    The paperclip icon
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: How do I transform my table?

    OK. Figured it!! Try this.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    07-07-2015
    Location
    Lisbon, Portugal
    MS-Off Ver
    365
    Posts
    4

    Re: How do I transform my table?

    Thanks for figuring it out (I was still figuring out how to write a table on the thread).
    I'm going to give it a try. I'll let you know if I got it to work.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: How do I transform my table?

    For future reference to attach a spreadsheet, click on GO ADVANCED and use the paperclip icon to open the upload window.

    The paperclip icon

  6. #6
    Registered User
    Join Date
    07-07-2015
    Location
    Lisbon, Portugal
    MS-Off Ver
    365
    Posts
    4

    Re: How do I transform my table?

    Hi again,
    Glenn,
    Thank you for your help, it was great!
    I managed to make it work, but I wasn't able to figure out how to do the same with the headers (please see the attached file).

    Any ideas?
    Thank you.
    Attached Files Attached Files

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: How do I transform my table?

    OK. I missed that bit.

    Paste this into H2 and copy down...

    =OFFSET($B$1,,MOD((ROWS($1:1)-1),3),,)

  8. #8
    Registered User
    Join Date
    07-07-2015
    Location
    Lisbon, Portugal
    MS-Off Ver
    365
    Posts
    4

    Re: How do I transform my table?

    Worked.
    Thank you so much.

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: How do I transform my table?

    Glad to have helped! If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. It'd also be appreciated if you were to click the add Reputation button at the foot of any of the posts of those who helped you reach a solution.

+ 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. Transform columt to table!
    By abraha in forum Excel General
    Replies: 6
    Last Post: 12-02-2013, 07:49 AM
  2. Transform sum table
    By MartinCarlsson in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-09-2013, 10:01 AM
  3. transform table vba
    By rhai in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-30-2012, 11:25 AM
  4. Transform 1000rowsx50columns table into 2columns
    By deemo in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-16-2009, 02:12 PM
  5. Transform table
    By asante_za in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-06-2006, 05:15 PM

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