我正在尝试更改vlookup的列索引号,但是我正在查看的单元格中显示Colnum-14
。
我错过了什么吗?我知道match/index
公式,但我必须使用vlookup
。
我的代码:
Dim Colnum As Integer
For Colnum = 15 To 16
Sheets("Sheet1").Cells(8, Colnum + 1).Formula = "=iferror(vlookup(" & Sheets("Sheet1").Cells(8, 3).Address(False, True) & ",'Sheet2'!" & Range(Cells(3, 2), Cells(20, 10)).Address & "," & "Colnum-14" & ",False), ""NA"")"
Next Colnum
答案 0 :(得分:2)
您正在为查阅列嵌入字符串" Colnum-14" 而不是变量git diff $(git merge-base --fork-point master)
。尝试
Colnum