I'm using excel and have two columns (A & B) with values
I want to search for each value in Column A and return the position in Column B. I'm using this formula:
IFERROR(MATCH("Values in Column A";"Array = Column B";0);0)
The results are:
<!-- language: lang-none -->Column A | Column B | Column C
1 | 4 | 2
2 | 1 | 3
3 | 2 | 4
4 | 1 | 1
1 | 2 | 2
| 3 |
It works fine if it doesn't encounter repeated values. However, I want it to encounter repeated values, so the formula should ignore the ones it was encountered before and go through the others. So the correct result should look like this:
<!-- language: lang-none --> <pre><code>Column C 2 3 5 1 <b>4</b></code></pre>Can you help me on this? Is there a VBA routine for this?