将范围存储在单元格中并将其与 Vlookup 一起使用

发布于 2025-01-13 12:14:32 字数 389 浏览 2 评论 0原文

我需要对根据日期而变化的范围进行 vlookup

,例如: =Vlookup(a2,http://mypc/[attendance.xlsx]7th March'!$AR:$AS,2,0)

所以对于工作表的链接很好,无需更改,但工作表中的选项卡会根据日期更改:

例如:

如果日期是 8/3/2022,则公式将如下所示: =Vlookup(a2,http://mypc/[attendance.xlsx]8th March'!$AR:$AS,2,0)

我尝试将日期的值放入单元格中并在日期内使用另一个 vlookup,但是它不起作用。我还尝试使用间接公式来调用工作表链接,但它不起作用,也显示 #Ref 错误。

顺便说一句,查找值来自表格单元格。

那么有什么想法吗?

I need to do vlookup for a range which is variable depending on the date

for example: =Vlookup(a2,http://mypc/[attendance.xlsx]7th March'!$AR:$AS,2,0)

so for the link of the sheet is fine no need to change, but the tab in the sheet it changes according to date:

for example:

if the date is 8/3/2022 the formula will be like this: =Vlookup(a2,http://mypc/[attendance.xlsx]8th March'!$AR:$AS,2,0)

i tried to put the value of the date in a cell and using another vlookup inside the date but it didnt work. i also tried to use indirect formula to recall the sheet link but it didnt work also showing #Ref error.

Btw the lookup value is coming from a table cell.

so any ideas please?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文