+ Reply to Thread
Results 1 to 3 of 3

Dynamically extract unique records to a horizontal column header w/offset or index formula

  1. #1
    Registered User
    Join Date
    07-12-2009
    Location
    Virginia Beach,
    MS-Off Ver
    Excel 2007
    Posts
    2

    Dynamically extract unique records to a horizontal column header w/offset or index formula

    Hi,

    I am basically trying to transpose a list, to be column headers. I would like it to be dynamic, so the list can expand and contract which would allow for a expanding and contracting column header in another table. I have been thinking of the offset function with counta, but it also has to be able to deal with duplicates. The result should be a header column with unigue names based on the list of (a1:a(whatever with duplicates)).
    Resulting Column headers would be (b1:b(whatever without duplicates)).

    Thanks
    Davis
    Last edited by DRogersJr.; 08-06-2012 at 05:04 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    10-17-2010
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013, 2016, 2019, 365
    Posts
    294

    Re: Dynamically extract unique records to a horizontal column header w/offset or index for

    Try this. The column on the left of the data creates an index value for each unique entry - we then just use a VLOOKUP to extract each value as a column title on the next sheet.
    Attached Files Attached Files
    Kind Regards,

    Out of the Hat

    "Computers are stupid - they do EXACTLY what you tell them to"

    If I've helped you with a problem, please say thanks by clicking the small star icon on the left.

  3. #3
    Registered User
    Join Date
    07-12-2009
    Location
    Virginia Beach,
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Dynamically extract unique records to a horizontal column header w/offset or index for

    Nice solution, I did not want to create a index for the idea to work though.

    For now,
    =OFFSET(Sheet2!G1,0,0,COUNTA(Sheet2!G:G),COUNTA(Sheet2!1:1)) is going to work fine.
    It does not solve the duplicates issue though, however, for what I need it for I should not have any dupicates, and if I did, I would want them included in the the list.

    Thanks for your feedback.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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