Note: The other languages of the website are Google-translated. Back to English
English English

How to vlookup and return whole / entire row of a matched value in Excel?

Normally, you can vlookup and return a matching value from a range of data by using the Vlookup function, but, have you ever tried to find and return the whole row of data based on specific criteria as following screenshot shown.

Vlookup and return whole / entire row data of a matched value with formula

Vlookup and return whole / entire row data of a matched value with array formula


Vlookup and return whole / entire row data of a matched value with formula

To get the whole row data of a matched value, please apply the following formula:

Enter this formula: =VLOOKUP($F$2,$A$1:$D$12,COLUMN(A1),FALSE) into a blank cell where you want to get the result, for instance, H1, and then drag the formula to right ( from H2 to K2), and you will get the whole row data you want. See screenshot:

Note: In the above formula, F2 is the lookup value you want to return the whole row based on, A1:D12 is the data range you want to use, A1 indicates the first column number within your data range.


Vlookup and return whole / entire row data of a matched value with array formula

Except for the above formula, here is another array formula also can help you.

1. Please select the cells where you want to output the whole row result, then enter this array formula: =VLOOKUP(F2,$A$2:$D$12,{1,2,3,4},FALSE) into the formula bar, see screenshot:

2. And then press Ctrl + Shift + Enter keys together, you will get the whole row of the matched value, see screenshot:

Note: In the above formula, F2 is the lookup value you want to return the whole row based on, A2:D12 is the data range you want to use, 1,2,3,4 is the column number that you want to return its corresponding value.


If you are interested in VLOOKUP function in Excel, Kutools for Excel's Super LOOKUP supports some powerful Vlookup formulas for you, you can quickly do the Vlookup function without remembering any formulas. Click to download Kutools for Excel!

Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days. Download and free trial Now!


The Best Office Productivity Tools

Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
Comments (26)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Amazing! Never knew that, we can use array formula for VLookup!
This comment was minimized by the moderator on the site
can you explainv how was that curly braces added { } by keyboard by using ctrl shift enter
This comment was minimized by the moderator on the site
didn't work for me...
This comment was minimized by the moderator on the site
Hello, Leigh,
What's your problem, you can insert a screenshot here to explain your problem.
Thank you!
This comment was minimized by the moderator on the site
Me either....
This comment was minimized by the moderator on the site
Thank You Boss it is great....
This comment was minimized by the moderator on the site
Is there a way to ahve this apply to a large array of data, rather than returning a single row?
This comment was minimized by the moderator on the site
Hello, Nick,
Do you mean to apply this formula to multiple cells? If you want this, just need to selecte the first row formula, and then drag the fill handle down to apply this formula.
Please try, thank you!
This comment was minimized by the moderator on the site
What if the values appears multiple times in the data set and I want them all to appear? As of right now only the first occurrence is appearing.
This comment was minimized by the moderator on the site
Hello, Whitney ,
Maybe the below array formula can help you:(Note: after pasting this formula, please press Ctrl + Shift + Enter keys together.)
=IFERROR(INDEX(A:A,SMALL(IF(ISNUMBER(SEARCH($E$2,$A$2:$A$12)),ROW($A$2:$A$12),""),ROW()-1)),"")
After pressing the Ctrl + Shift + Enter keys, then drag the fill handle right to the cells, and then drag the fill hanlde down the cells to get the results.
Please try, hopt it can help you, thank you!
This comment was minimized by the moderator on the site
Thanks Skyyang! This was helpful.
This comment was minimized by the moderator on the site
Is there a way to do vlookup to return multiple entire rows for one lookup value. If there were 4 rows with the product DDD-4 in the table, can vlookup return the entire row for all 4 results?
This comment was minimized by the moderator on the site
Hello, DaVon,
Maybe the below array formula can help you:(Note: after pasting this formula, please press Ctrl + Shift + Enter keys together.)
=IFERROR(INDEX(A:A,SMALL(IF(ISNUMBER(SEARCH($E$2,$A$2:$A$12)),ROW($A$2:$A$12),""),ROW()-1)),"")
After pressing the Ctrl + Shift + Enter keys, then drag the fill handle right to the cells, and then drag the fill hanlde down the cells to get the results.
Please try, hopt it can help you, thank you!
This comment was minimized by the moderator on the site
Is there a way to do this with two values to search up?
This comment was minimized by the moderator on the site
Is there a way to do a vlookup to return entire rows for one lookup value. If there were 4 rows with products titled DDD-4, can you do a search that will display the 4 products and the details in column 1,2,3,4?
This comment was minimized by the moderator on the site
Hello, Claude,
Maybe the below array formula can help you:(Note: after pasting this formula, please press Ctrl + Shift + Enter keys together.)
=IFERROR(INDEX(A:A,SMALL(IF(ISNUMBER(SEARCH($E$2,$A$2:$A$12)),ROW($A$2:$A$12),""),ROW()-1)),"")
After pressing the Ctrl + Shift + Enter keys, then drag the fill handle right to the cells, and then drag the fill hanlde down the cells to get the results.
Please try, hopt it can help you, thank you!
This comment was minimized by the moderator on the site
Is there a way to do this but search across multiple sheets?
This comment was minimized by the moderator on the site
So I am needing some help with Vlookup. Have a table with the following headers (group assignmen, Name, home town, gender, and comments). I am trying to input a value of the group and have it list everyone that is in the group along with the respective data such as the name, home town, gender, and comments associated with row. I am able to produce the first row but I need all the "1", "2",......."15" from the list that is sorted by group assignment not just the fist one from the list. Any help would be much appreciated
This comment was minimized by the moderator on the site
Hi,

I registered just to say thank you so much! After looking on the internet for hours this is exactly what I needed to see. Perfect explanation.

Thanks,

Jack
This comment was minimized by the moderator on the site
I've tried to replicate this table just as you had it but the formula does not work, what gives?
This comment was minimized by the moderator on the site
Also, I am unable to set up an account (tried twice and got an error twice) and cannot post a screenshot as a guest.
This comment was minimized by the moderator on the site
to get the 4 column to paste first copy the formula and select four cells and paste the formula you will get all 4
This comment was minimized by the moderator on the site
Is there a way to use the third column data to search in and still return the first two columns?
This comment was minimized by the moderator on the site
Excellent work.  I was wondering how to take this a step further and return rows that don't exactly match my criteria.  For example, I have:          a                    b                    c                    d1    2020-23          Jan                 17                  Complete2    2020-24          Jan                 17                  Complete3    2020-24a        Feb                 01                  
This comment was minimized by the moderator on the site
Is it possible to use Index/match formula to do the same thing? And if so, how?
This comment was minimized by the moderator on the site
Hello, Lin,
To solve this task with Index/match formula, please apply the below formula:
=INDEX(B2:E6,MATCH(G2,A2:A6,0),0)

After inserting the formula, please press Ctrl + Shift + Enter keys together, and then drag the fill handle to right to fill the results, see screenshot:
https://www.extendoffice.com/images/stories/comments/comment-skyyang/doc-lookup-entire-row.png

Please have a try, hope it can help you!
There are no comments posted here yet
Leave your comments
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations