跳到主要内容

如何在Excel中相邻或下一个单元格中的vlookup返回值?

我们如何查找一个值,但要在相邻或下一个单元格中查找该值? 在本文中,我们将指导您如何在Excel中相邻或下一个单元格中查找值并返回值。

在Excel中具有公式的相邻单元格中的Vlookup返回值
使用 Kutools for Excel 轻松查找相邻单元格中的返回值
Vlookup在Excel中的下一个单元格中返回值


在Excel中相邻单元格中的Vlookup返回值

例如,您有两列,如以下屏幕截图所示。 要在A列中查找最大权重并返回B列的相邻像元值,请执行以下操作。

1.选择一个空白单元格(这里我选择单元格C3),在其中输入以下公式,然后按 输入 键。 

=VLOOKUP(MAX(A2:A11), A2:B11, 2, FALSE)

然后,在所选单元格中填充列A中权重最大的相邻单元格值。

此外,您可以基于单元格引用vlookup并获取相邻的单元格值。

例如,引用的单元格是C2,它定位值365,以便对该值进行vlookup并在相邻单元格中返回该值。 您只需要将上面的公式更改为下面的内容,然后按 输入 键。 看截图:

=VLOOKUP(C2, A2:B11, 2, FALSE)

此索引功能也可以使用: = INDEX($ B $ 1:$ B $ 7,SMALL(IF(ISNUMBER(SEARCH($ C $ 2,$ A $ 1:$ A $ 7)),MATCH(ROW($ A $ 1:$ A $ 7),ROW($ A $ 1:$ A $ 7))),ROW(A1))) + 按Ctrl + 转移 + 输入.


Vlookup在Excel中的下一个单元格中返回值

除了在相邻单元格中返回值外,您还可以在Excel中vlookup并在相邻单元格的下一个单元格中返回值。 看截图:

1.选择一个空白单元格,在其中输入以下公式,然后按 输入 键。 

=INDEX(B2:B7,MATCH(680,A2:A7,0)+1)

然后,您可以看到下一个单元格中的值已填充到所选单元格中。

备注:公式中的680是本例中vlookup的值,您可以根据需要更改它。


使用 Kutools for Excel 轻松查找相邻单元格中的返回值

随着 在列表中查找值 实用程序 Kutools for Excel,您可以在不使用公式的情况下vlookup并在相邻单元格中返回值。

申请前 Kutools for Excel首先下载并安装.

1.选择一个空白单元格以查找相邻的单元格值。 然后点击 库工具 > 公式助手 > 公式助手.

3.在 公式助手 对话框,请进行如下配置:

  • 3.1在 选择一个公式 框,找到并选择 在列表中查找值;
    Tips:您可以检查 筛选器 框,在文本框中输入特定单词以快速过滤公式。
  • 3.2在 表格数组 框, 选择范围包含vlookup值和您将返回的相邻值(在这种情况下,我们选择范围A2:C10);
  • 3.2在 查找值 框, 选择您要基于其返回值的单元格(在这种情况下,我们选择单元格E2);
  • 3.3在 框,指定您要从中返回匹配值的列。 或者,您可以根据需要直接在文本框中输入列号。
  • 3.4点击 OK 按钮。 看截图:

然后,您将获得单元格A8的相邻单元格值。

  如果您想免费试用(30天)此实用程序, 请点击下载,然后按照上述步骤进行操作。


使用 Kutools for Excel 轻松查找相邻单元格中的返回值

最佳办公生产力工具

🤖 Kutools 人工智能助手:基于以下内容彻底改变数据分析: 智能执行   |  生成代码  |  创建自定义公式  |  分析数据并生成图表  |  调用 Kutools 函数...
热门特色: 查找、突出显示或识别重复项   |  删除空白行   |  合并列或单元格而不丢失数据   |   不使用公式进行四舍五入 ...
超级查询: 多条件VLookup    多值VLookup  |   跨多个工作表的 VLookup   |   模糊查询 ....
高级下拉列表: 快速创建下拉列表   |  依赖下拉列表   |  多选下拉列表 ....
列管理器: 添加特定数量的列  |  移动列  |  切换隐藏列的可见性状态  |  比较范围和列 ...
特色功能: 网格焦点   |  设计图   |   大方程式酒吧    工作簿和工作表管理器   |  资源库 (自动文本)   |  日期选择器   |  合并工作表   |  加密/解密单元格    按列表发送电子邮件   |  超级筛选   |   特殊过滤器 (过滤粗体/斜体/删除线...)...
前 15 个工具集12 文本 工具 (添加文本, 删除字符,...)   |   50+ 图表 类型 (甘特图,...)   |   40+ 实用 公式 (根据生日计算年龄,...)   |   19 插入 工具 (插入二维码, 从路径插入图片,...)   |   12 转化 工具 (小写金额转大写, 货币兑换,...)   |   7 合并与拆分 工具 (高级组合行, 分裂细胞,...)   |   ... 和更多

使用 Kutools for Excel 增强您的 Excel 技能,体验前所未有的效率。 Kutools for Excel 提供了 300 多种高级功能来提高生产力并节省时间。  单击此处获取您最需要的功能...

产品描述


Office Tab 为 Office 带来选项卡式界面,让您的工作更加轻松

  • 在Word,Excel,PowerPoint中启用选项卡式编辑和阅读,发布者,Access,Visio和Project。
  • 在同一窗口的新选项卡中而不是在新窗口中打开并创建多个文档。
  • 每天将您的工作效率提高50%,并减少数百次鼠标单击!
Comments (7)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Hi,

Can anyone help me with the below please?
Currently, the formula I created picks up the second value next to the highest value in the first cell (4 and 2) but I need to amend it so it pick up the highest one with 2nd highest value (so it should ick up 4 and 3)

I L
4 2
4 3
2 3
3 3

thank you
This comment was minimized by the moderator on the site
Hi Zu,
Sorry I don't quite understand your question. Can you explain it more clearly?
This comment was minimized by the moderator on the site
Pants video because nowhere do you write the full formula for us to see. When I pause the screen covers with suggested videos. Whomever made this video has never actually taught. SHAME ON YOU
This comment was minimized by the moderator on the site
VLOOKUP(E2,A2:C10,COLUMN(B2:B10)-COLUMN(A2:C10)+1,1)
This comment was minimized by the moderator on the site
Hi,The video in this post only displays the usage of Kutools. At the end of the video, you can see there is a formula created, which is provided by Kutools. If you have installed Kutools, apply the corresponding feature will create the formula automatically to get the result. Or you can directly apply the formulas provided in the post to deal with the problem.
This comment was minimized by the moderator on the site
How can you add if there are multiple items on the list
This comment was minimized by the moderator on the site
Hi Niel,
The method in this article can do you a favor https://www.extendoffice.com/documents/excel/2623-excel-vlookup-return-multiple-values-horizontally.html.
Thank you for your comment.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations