Type mismatch Error in index match in index match function

强颜欢笑 提交于 2020-03-28 06:40:39

问题


Type mismatch error

Dim lr As Integer

lr = Range("A1").CurrentRegion.Rows.Count

Range("N2").Select
Range("N2").Formula = Application.WorksheetFunction.Index(Sheets("SMSv2").Range("A2:L" & lr), Application.Match(Sheets("SMSv2").Range("C2"), Sheets("SMSv2").Range("A2:A" & lr), False), 4)

回答1:


Dim lr As Integer   
lr = Range("A1").CurrentRegion.Rows.Count

Range("N2").Select  
Range("N2").Formula = "=INDEX(SMSv2!$A$2:$L$" & lr & ",MATCH(SMSv1!C2,SMSv2!$A$2:$A$" & lr & ",0),4)"


来源:https://stackoverflow.com/questions/60057812/type-mismatch-error-in-index-match-in-index-match-function

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!