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

or

如何查找一个值,并在Excel中返回上面或下面的单元格?

在Excel中,我们使用VLOOKUP函数从范围数据中查找特定值,但是您知道如何查找值并返回其上面或下面的值吗? 实际上,你可以使用INDEX函数来处理它。

查找一个值并返回上面或下面的单元格

Office选项卡在Office中启用选项卡式编辑和浏览,使您的工作更轻松......
Kutools for Excel解决了您的大多数问题,并使您的生产率提高了80%
  • 重用任何东西: 将最常用或最复杂的公式,图表和其他任何内容添加到您的收藏夹中,并在将来快速重复使用它们。
  • 超过20文本功能: 从文本字符串中提取数字; 提取或删除部分文本; 将数字和货币转换为英语单词...
  • 合并工具:多个工作簿和表格合二为一; 合并多个单元格/行/列而不丢失数据; 合并重复行和总和...
  • 拆分工具:根据价值将数据拆分为多个表格; 一个工作簿到多个Excel,PDF或CSV文件; 一列到多列......
  • 粘贴跳过 隐藏/过滤行; 数和总和 按背景颜色; 创建邮件列表和 通过Cell的价值发送电子邮件...
  • 超级过滤器: 创建高级过滤方案并应用于任何工作表; 排序 按周,日,频率等; 筛选 通过大胆,公式,评论......
  • 超过300强大的功能; 与Office 2007-2019和365一起使用; 支持所有语言; 在您的企业或组织中轻松部署。

箭头蓝色右泡 查找一个值并返回上面或下面的单元格


查找一个值并返回上面的单元格

选择要放置返回值的空白单元格,然后键入此公式 =INDEX(A1:A8,MATCH(D1,A1:A8,0)-1,1), 按 输入 键返回值。 看截图:
doc看1上方的返回单元格

查找下面的值并返回单元格

选择要放置返回值的空白单元格,然后键入此公式 =INDEX(A1:A8,MATCH(D1,A1:A8,0)+1,1), 按 输入 关键是要得到结果。 看截图:
doc看2上方的返回单元格

注意:在公式中,第一个A1:A8是查找值的范围,第二个A1:A8是您想要查找条件的范围,D1是您查找的值,1指示要返回的列号。

如果你想查找一个值并返回下面,并且3单元格在引用的右边,你可以应用这个公式 =INDEX(F1:H8,MATCH(K1,F1:F8,0)+1,3).
doc看3上方的返回单元格

提示。如果您想快速查找某个值并返回到另一列,请尝试使用Kutools for Excel 在列表中寻找一个值 如以下屏幕截图所示。 它在60天没有限制的全功能, 请立即下载并免费试用。

doc看4上方的返回单元格


Kutools for Excel解决了您的大多数问题,并使您的生产率提高了80%

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

    =INDEX('Thur 9.5:Tues 12.31'!,MATCH('Hot Containers'!A5,'Thur 9.5:Tues 12.31'!,0)-1,1)
  • To post as a guest, your comment is unpublished.
    Ginny · 4 months ago
    Hello,

    How can I use this formula to match data in cell A3 in columns A to H and rows 1 to 9 and return the value in the row below. I have tried this formula =INDEX(Sheet1!a1:h9,MATCH(A3,Sheet1!a1:h9,0)+1,1) but it didn't work. Oh yeas and its data from another sheet.

    Any help would be greatly appreciate.
    • To post as a guest, your comment is unpublished.
      Sunny · 2 months ago
      Hi, you need to change =INDEX(Sheet1!a1:h9,MATCH(A3,Sheet1!a1:h9,0)+1,1) to =INDEX(Sheet1!a1:h9,MATCH(A3,Sheet1!a1:a9,0)+1,1), or you can use this formula =INDEX(A1:A9,MATCH(A3,A1:A9,0)+1,1)
  • To post as a guest, your comment is unpublished.
    Jeyner Lopez · 5 months ago
    Hi, how to know how many times a value occur after certain value, example I have a list of numbers, I try to know how many time number 2 is after 1 and so on
  • To post as a guest, your comment is unpublished.
    ryan · 6 months ago
    I have a piece of text in cell A2 in spreadsheet A. In spreadsheet B I have the same text in cell A4 and in cell C4 I wish to use a formula that will return the value of cell B4 from spreadsheet A. Is this possible?
  • To post as a guest, your comment is unpublished.
    ryan · 6 months ago
    I have a piece of text in cell A2 in spreadsheet A. In spreadsheet B I have the same text in cell A4 and in cell C4 I wish to use a formula that will return the value of cell B4 from spreadsheet A. Is this possible?
  • To post as a guest, your comment is unpublished.
    Jim · 11 months ago
    I need this formula, but with multiple columns
    • To post as a guest, your comment is unpublished.
      Sunny · 10 months ago
      What's you need? You can describ your quetion with more details so that we can help you.
  • To post as a guest, your comment is unpublished.
    Mike · 1 years ago
    Lets say my names run across row 1 and the values directly below in row 2. How do I look it up then? This formula doesn't seem to work when the data is horizontal.
    • To post as a guest, your comment is unpublished.
      simon · 1 years ago
      I looked around quite a bit and found this:

      =INDEX(A1:Z1,MATCH(D3,A10:Z10,0))

      D3 is your lookup value; row 10 has the values you are searching; row 1 has the values you will return where there's a match in the relevant column in row 10 with D3
  • To post as a guest, your comment is unpublished.
    Robin · 1 years ago
    Hello! I have an interesting question. Let’s say that i have a letter(”S” for example) on every row but in different places. So on the second row the letter ”S” can be found in cell X2 and on the third row the letter ”S” can be found in cell F3. At the top of the table (the first row) you have dates, ranging horizontilly. What function should I use in ordern to find the letter ”S” on each row, and then retreive the date that is located x amount of steps above it? How do you search horizontelly for a letter, and when you find that specific letter, go up to row 1 to retreive its date? I hope I explained this in a clear manner :)
  • To post as a guest, your comment is unpublished.
    Jon Chapman · 2 years ago
    This is a great formula. Can it be wrapped in to a COUNTIF formula, so instead of returning the looked-up value, it counts how many times the result was found? EG: how many times 'Jack' was returned