+ Reply to Thread
Results 1 to 9 of 9

Create Headers and list values

  1. #1
    Registered User
    Join Date
    11-29-2012
    Location
    ystfast
    MS-Off Ver
    Excel 2010
    Posts
    52

    Create Headers and list values

    I have attached a file of an example of something I trying to do. Been so long since I have used VBA I have been getting nowhere. Basically I have a column with headers, I want to pull one instance of the header then the corresponding rows in col A and B where col C is the same header. Any help would be greatly appreciated.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,588

    Re: Create Headers and list values

    Delete 1st row then run the code.
    Please Login or Register  to view this content.

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,588

    Re: Create Headers and list values

    If that takes care of your original question, select Thread Tools from the menu link above and mark this thread as SOLVED.

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Create Headers and list values

    Hi Jay,

    You can get your result without using VBA. A Pivot Table can do what you want. See the attached.
    NameTest Pivot Table.xlsx
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  5. #5
    Registered User
    Join Date
    11-29-2012
    Location
    ystfast
    MS-Off Ver
    Excel 2010
    Posts
    52

    Re: Create Headers and list values

    No a pivot table is not desired here. The example I gave is pretty basic, the end product will have further calcs and what not. The sort was just for setting up the larger need.

  6. #6
    Registered User
    Join Date
    11-29-2012
    Location
    ystfast
    MS-Off Ver
    Excel 2010
    Posts
    52

    Re: Create Headers and list values

    Is there a limitation to the amount of columns I can have in 'x'? When I add more I get a type mismatch error.

  7. #7
    Registered User
    Join Date
    11-29-2012
    Location
    ystfast
    MS-Off Ver
    Excel 2010
    Posts
    52

    Re: Create Headers and list values

    here is a new file with how it actually looks and what I want to do. In the live data there seems to be something blocking while I get something close in the TEST file. Sheet1 is the macro output, desired is what i want to do.
    Attached Files Attached Files

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,588

    Re: Create Headers and list values

    Now you are asking completely different question.
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    11-29-2012
    Location
    ystfast
    MS-Off Ver
    Excel 2010
    Posts
    52

    Re: Create Headers and list values

    Sorry, there was an unknown extra. Appreciate the perfect the 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. Create a dynamic list with sub-headers
    By ericthomson in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-12-2017, 08:38 PM
  2. Replies: 3
    Last Post: 08-10-2015, 09:58 AM
  3. Dynamically create headers in Excelsheet using Access table values
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-08-2014, 07:11 AM
  4. Replies: 0
    Last Post: 09-11-2013, 09:54 AM
  5. Replies: 2
    Last Post: 05-09-2012, 01:30 PM
  6. [SOLVED] Count unique values and create list based on these values
    By vipa2000 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 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