Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • Note that I built the formula using the wizzard, and it added , itself. Now I have changed the seperator to ; and I do get a result, but it seems to always pick the first row, no matter what the first argument is.
    – Ikke
    Commented Apr 25, 2012 at 8:18
  • Is my understanding of VLOOKUP right that it looks at the first column of the range you gave for the search criteria, and then returns the nth column from that row where n is the index?
    – Ikke
    Commented Apr 25, 2012 at 8:29
  • @Ikke: yes, you're right. It should use the left column of the datatable to lookup the search criteria. Notice that when counting the nth column, the leftmost column (search criteria) counts as first column, so if the datatable starts with Column A (search criteria), Column B is column 2. Maybe there are duplicates in the first column, so there may be more than one row that may qualifiy for the given search criteria? Other reasons for mismatching may be different data types (Integer values, strings?).
    – tohuwawohu
    Commented Apr 25, 2012 at 8:34
  • I found the problem. It was the last parameter (SortOrder). See my answer.
    – Ikke
    Commented May 1, 2012 at 8:20