How to return multiple columns with VLOOKUP in Google Sheets?

Have you ever wanted to return multiple columns with VLOOKUP?

For example, maybe you want to return several values that match a search term so that you can use a range of data as an input for another formula (e.g. a sparkline).

Return multiple values with single vlookup formula in Google Sheets

Of course, you could set up multiple vlookup formulas, but this wouldn’t work if you want to pass the data range into another formula, like the sparkline for example.

However, you can easily achieve it with just one formula.

How do we return multiple columns with VLOOKUP?

We use curly brackets {} to indicate which columns we want to return and then convert the whole formula into an ArrayFormula to tell Google Sheets we’re working with a range output, not a single value.

What’s the formula to return multiple columns with VLOOKUP?

Assuming I have a data table in range A1:G9 and my search value in A14, as shown in the image above, then the lookup formula is as follows:


Can I see an example worksheet?

Yes, here you go.

How does this formula work?

Imagine this is your raw data table and you want to search for an ID and return values from multiple columns:

raw data for return multiple columns with vlookup example

Essentially, we perform a regular VLOOKUP but in place of single column index, we put an array of columns we want to return, surrounded by curly brackets, like so:


which returns the 2nd, 3rd, 6th and 7th columns.

Then we must press Ctrl + Shift + Enter (on PC) or Cmd + Shift + Enter (on Mac) once we’ve entered the VLOOKUP to turn it into an array formula. (You can also just type in the ArrayFormula word.)

So we go from this formula:


which will not work, to this one:


which does work and will output an array (i.e. multiple values). It’s important that the output cells (4 in this case) are all empty for the formula to work.

This is what’s happening:

return multiple columns with vlookup formula in Google Sheets

We search for a single search term and return values from four columns which are output into for adjacent cells. You can select whichever columns you wish as well as changing the order.

23 thoughts on “How to return multiple columns with VLOOKUP in Google Sheets?”

  1. Hi Ben,

    Will this formula work if I am trying to merge information from 2 sheets? I received the error #NAME? when I used the formula:
    =arrayformula(VLOOKUP(NAR!J2, DecisionManagerDetailReport!M:FH,{2,3,4},FALSE))

    NAR & DecisionManagerDetailReport being the names of the 2 sheets I’m trying to merge.

    I have all of a customer’s credit card details in one spreadsheet and all of our internal account information in a separate sheet. Both sheets contain their email address I can use for reference. Trying to see if I can find any payment trends in fraudulent accounts we receive.

    Thank you!
    Tiffany M.

  2. So essentially, if an email in the NAR sheet matches one listed in Decision Manager Detail Report, I want it to return the payment details listed within the Decision Manager Detail report to the NAR sheet.

    1. Hey Tiffany,

      Yes, you can do this, you just need to get your references set up. Not sure why it’s not working for you, but here’s a quick example using the same sheet names so you can see how it works:

      Note, you must have these two sheets in the same file. If they’re in different files, then this won’t work and you’ll need to use the IMPORTRANGE() formula first to bring data from one sheet file into the other.

      Hope that helps.


  3. How do you format the same Vlookup function only list the results in different rows, listing down not across ? Thanks in advance. Sue

    1. Hi Sue,

      You can add the TRANSPOSE function into the mix to change the listing from across to down. The formula is now:


      I’ve added this to the template Google Sheet.


  4. Is there a way to return different values in a single column from multiple rows the match the first VLOOKUP term? Thanks!

  5. Hi Ben,
    Can you tell me how to return multiple text values in the same cell (separated by commas ideally), but from different columns in different sheets?

    1. Different Google Sheets? You’ll need to use the IMPORTRANGE formula to get the data you need from other sheets. It’ll be a pretty clunky formula! Something like this maybe:

      =IMPORTRANGE(spreadsheet_key1, "sheet1!A1") & "," & IMPORTRANGE(spreadsheet_key2, "sheet1!B1") & "," & IMPORTRANGE(spreadsheet_key3, "sheet1!C1")

      If you need to do more complex lookups on the data, then you probably want to use IMPORTRANGE to bring all your different Google Sheets data into a single tab and then do analysis/lookups on that.

      Hope that helps!


      Hope that helps!


  6. Hi Ben,
    Thank you for your vlookup tips. I was wondering how would you retrieve multiple vlookup values listed across over 100 Google sheets contained within a workbook.

    In MS excel, I accomplish this easily by searching all sheets via a sheet which lists all the sheets to be searched.

    So what I am trying to achieve is – the vlookup should look across all the sheets in the workbook and retrieve the associated column values, like in your example.

    Ideally I do not have to name all the sheets to be searched, because 1) there are way too many 2) there will be more added with time.

    If my poor explanation above does not make sense, I can paste a googlesheets link.

    Many thanks for your time.

    1. Hey Shirish,

      Have you tried your Excel solution in Google Sheets? Usually what works in one, works in the other, so I’d try it first and see if it works in Sheets for you.


  7. Thank you Ben for taking the time.
    In Excel I create a new worksheet which contains the names of all the worksheets that need to be searched. Name the range of the names of the worksheets.

    I use the following formula to search all the sheets which are contained in the list.


    The process I use in excel is not available in Google sheets unfortunately.

    Now I am using a painful workaround which involves merging all the sheets’ data into one sheet using the following formula and then doing a vlookup on the single consolidated sheet.

    =QUERY({Sound!A2:L;Light!A2:L;’Some Natural Phenomena’!A2:L;Adolescence!A2:L}, “select * where Col2 is not null”,0)

    Leads me to a question, is there any way of consolidating data on all sheets, without having to name them individually as I have had to in the formula above? Else I guess it will involve a days work just to get the data entry done correctly!

    In any case, many thanks for your time and I will recommend your courses to my colleagues and friends who struggle in one way or other with spreadsheets.

    1. Hey Shirish,

      You could use named ranges, otherwise I think you’ll still have to reference your sheets by name. In Excel you still have a sheet with a list of all the sheet names right? So it’s the same in sheets, if you can create that list of sheet names and ranges, then you can easily reference that in your formulas, using something like this (essentially what you have with sort instead of query):


      where D1, D2, etc. are a list of our sheets and ranges e.g. Sheet1!A2:B, Sheet2!A2:B, Sheet3!A2:B

      You could also replace the indirect() with named ranges.

      If you can, you could set your sheets names/ranges so that they just increment, then you can build the list of them with a formula too, e.g. ="Sheet"&row()&"!A2:B"

      Hope that helps!


  8. Ben, I’m getting all-but-perfect results with this formula:

    The 5,6,7,8, etc. each represent the 1st, 2nd,3rd…31st days of the month. (The 1st day of the month the header 5, the last day of the month, the header 41 on the lookup sheet/table.)

    The formula works perfectly except it consistently does not return the values of the last two days of the month, i.e., the 30th (30) and the 31st (31 in the sequence).

    Is there a max. number of values that can be returned using this formula in Google sheets, or have I just missed something?
    Thank you very much!

  9. Hi Ben,

    thanks for all that usefull tips. How do I need to adjust the formular if I want to have multiple results? So not only one row is returned, but when I drag down the formular, it should continue with the next match if I am for example looking for a value which is often in the spreadsheet.

  10. Dear Ben,
    Great post. it has helped me a lot.
    I’ll just like to add that in the search key instead of single cell a column can also be given and output will be an array having that many rows.
    To make it more clear
    Can also be written as

    And it will give all the results for row 14-20.
    That saves tons of work at many a times.

  11. Hello Ben,
    Thanks for this tip! It’s great.
    A question. I’m trying to vlookup from bottom up, that is, I want to match not the first match, as vlookup does, but the last one.
    I find it working perfectly with this formula: =Index(A:B, Max(Filter(Row(A:A), A:A=D2)),2), equivalent of =Vlookup(D2,A:B,2,false). However, when trying to do your trick of this article, =Index(A:B, Max(Filter(Row(A:A), A:A=D2)),{2,3}) gives me only the value for index 2, not for both 2 and 3.
    And then, trying to array vertically too (not only horizontally as your article here teaches), =ArrayFormula(Index(A:B, Max(Filter(Row(A:A), A:A=D2:D)),2)) doesn’t give me any result.
    Any thought or idea how I could achieve what I’m trying to do (vlookup with last match)?

    1. Hey Cédric,

      Good question and, as far as I can tell, there doesn’t appear to be a way to use this trick inside of the INDEX function.

      You could try using a QUERY function to select only the columns you want after the INDEX returns them, e.g. like this (my range was columns A to G, and search term in cell I2, and I wanted data from B, C, F and G back):

      =query(Index(A:G, Max(Filter(Row(A:A), A:A=I2))),"select B,C,F,G")

      Not sure if this would have a performance impact though, if you have thousands of formulas, so worth keeping that in mind…


  12. So can I use vlookup to look up a text value in column A and if it matches to concatenate and populate an adjecent cell with the values from cells within the same column?

    Also the first

Leave a Reply

Your email address will not be published. Required fields are marked *