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

## How to VLOOKUP and return multiple corresponding values horizontally in Excel?

In default, VLOOKUP function can return multiple corresponding values in the vertical level in Excel, in some cases, you may want to return multiple values in horizontal level as below screenshot shown. Here I will tell you a formula can solve this task.
VLOOKUP and return multiple values horizontally

#### VLOOKUP and return multiple values horizontally

For example, you have a range of data as below screenshot shown, and you want to VLOOKUP the prices of Apple.

1. Select a cell and type this formula =INDEX(\$B\$2:\$B\$9, SMALL(IF(\$A\$11=\$A\$2:\$A\$9, ROW(\$A\$2:\$A\$9)-ROW(\$A\$2)+1), COLUMN(A1))) into to it, and then press Shift + Ctrl + Enter and drag the autofill handle to right to apply this formula until #NUM! appears. See screenshot:

2. Then delete the #NUM!. See screenshot:

Tip: In the above formula, B2:B9 is the column range which you want to return the values in, A2:A9 is the column range that the lookup value is in, A11 is the lookup value, A1 is the first cell of your data range, A2 is the first cell of the column range that you lookup value is in.

If you want to return multiple values vertically, you can read this article How to lookup value return multiple corresponding values in Excel?

#### Easily Combine multiple sheets/Workbook into one Single sheet or Workbook

To combinne multiples sheets or workbooks into one sheet or workbook may be edious in Excel, but with the Combine function in Kutools for Excel, you can combine merge dozens of sheets/workbooks into one sheet or workbook, also, you can consolidate the sheets into one by several clicks only.  Click for full-featured 30 days free trial!

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

### 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.

#### 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!
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
I have a spreadsheet with 115 client names in it that I pull values on each day from one tab to another using a vlookup. Another person in the office updates the values each day by pasting new values along with the corresponding client names. Client names are pasted on the 'PVAL' tab in column A and client values are pasted in column B. On the tab named Master we run a vlookup for the client names starting in cell N6 (the matching client name is listed in cell AB6). The vlookup is =VLOOKUP(AB6,PortDescPortVal,2,FALSE) Every day we update the spreadsheet there are the same 10 client names that will not automatically update. I have to go to the PVAL tab everyday and retype the client names for those 10 and then the data will update. It works for the rest of the clients every day. Also note that the person who updates the data has tried retyping their names for me but for some reason when she retypes their names the lookup still won't work. I can't find a setting in her Excel that differs from mine. I have ensured that all of the client names are in the array. I cannot for the life of me figure out what the problem is here and why I have to retype 10 out of 115 client names each and every day for the lookup to work. HELP!
This comment was minimized by the moderator on the site
Try add columns (change to your ss range and get rid of the False argument like this; =VLOOKUP(AB6,'PortDescPortVal'!A:AA,2,)

Maybe Refresh All in Data tab
This comment was minimized by the moderator on the site
Thanks for your tips on I have a similar problem but different. Vlookup Multiple Values - Return MULTIPLE corresponding values for MULTIPLE Lookup Values The formula I have searches for words in a text strings, starting with A1, then adds categories from a large list of categories in a table on ANOTHER WORKSHEET 'Dynamic Categories Lists' , depending on the words found in the A1 string. This is formula is in B1. The amount of data is huge 19,000 text strings in row A. For examples the text string might say: A B C 1 dog has black spots Dalmation 2 dog is tall Large Dog My formula searches for "black spots" and returns " Dalmatians " to B1 My formula searches for " dog is tall" - my formula searches " tall " and return " large dogs" to B2 Formula in B1 is: =PROPER(IFERROR(LOOKUP(1E+100,SEARCH('Dynamic Categories Lists'!\$A\$1:\$A\$1000,A1),'Dynamic Categories Lists'!\$A\$1:\$A\$1000),"")) 'Dynamic Categories Lists' (DIFFERENT WORKSHEET) A B 1 Search Word to Find Categories: List Paste 2 black spots Dalmation 3 tall Large Dog 4 short Small Dog 5 -1000 MORE -1000 MORE My problem is I need to find the 2nd, 3rd, 4th occurrences Example A B C D 1 dog has black spots Dalmation 2 dog is tall Large Dog 3 4 dog has black spots and is tal Dalmation Large Dog A4 "dog has black spots and is tall" I want the formula to return "Dalmation" & "large dog" to B3 Any help would be appreciated. I have searched heaps of threads and haven’t been able to find the answer!
This comment was minimized by the moderator on the site
I have a similar problem but different. Vlookup Multiple Values - Return MULTIPLE corresponding values for MULTIPLE Lookup Values The formula I have searches for words in a text strings, starting with A1, then adds categories from a large list of categories in a table on ANOTHER WORKSHEET 'Dynamic Categories Lists' , depending on the words found in the A1 string. This is formula is in B1. The amount of data is huge 19,000 text strings in row A. For examples the text string might say: A B C 1 dog has black spots Dalmation 2 dog is tall Large Dog My formula searches for "black spots" and returns " Dalmatians " to B1 My formula searches for " dog is tall" - my formula searches " tall " and return " large dogs" to B2 Formula in B1 is: =PROPER(IFERROR(LOOKUP(1E+100,SEARCH('Dynamic Categories Lists'!\$A\$1:\$A\$1000,A1),'Dynamic Categories Lists'!\$A\$1:\$A\$1000),"")) 'Dynamic Categories Lists' (DIFFERENT WORKSHEET) A B 1 Search Word to Find Categories: List Paste 2 black spots Dalmation 3 tall Large Dog 4 short Small Dog 5 -1000 MORE -1000 MORE My problem is I need to find the 2nd, 3rd, 4th occurrences Example A B C D 1 dog has black spots Dalmation 2 dog is tall Large Dog 3 4 dog has black spots and is tal Dalmation Large Dog A4 "dog has black spots and is tall" I want the formula to return "Dalmation" & "large dog" to B3 Any help would be appreciated. I have searched heaps of threads and haven’t been able to find the answer!
This comment was minimized by the moderator on the site
Just a quick note to all, if you change it to be: =IFERROR(INDEX(\$B\$2:\$B\$9, SMALL(IF(\$A\$11=\$A\$2:\$A\$9, ROW(\$A\$2:\$A\$9)-ROW(\$A\$2)+1), COLUMN(A1))),"None") The #NUM will become none or use "" to get a blank cell! Looks much tidier!
This comment was minimized by the moderator on the site
Hello, i type the formula and excel gives an error that says that the formula does not have enough arguments, any help?
This comment was minimized by the moderator on the site
How to List all values(like list of groceries bought) caused by a specific value (by a person X) using VLOOK_UP and other possible formulas
This comment was minimized by the moderator on the site
You mean that to list all grocerise a person need to buy, right? If so, you can refer to the formula in this article, and change the arguments as you need as below screenshot shown.
This comment was minimized by the moderator on the site
Although I'm looking up my values in another worksheet (I don't think this should cause a problem?), I only seem to have success dragging to the right if I go in and change the +1 to '0' for the 1st instance of the lookup ID, '1' for the 2nd instance and so on. I know how many instances of the lookup ID I have so I can workaround. What do I need to change to allow me to successfully drag the fx across horizontally without needing to edit (i.e getting the #NUM to appear once there are no more lookup values to return).
This comment was minimized by the moderator on the site
This comment was minimized by the moderator on the site
Change Column to Row at the end of the formula

"=INDEX(\$B\$1:\$B\$206, SMALL(IF(\$A\$209=\$A\$1:\$A\$206, ROW(\$A\$1:\$A\$206)-ROW(\$A\$1)+1), ROW(A1)))"
This comment was minimized by the moderator on the site
Hi. I have three google spreadsheet. First sheet is named "Summary. It is a table containing the name of our employee and number of evaluation in a week from 1-7. The next sheet is named "Chat Score"and third sheet is named Ëmail Score". What I want to to do is when we input a evaluation score to one of our employee it will be automatically recorded on the "Summary sheet" as evaluation 1 or 2 and so on and so forth. In short I want to get multiple return value in a single seach key across multiple sheet. I hope you can help. https://docs.google.com/spreadsheets/d/1lt-e4MxddUKg5xDt_0YchBiEgGe4mFKB-dHENwwtA6Y/edit?usp=sharing

This comment was minimized by the moderator on the site
i have to find vertical value first, in vertical value there are more horizontal value and i have choose grater value which i have. which function or formula can help
This comment was minimized by the moderator on the site
what you want to put the price in order of highest qty from column c?
This comment was minimized by the moderator on the site
Bonjour,

J'ai retransposé mon problème exactement dans les mêmes positions de colonne que l'exemple et j’obtiens le message #VALEUR! dès la première case.

Mon excel fonctionne en francais, j'ai tout retranscrit en francais, passé ";"au lieu de ",", appuyé sur CTRL+MAJ+Entrée... des idées sur l'origine du problème?

Fanny
This comment was minimized by the moderator on the site
Hello - This formula worked perfectly - thank you! However, I want to apply it to a long list of lookup values. When I copy and paste the formula it obviously returns the same results as the first lookup value so I removed the \$'s from \$A\$11, but that changes the result to something incorrect. How can I quickly apply this same formula for a long list of lookup values?

Thank you!

M
This comment was minimized by the moderator on the site
Hello, I want to use keyword instead of specific text or value here for multiple return values, can you please share code formula for same.
This comment was minimized by the moderator on the site
For anyone experiencing issues in a big data range, ensure you dont have any cells existent with "#N/A" or it will break it. Simple error but can be overlooked.
This comment was minimized by the moderator on the site
This article says this uses VLOOKUP, but it uses INDEX... which does not help me. I need a solution for multiple values using VLOOKUP or XLOOKUP in tables.
There are no comments posted here yet