如何findLOOKUPfind的单元格的地址,然后获取相应的单元格?

所以这是一个新的post,请看附加的屏幕转储。

代码必须在这个表格的列A中找到最后一个非零值,然后在同一行中获取列C中的值并将其粘贴到C3中。

码:

Sub FindFetch() ' Find the last non-zero value in Col A and then fetch the corresponding value ActiveSheet.Range("A3").Formula = "= LOOKUP(2,1/(A10:A26>0),A10:A26)" ' Fetch the value in the corresponding column C: ' xxx <- this is my problem, how to get there ActiveSheet.Range("Cxxx").Copy Range("C3").Select Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _ False, Transpose:=False End Sub 

非常感谢你提前。

 = LOOKUP(2,1/(A10:A26>0),C10:C26)