如何在vlookup函数中使搜索范围动态化 [英] How to make the search range dynamic in a vlookup function

查看:100
本文介绍了如何在vlookup函数中使搜索范围动态化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过将表格名称的一部分替换为单元格中的值,使vlookup函数在动态"之下.

I'm trying to make the vlookup function below 'dynamic' by substituting a portion of the sheet name with the value in a cell.

当前的vlookup功能

=VLOOKUP($B$4,studentA!A2:D,2)

所需的vlookup函数使用单元格 C4 中的值来识别学生表

Desired vlookup function uses the value in cell C4 to identify the student sheet

= VLOOKUP($ B $ 4,学生 C4 A2:D,2)

=VLOOKUP($B$4,studentC4A2:D,2)

有人可以帮我解决这个问题的语法吗?

Can someone please help me with the syntax for this?

推荐答案

使用 INDIRECT ,例如

=VLOOKUP($B$4,INDIRECT("student"&C4&"!A2:D"),2)

这篇关于如何在vlookup函数中使搜索范围动态化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆