简体   繁体   English

在Excel公式中将列号与行字母分开

[英]Separating Column number from Row letter in an Excel formula

Is there any way to declare a range in an Excel formula and have the value returned by MATCH() as the row number?有什么方法可以在 Excel 公式中声明一个范围并将 MATCH() 返回的值作为行号?

Example:例子:

=VLOOKUP(C3,'Sheet2'!B2:C30000,2,FALSE)

What I want is the formula equivalent of VBA's "B" & [ MATCH() return ] & ":C30000" .我想要的是相当于 VBA 的"B" & [ MATCH() return ] & ":C30000"

I am not permitted to use VBA.我不被允许使用 VBA。

Use Index, INDIRECT and OFFSET are volatile and should be avoided when possible.使用 Index、INDIRECT 和 OFFSET 是不稳定的,应尽可能避免使用。

=VLOOKUP(C3,INDEX('Sheet2'!B:B,MATCH(...)):'Sheet2'!C30000,2,FALSE)

Change the MATCH(...) to your Match formula.MATCH(...)更改为您的 Match 公式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM