+ Reply to Thread
Results 1 to 2 of 2

Loop through list of unique values to copy & transpose data

  1. #1
    Registered User
    Join Date
    01-21-2015
    Location
    California, USA
    MS-Off Ver
    2013
    Posts
    35

    Loop through list of unique values to copy & transpose data

    Hello,

    I have a rather large spreadsheet with multiple columns and multiple rows.

    What I am trying to achieve is this:

    1) Generate list of unique values. The original values are located in column Q. I can use RemoveDuplicates to generate a list of unique values.

    2) In Column Q, autofilter the column using each of the unique values (one at a time) and then copy data in column AL to transpose into another sheet (starting at B2)

    3) In the new sheet, there will be column names and row names. The row names will be the list of unique values generated from column Q, the column names will be a list of unique values generated from column D.

    I've tried looking online (vba beginner here) and this is what I've come up with so far:

    Please Login or Register  to view this content.
    The most problematic area for me is getting excel to loop through column Q for each unique value and then getting it to transpose paste into the AreaTable sheet.

    I'm definitely a beginner at VBA (but trying to learn!) so any comments/explanations accompanying code are certainly welcome.

  2. #2
    Registered User
    Join Date
    01-21-2015
    Location
    California, USA
    MS-Off Ver
    2013
    Posts
    35

    Re: Loop through list of unique values to copy & transpose data

    Somehow, someway, I managed to get it done myself. I'll post the code here for anyone who's interested but will be marking the thread as solved.

    Please Login or Register  to view this content.

+ 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. macro to copy and transpose values with loop
    By ddenicola in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-18-2013, 12:50 PM
  2. macro to insert, copy and transpose values + loop
    By ddenicola in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-18-2013, 09:31 AM
  3. [SOLVED] Compare two lists and copy unique values to the second list
    By Brumbot in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-06-2013, 07:36 AM
  4. Copy a list with unique values dynamically
    By tabfri in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 01-19-2013, 01:51 AM
  5. [SOLVED] Transpose: How can I copy a list and transpose it but leaving 3 cells in between each item
    By cocolete in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-11-2012, 10:01 AM
  6. Transpose and copy data with VBA loop!
    By curtitoo in forum Excel General
    Replies: 1
    Last Post: 07-14-2011, 01:50 PM
  7. Loop, Copy and Transpose
    By fayzter in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-14-2008, 09:19 AM
  8. Data Validation List - Unique Values from a List
    By kwsmith in forum Excel General
    Replies: 0
    Last Post: 07-17-2007, 04:56 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