+ Reply to Thread
Results 1 to 4 of 4

how to search for a value in the nth column of a table

  1. #1
    Registered User
    Join Date
    05-15-2013
    Location
    Zoetermeer, Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    2

    how to search for a value in the nth column of a table

    Hi, I'm trying to make a formula that will search for value x in column y of table z. I'm stuck at the part of refering to column y.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,503

    Re: how to search for a value in the nth column of a table

    without more information you could either use a vlookup or an hlookup. Other options also exist like index/match.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    05-15-2013
    Location
    Zoetermeer, Netherlands
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: how to search for a value in the nth column of a table

    Sorry, I did not make myself clear:

    value = 0.6
    column = 3
    requested result formulae: 2 (second row of third column of table)

    table:
    0,1 0,2 0,1
    0,3 0,5 0,6
    0,8 0,7 0,9

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,363

    Re: how to search for a value in the nth column of a table

    Try

    =INDEX(ROW($A$1:$A$3),MATCH($D$1,INDEX($A$1:$C$3,,$E$1),0))

    Table in A1:C3

    D1=Value
    E1=Column

+ 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] vlookup: search for value in SECOND column of table array and return value from FIRST
    By matt_pl in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-28-2014, 06:02 AM
  2. Search table column for 1st instance of a value
    By okmred in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-19-2013, 02:17 PM
  3. Get from Table + Search in Google + Enter to a new column
    By tahiryildiz in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-18-2012, 12:02 AM
  4. Search Table, Display Column Header
    By mattalisch in forum Excel General
    Replies: 5
    Last Post: 01-27-2011, 05:31 PM
  5. Excel 2007 : Table lookup, row defines column to search in
    By lkkpederson in forum Excel General
    Replies: 8
    Last Post: 03-20-2010, 12:26 PM
  6. Let pivot table search for last row in column
    By Turbobiker in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-29-2009, 07:46 AM
  7. [SOLVED] search value in a table and sum another column
    By a931048 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-14-2005, 12:05 AM

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