+ Reply to Thread
Results 1 to 6 of 6

Looking for a way to look up a value using row name and varying columns.

  1. #1
    Registered User
    Join Date
    07-02-2013
    Location
    texas
    MS-Off Ver
    Excel 2007
    Posts
    15

    Looking for a way to look up a value using row name and varying columns.

    Hello,

    What I am trying to accomplish is to be able to pull information from a worksheet by searching for a column name, and then finding a value in that column by the name of the row. When i say "name" of the column and row, i do not mean row 1-n or columns A-Z, i would like it to search by the names i assign to my data.

    Ex.)


    Columns A1-A8, Rows B1-B8. I want to pull the value of AxBx by searching Ax and Bx independently. I attempted this with a combination of HLOOKUP, and VLOOKUP, but got confused when it came to the indexing. If this makes any sense, any help is appreciated. If further explanation is required, feel free ask.


    Thank you,
    Drew

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Looking for a way to look up a value using row name and varying columns.

    Hi,

    Can you offer a worked example in an Excel workbook? Preferably the production workbook.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    07-02-2013
    Location
    texas
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Looking for a way to look up a value using row name and varying columns.

    Test.JPG

    I cant provide the actual information but here is an example.

    What i have is a report that will always have Red, Yellow, Orange, etc. and all of their related properties. However, the columns and rows are not always in the same order. What i would like is to create a worksheet with built in formulas that can be placed in the workbook of this report that searches the work sheet for a column name, and then pulls the data from the specified row name of that column. i.e. Temperature of Red, Flow rate of Green, Pressure of Yellow, etc

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Looking for a way to look up a value using row name and varying columns.

    Try this assuming that table begins in A1

    =INDEX($B$2:$H$8,MATCH("Mass Flow",$A$2:$A$8,0),MATCH("Yellow",$B$1:$H$1,0))

    You can replace "Mass Flow" and "Yellow" with cell references like
    =INDEX($B$2:$H$8,MATCH(N2,$A$2:$A$8,0),MATCH(M1,$B$1:$H$1,0))
    N2 = Mass Flow (or whatever row value)
    M1 = Yellow (or whatever column value)

  5. #5
    Registered User
    Join Date
    07-02-2013
    Location
    texas
    MS-Off Ver
    Excel 2007
    Posts
    15

    Re: Looking for a way to look up a value using row name and varying columns.

    That Worked! Thank you Jonmo, your assistance is greatly appreciated.

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Looking for a way to look up a value using row name and varying columns.

    You're welcome

+ 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] Match to varying columns
    By Fletch74 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-04-2013, 02:01 AM
  2. Columns with varying Data categories
    By mikeill in forum Excel General
    Replies: 0
    Last Post: 08-04-2011, 04:18 PM
  3. Get data from varying columns across worksheets
    By stemcell1 in forum Excel General
    Replies: 1
    Last Post: 10-27-2010, 04:51 PM
  4. How to work with varying columns
    By jayflay in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-05-2009, 06:50 PM
  5. Total varying no of columns
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-27-2005, 04: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