+ Reply to Thread
Results 1 to 6 of 6

Referencing a column by column title

  1. #1
    Registered User
    Join Date
    06-19-2015
    Location
    Wisconsin
    MS-Off Ver
    2013
    Posts
    3

    Referencing a column by column title

    Hello! I'm new to excel so bare with me.

    I am trying to find a way to reference to a list of names on one sheet, and then have a column of data taken from underneath those names on another sheet. So, I have a sheet I'm making that references to two other sheets. Sheet 1 has a list of titles, let's say: A, E, F, Q and R. Sheet 2 has a bunch of columns full of numbers headed by these titles (not just these titles though, all of the titles: A, B, C, D.....). I want the sheet I'm making to know which titles are on Sheet 1, and then pull the corresponding columns from Sheet 2 that match those titles, sort of like creating a new Sheet 2 that discards anything not listed on Sheet 1. I've been trying to figure out a way to do this but am falling short. Any pointers would be helpful.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,412

    Re: Referencing a column by column title

    You should be able to use INDEX(range,MATCH(row),MATCH(column)) to do this. If you need more help then it would be useful to attach a sample workbook which can describe your problem more fully.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    06-19-2015
    Location
    Wisconsin
    MS-Off Ver
    2013
    Posts
    3

    Re: Referencing a column by column title

    I know about index but I'm not sure how to use it in my case, where I don't want to enter it manually every time for each title. Here is an example excel (not sure if you can upload it directly). I want to reference to the titles in Sheet1 and have the columns in Sheet2 with those titles displayed in Sheet3.
    Last edited by Kavorka; 06-20-2015 at 03:04 AM.

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Referencing a column by column title

    @Kavarko

    Please add the file on the forum (in the future) instead an extern link.

    b2=INDEX(Sheet2!$A$1:$AD$30,column(),match(Sheet1!$A1,Sheet2!$A$1:$AD$1,0)) and drag across.

    See the attached file
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  5. #5
    Registered User
    Join Date
    06-19-2015
    Location
    Wisconsin
    MS-Off Ver
    2013
    Posts
    3

    Re: Referencing a column by column title

    Thanks a lot! I was able to alter this for use in my workbook. I was just wondering, what does row_num being COLUMN() signify? I had to change it to ROW() so tha the referenced columns would list in a column instead of a row, but I'm still not sure why exactly.

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Referencing a column by column title

    The COLUMN() in a place that is for ROWS counts the columns going across like the supplied example does but counts down the rows because as the column number increases, this is actually in the ROWS part of the formula so the count is going down the rows as the formula is filled across columns.

    Clear as mud I know
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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. Make unique Title in Column F if Column A match [VBA]
    By paul_j_ in forum Excel General
    Replies: 8
    Last Post: 06-09-2015, 04:29 AM
  2. Adding ROW using 1 column as reference and another column for naming - BAD title
    By dbondmelo in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-21-2013, 12:05 PM
  3. Return the Title of a column if the column is the highest column with data
    By williamspage in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 08-22-2013, 10:05 AM
  4. If Vlookup referencing column title :)
    By AllisonD in forum Excel General
    Replies: 1
    Last Post: 03-19-2012, 03:31 PM
  5. Replies: 2
    Last Post: 07-21-2006, 05:10 AM

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