Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to vlookup and return multiple matching values at once in Google sheet?

The normal Vlookup function in Google sheet can help you to find and return the first matching value based on a given data. But, sometimes, you may need to vlookup and return all matching values as following screenshot shown. Do you have any good and easy ways to solve this task in Google sheet?

Vlookup and return all matching values horizontally in Google sheet

Vlookup and return all matching values vertically in Google sheet


Vlookup and return all matching values horizontally in Google sheet


The following formula may help you to find and return all matching values from another column, please do as this:

1. Enter this formula: =TRANSPOSE( FILTER( $B$2:$B$16 , $A$2:$A$16 = D2 ) ) into a blank cell where you want to output the result, and then press Enter key, all values based on the given data have been returned horizontally, see screenshot:

Note: In the formula: B2:B16 is the range that you want to return matching values from, A2:A16 is the column data which contains the lookup value, D2 is the value that you want to search.

2. Then select the cell formula, and drag the fill handle down to the cells you want to return their matching values, all matching values have been extracted as following screenshot shown:


Vlookup and return all matching values vertically in Google sheet

If you want to vlookup and return the matching values and display vertically, the below formula may help you.

1. Please enter this formula: =FILTER( $B$2:$B$16 , $A$2:$A$16 = E1 ) into a blank cell, and press Enter key, all the corresponding values have been extracted vertically at once, see screenshot:

Note: In the formula: B2:B16 is the column data that you want to return matching values from, A2:A16 is the column which contains the lookup value, E1 is the value that you want to search.

2. Then select the formula cell, and drag the fill handle across to the right to apply this formula, and you will get the results as you need, see screenshot:



Excel Productivity Tools

Kutools for Excel - The Best Office Productivity Tool

  • Brings 300 powerful advanced features to Excel, enable you to do smarter, faster and better.
  • No longer need memorizing formulas and VBA codes, give your brain a rest from now on.
  • Become an Excel expert in 3 minutes, Complicated and repeated operations can be done in seconds, 
  • Reduce thousands of keyboard & mouse operations every day, say goodbye to occupational diseases now.
  • 110,000 highly effective people and 300+ world-renowned companies' choice.
  • 60-day full features free trial. 60-day money back guarantees. 2 years of free upgrade and support.

Office Tab - brings tabbed interface to Office, 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!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Linox · 2 months ago
    This function is limited to 10 rows only. Is there a way to extend to indefinitely?
  • To post as a guest, your comment is unpublished.
    Edmond · 4 months ago
    Is there a way to adjust this formula to only list unique values?
  • To post as a guest, your comment is unpublished.
    Ross Ford · 11 months ago
    Worked perfectly, thank you.