+ Reply to Thread
Results 1 to 5 of 5

Lookup a value in an array and return the whole row. Not just one cell.

  1. #1
    Registered User
    Join Date
    06-06-2010
    Location
    Hong Kong
    MS-Off Ver
    2016 for Mac
    Posts
    28

    Lookup a value in an array and return the whole row. Not just one cell.

    Hi,

    I want to lookup the value A2 in column C (see attached file), when it finds that value I want to return the whole row and not just one cell.
    If it was one cell only, it's easy to achieve with VLOOKUP or INDEX/MATCH but I want the entire row as already mentioned above.

    Thanks in advance for having a look at this !!!
    Attached Files Attached Files

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Lookup a value in an array and return the whole row. Not just one cell.

    Use this in C18 and extend to the right:

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-13-2016
    Location
    Glasgow, Scotland
    MS-Off Ver
    2016
    Posts
    1

    Re: Lookup a value in an array and return the whole row. Not just one cell.

    Could you maybe just fill the vlookup formula to the right and change the column value?

    =VLOOKUP($A2,$C$3:$G$10,1,FALSE)

    In the first cell

    =VLOOKUP($A2,$C$3:$G$10,2,FALSE)

    In the second, and so on.

  4. #4
    Registered User
    Join Date
    06-06-2010
    Location
    Hong Kong
    MS-Off Ver
    2016 for Mac
    Posts
    28

    Re: Lookup a value in an array and return the whole row. Not just one cell.

    Hi Kingdomcome82 and zbor,

    Both are working fine. Thank you for the quick response. Much appreciated !!!!

    Have a good one.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Lookup a value in an array and return the whole row. Not just one cell.

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


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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. Replies: 4
    Last Post: 05-19-2015, 08:42 PM
  2. Using a LOOKUP with duplicate values - return in an array in one cell
    By mattdh12 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-20-2014, 01:07 PM
  3. LOOKUP TABLE -blank cell in the table array to return a figure
    By jonnops in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-28-2014, 09:08 AM
  4. [SOLVED] Lookup a value in one array, and return a corresponding column/row in another array
    By Gunther Maplethorpe in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-15-2012, 08:47 PM
  5. Using Vlookup to lookup array, return array
    By jcampbell in forum Excel General
    Replies: 5
    Last Post: 11-16-2007, 01:13 PM
  6. Lookup to return an array
    By evanbb in forum Excel General
    Replies: 3
    Last Post: 10-30-2006, 10:43 PM
  7. VLOOKUP CONDITION TO RETURN BLANK CELL WHERE LOOKUP VALUE IS NOT IN TABLE ARRAY
    By Scott Lolmaugh in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-09-2006, 07:10 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