Перейти до основного матеріалу

Як vlookup повернути кілька стовпців з таблиці Excel?

На аркуші Excel ви можете застосувати функцію Vlookup для повернення відповідного значення з одного стовпця. Але іноді вам може знадобитися витягнути відповідні значення з кількох стовпців, як показано на наступному знімку екрана. Як ви могли отримати відповідні значення одночасно з декількох стовпців за допомогою функції Vlookup?

doc vlookup кілька стовпців 1

Vlookup для повернення відповідних значень із кількох стовпців із формулою масиву


Vlookup для повернення відповідних значень із кількох стовпців із формулою масиву

Тут я представив функцію Vlookup для повернення відповідних значень з декількох стовпців, будь ласка, зробіть так:

1. Виберіть комірки, куди ви хочете помістити відповідні значення з кількох стовпців, див. Знімок екрана:

doc vlookup кілька стовпців 2

2. Потім введіть цю формулу: =VLOOKUP(G2,A1:E13,{2,4,5},FALSE) у рядок формул, а потім натисніть Ctrl + Shift + Enter ключі разом, і відповідні значення з кількох стовпців були витягнуті одночасно, див. знімок екрана:

doc vlookup кілька стовпців 3

примітки: У наведеній вище формулі, G2 - це критерії, за якими ви хочете повернути значення, A1: E13 - це діапазон таблиць, з якого ви хочете переглянути, номер 2, 4, 5 - номери стовпців, з яких потрібно повернути значення.

Найкращі інструменти продуктивності офісу

🤖 Kutools AI Aide: Революціонізуйте аналіз даних на основі: Інтелектуальне виконання   |  Згенерувати код  |  Створення спеціальних формул  |  Аналізуйте дані та створюйте діаграми  |  Викликати функції Kutools...
Популярні функції: Знайдіть, виділіть або визначте дублікати   |  Видалити порожні рядки   |  Об’єднайте стовпці або клітинки без втрати даних   |   Раунд без Формули ...
Супер пошук: VLookup за кількома критеріями    Багатозначний VLookup  |   VLookup на кількох аркушах   |   Нечіткий пошук ....
Розширений розкривний список: Швидке створення випадаючого списку   |  Залежний спадний список   |  Виберіть розкривний список, що вибирається ....
Менеджер колонок: Додайте конкретну кількість стовпців  |  Перемістити стовпці  |  Перемкнути статус видимості прихованих стовпців  |  Порівняйте діапазони та стовпці ...
Особливості: Фокус сітки   |  Перегляд дизайну   |   Велика панель формул    Диспетчер робочих книг і аркушів   |  Бібліотека ресурсів (автотекст)   |  Вибір дати   |  Об’єднайте робочі аркуші   |  Шифрування/розшифрування клітинок    Надсилайте листи за списком   |  Супер фільтр   |   Спеціальний фільтр (фільтр жирний/курсив/закреслений...) ...
Топ-15 наборів інструментів12 текст Tools (додати текст, Видалити символи, ...)   |   50 + Графік типи (діаграма Ганта, ...)   |   40+ Практичний Формули (Розрахуйте вік на основі дня народження, ...)   |   19 вставка Tools (Вставте QR-код, Вставити зображення зі шляху, ...)   |   12 Перетворення Tools (Числа до слів, Валютна конверсія, ...)   |   7 Злиття та розділення Tools (Розширені комбіновані ряди, Розділені клітини, ...)   |   ... і більше

Покращуйте свої навички Excel за допомогою Kutools для Excel і відчуйте ефективність, як ніколи раніше. Kutools для Excel пропонує понад 300 додаткових функцій для підвищення продуктивності та економії часу.  Натисніть тут, щоб отримати функцію, яка вам найбільше потрібна...

Опис


Вкладка Office Передає інтерфейс із вкладками в Office і значно полегшує вашу роботу

  • Увімкніть редагування та читання на вкладках у Word, Excel, PowerPoint, Publisher, Access, Visio та Project.
  • Відкривайте та створюйте кілька документів на нових вкладках того самого вікна, а не в нових вікнах.
  • Збільшує вашу продуктивність на 50% та зменшує сотні клацань миші для вас щодня!
Comments (15)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
how can i search for multiple lookup value?for eg: these two arrays shows diff freq coumn,gain,veritcal BW,tolerance etc.I want to get an average values gain and 3db BW..how can i enter the formula
y1    1800    7.5dBi +/- 2.9    22.1° +/- 6.8        7.5
y1    1900    7.6dBi +/- 3.0    18.9° +/- 3.6        7.6
y1    2100    6.7dBi +/- 2.6    17.7° +/- 3.6        6.7
y1    AWS    7.2dBi +/- 2.8    20.4° +/- 9.4        7.2
y1    2300    8.3dBi +/- 3.6    15.8° +/- 1.6        8.3
y1    2600    7.9dBi +/- 2.4    17.1° +/- 1.7        7.9
y2    1800    6.9dBi +/- 1.4    27.1° +/- 10.8        6.9
y2    1900    6.9dBi +/- 1.5    23.0° +/- 12.5        6.9
y2    2100    7.6dBi +/- 2.3    21.7° +/- 19.6        7.6
y2    AWS    8.0dBi +/- 2.5    23.3° +/- 13.8        8
y2    2300    7.7dBi +/- 1.6    15.9° +/- 5.9        7.7
y2    2600    6.5dBi +/- 2.3    14.5° +/- 3.9        6.5
This comment was minimized by the moderator on the site
I have many rows with same value but need to get multiple value after look up, I need to get two different EO ref , how can U##TRX EO
HXPRE-MQ1371 AB0024822
HXPRE-MQ1371 AB0024822
This comment was minimized by the moderator on the site
Thank you!! The { } of the columns is what I was missing. Appreciate this page!
This comment was minimized by the moderator on the site
Thanks! Super helpful, when other online options weren't
This comment was minimized by the moderator on the site
What if you need to have multiple rows as well? Ex. find all the FF-1006-18 rows while still only bringing back column B, D, and E.
This comment was minimized by the moderator on the site
Hello, Shelly,
Maybe there is not a direct formula for helping you, but, you can apply the below array fromula to get all matching values from the entire row, and then delete or hide the unwanted column as you need.
=INDEX($A$2:$E$10, SMALL(IF($G$2=$A$2:$A$10, ROW($A$2:$A$10)-MIN(ROW($A$2:$A$10))+1, ""), ROW(B1)),COLUMN(B1))
Then press Ctrl + Shift + Enter keys to get the first cell and then drag the fill handle to right and then drga down to get all corresponding values.

Please try, hope it can help you!
This comment was minimized by the moderator on the site
Thanks! This was really Helpful!
This comment was minimized by the moderator on the site
This method does not work. Even if it did, it is not the proper method.
Example of correct method is:
VLOOKUP($A2:$A1093, '[Workbook1.xlsx]Sheet2'!$A$2:$D$111,COLUMN(G2),FALSE)

Make sure you add $ before the column letter of your lookup reference to make sure it remains static, once done, using the filler button on the selected target cell, drag right to the corresponding number of columns.
This comment was minimized by the moderator on the site
This comment is exactly what I needed
This comment was minimized by the moderator on the site
How can I do this using 2 different spread sheets?
This comment was minimized by the moderator on the site
Hello, Lana,
The above formula in this article also can help you to get the results in another worksheet, you just need to change the cell reference as follows:
=VLOOKUP(A1,Sheet1!A1:E13,{2,4,5},FALSE)
Please remember to press Ctrl + Shift + Enter keys together to get the correct results.
This comment was minimized by the moderator on the site
NOT GETTING MULTIPLE COLUMN I'M GETTING ONLY ONE COLUMN VALUE
This comment was minimized by the moderator on the site
Hi, HARI,
To apply this formula, first, you should select the multiple cells where you want to output the results, and then copy the formula into the formula bar, then press Ctrl + Shift + Enter keys together to get the results.
Please try, hope it can help you!
This comment was minimized by the moderator on the site
This is great. How do I carry this formula down if I have 10,000 rows? I've tried a few ways but of course it's changing the formula on me.
This comment was minimized by the moderator on the site
Hi, Scully,
To apply this formula to multiple rows, you just need to change the relative cell reference to absolute reference, as this: =VLOOKUP(A1,Sheet1!$A$1:$E$13,{2,4,5},FALSE).
Please try this, hope it can help you!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations