提示:其它语言是由 Google 机器翻译的。 你可以访问 English 版本。
登录
x
or
x
x
马上登记
x

or

如何在Excel中水平地VLOOKUP并返回多个相应的值?

DOC-VLOOKUP-水平1
默认情况下,VLOOKUP函数可以在Excel中垂直级别返回多个相应的值,在某些情况下,您可能想要返回水平级别的多个值,如下面的屏幕截图所示。 在这里我会告诉你一个公式可以解决这个任务。
VLOOKUP并水平返回多个值

轻松将多个工作表/工作簿合并到一张工作表或工作簿中

将多个工作表或工作簿合并到一个工作表或工作簿中可能在Excel中很有用,但使用 Combine 功能在Kutools for Excel中,您可以将合并几十张工作表/工作簿合并到一张工作表或工作簿中,而且,只能通过几次点击将工作表合并到一个工作表中。 点击60天免费试用!
结合床单
Kutools for Excel:拥有超过200便利的Excel加载项,可以在60天免费试用,不受限制。
Office选项卡在Office中启用选项卡式编辑和浏览,使您的工作更轻松......
Kutools for Excel - 最佳办公生产力工具将解决您的大部分Excel问题
  • 重用任何东西: 将最常用或最复杂的公式,图表和其他任何内容添加到您的收藏夹中,并在将来快速重复使用它们。
  • 超过20文本功能: 从文本字符串中提取数字; 提取或删除部分文本; 将数字和货币转换为英语单词...
  • 合并工具:多个工作簿和表格合二为一; 合并多个单元格/行/列而不丢失数据; 合并重复行和总和...
  • 拆分工具:根据价值将数据拆分为多个表格; 一个工作簿到多个Excel,PDF或CSV文件; 一列到多列......
  • 粘贴跳过 隐藏/过滤行; 数和总和 按背景颜色; 创建邮件列表和 通过Cell的价值发送电子邮件...
  • 超级过滤器: 创建高级过滤方案并应用于任何工作表; 排序 按周,日,频率等; 筛选 通过大胆,公式,评论......
  • 超过300强大的功能; 适用于Office 2007-2019和365; 支持所有语言; 在公司轻松部署; 全功能60天免费试用。

箭头蓝色右泡 VLOOKUP并水平返回多个值


例如,您有一系列数据,如下图所示,并且您想要查看Apple的价格。
DOC-VLOOKUP-水平2

1。 选择一个单元格并键入此公式 =INDEX($B$2:$B$9, SMALL(IF($A$11=$A$2:$A$9, ROW($A$2:$A$9)-ROW($A$2)+1), COLUMN(A1))) 进入它,然后按 Shift + Ctrl + Enter 然后将自动填充句柄拖至右侧以应用此公式直至 #NUM! 出现。 看截图:
DOC-VLOOKUP-水平3

2。 然后删除#NUM !. 看截图:
DOC-VLOOKUP-水平4

提示: 在上面的公式中,B2:B9是要返回值的列范围,A2:A9是查找值所在的列范围,A11是查找值,A1是数据范围的第一个单元格,A2是您查找值所在列范围的第一个单元格。

如果你想垂直返回多个值,你可以阅读这篇文章 如何查找值在Excel中返回多个相应的值?


快速转换多个XLSX。 文件到XLS或PDF。 文件在一次

在许多情况下,您可能希望在XLSX和XLS之间进行转换,或者将工作簿转换为PDF文件,但是在Excel中,只能转换一个工作簿一次,您是否曾经映像过一次转换多个工作簿? 同 Kutools for Excel's File Format Converter,您可以立即将多个工作簿快速转换为pdf / 97-2003工作簿/ 2007或更高版本的工作簿,并将其保存在一个文件夹中,同时生成一个转换后的报表! 点击60天免费试用!
doc文件转换器
Kutools for Excel:拥有超过200便利的Excel加载项,可以在60天免费试用,不受限制。


Kutools for Excel - 最佳办公生产力工具提高80%的生产力

  • 重用: 快速插入 复杂的公式,图表 以及你以前用过的任何东西; 加密单元格 密码; 创建邮件列表 并发送电子邮件...
  • 超级方程式酒吧 (轻松编辑多行文字和公式); 阅读布局 (轻松读取和编辑大量单元格); 粘贴到过滤范围...
  • 合并单元格/行/列 不丢失数据; 分裂细胞含量; 组合重复的行/列...防止重复的细胞; 比较范围...
  • 选择复制或唯一 行; 选择空行 (所有细胞都是空的); 超级查找和模糊查找 在许多工作簿中; 随机选择......
  • 精确复制 多个单元格而不更改公式参考; 自动创建参考 多张表; 插入项目符号,复选框等等......
  • 提取文本,添加文本,按位置删除, 删除空间; 创建和打印分页小计; 在单元格内容和注释之间转换...
  • 超级过滤器 (将过滤方案保存并应用到其他工作表); 高级排序 按月/周/日,频率等; 特殊过滤器 用粗体,斜体......
  • 结合工作簿和工作表; 根据键列合并表; 将数据拆分为多个表格; 批量转换xls,xlsx和PDF...
  • 超过300强大的功能。 支持Office / Excel 2007-2019和365。 支持所有语言。 在您的企业或组织中轻松部署。 全功能60天免费试用。
kte tab 201905

Office选项卡为Office提供选项卡式界面,使您的工作更轻松

  • 在Word,Excel,PowerPoint中启用选项卡式编辑和阅读,Publisher,Access,Visio和Project。
  • 在同一窗口的新选项卡中打开并创建多个文档,而不是在新窗口中。
  • 通过50%提高您的工作效率,每天为您减少数百次鼠标点击!
官方底部
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.
    pernellefpapapa · 2 months ago
    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
  • To post as a guest, your comment is unpublished.
    Frank · 5 months ago
    what you want to put the price in order of highest qty from column c?
  • To post as a guest, your comment is unpublished.
    gajanan · 5 months ago
    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
  • To post as a guest, your comment is unpublished.
    Spark Shit · 1 years ago
    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

    https://docs.google.com/spreadsheets/d/1lt-e4MxddUKg5xDt_0YchBiEgGe4mFKB-dHENwwtA6Y/edit?usp=sharing
  • To post as a guest, your comment is unpublished.
    Adam · 2 years ago
    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).
    • To post as a guest, your comment is unpublished.
      Sunny · 2 years ago
      Sorry, I have not found any solutions about your problems. If you have found that, could you tell me? Thank u.
      • To post as a guest, your comment is unpublished.
        Rankee · 1 years ago
        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)))"
  • To post as a guest, your comment is unpublished.
    Abinaya · 2 years ago
    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
    • To post as a guest, your comment is unpublished.
      Sunny · 2 years ago
      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.
  • To post as a guest, your comment is unpublished.
    Dani · 2 years ago
    Hello, i type the formula and excel gives an error that says that the formula does not have enough arguments, any help?
  • To post as a guest, your comment is unpublished.
    Rob Jones · 2 years ago
    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!
  • To post as a guest, your comment is unpublished.
    Richard G · 4 years ago
    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!
  • To post as a guest, your comment is unpublished.
    Richard G · 4 years ago
    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!
  • To post as a guest, your comment is unpublished.
    Summer · 4 years ago
    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!
    • To post as a guest, your comment is unpublished.
      guest · 1 years ago
      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