Hi all,
I'm hoping some can help
I am trying to do a two criteria index match in VBA.
This works:
result = [INDEX('Sheet1'!b:b,MATCH(1,(ah5='Sheet1'!A:A)*(x5='Sheet1'!B:B),0))]
Range("bb5").Value = result
But when I alter it to introduce wildcards into the second criteria it stops working.
result = [INDEX('Sheet1'!b:b,MATCH(1,(ah5='Sheet1'!A:A)*("*" & x5 & "*" ='Sheet1'!B:B),0))]
Range("bb5").Value = result
By rights this should work. It's such a small issue but its taking up a lot of my time.
Thanks in advance.
Bookmarks