+ Reply to Thread
Results 1 to 4 of 4

Find Row in Table based on Column Header

  1. #1
    Registered User
    Join Date
    07-16-2014
    Location
    Maine
    MS-Off Ver
    8
    Posts
    12

    Find Row in Table based on Column Header

    I have a Table1 and I would like to find the row #s that correspond to a specific value (ListBox2 values) using a column header (ComboBox1 value).

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Find Row in Table based on Column Header

    It will be much easier to provide specific solutions if you attach a sample workbook, so we can see your data structure.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Registered User
    Join Date
    07-16-2014
    Location
    Maine
    MS-Off Ver
    8
    Posts
    12

    Re: Find Row in Table based on Column Header

    Thanks for the reply.

    If you run the macro, a userform will pop up. The combobox value is selected by the user. The listbox will be already populated in the original workbook.

    I want to search for the header in the table that corresponds to the combobox value and find the row for the first value in the listbox.

    Ultimately, what I need to do is find the first and last rows in the column for all the items in the listbox. But, if I know how to do the first task, I can figure out the rest.

    So, in this example, say Merchant Group is selected, I want to find the first row (and eventually last row) with that first item in the listbox (Automotive).
    Attached Files Attached Files
    Last edited by thisguy4000; 07-18-2014 at 11:27 AM.

  4. #4
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Find Row in Table based on Column Header

    Okay - try this:
    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. [SOLVED] Based on Column Header find and copy data from one sheet to another
    By Sachy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-31-2014, 10:00 AM
  2. Look up row header based on column and table answer
    By jherbert81 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-14-2014, 05:58 PM
  3. Find Column Number Based on Column Header
    By chicagoland8 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-09-2014, 11:58 AM
  4. [SOLVED] Find specific value in table and return header row and header column value
    By nelwan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-30-2013, 01:35 AM
  5. [SOLVED] Create Dynamic Column Lookup Reference based on Table Header
    By jeversf in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-22-2013, 12:49 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