1

Why doesn't this work?

Result = Application.WorksheetFunction.Index((Range("CountryNames")), _
                Application.Match((Range("B61")), (Range("CurrencyValues")), 0))
1
  • 1
    Hi, did you enter the formula in a cell and verify that it returns the expected result? Commented Nov 27, 2013 at 1:21

1 Answer 1

1

Too many parentheses. Instead of passing a range to Index, you're only passing the range's value. That is OK for the arguments to Match, since that function works just as well on values as it does for ranges. But Index can only work with ranges. Try this instead:

Result = Application.Index(Range("CountryNames"), _
        Application.Match(Range("B61"), Range("CurrencyValues"), 0))
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.