Alternative of vlookup or proper adaptation

Posted on 2011-05-10
Last Modified: 2012-08-13
Dear Colleagues,
I'm using the following formula:
=IF(C3<>0;IFERROR(VLOOKUP(C3;'[Coding-Index-JG.xlsx]People Coding'!$A$3:$K$169;1;0);""))

The functionality of VLOOKUP is ok but in this very case I have an issue with it because C3 is located in the B column and value to lookup is located in the A column.

To have vlookup working I just would need to move the A column to the B column and B to A but let's presume that this is for other reason is not possible.

So how Vlookup can or must be adapted to search for a value one column before and not after the main column?
I tried with INDEX and MATCH but could not figure it out.

With other words: The C3 values can be found in the B column of the other file and the respective return value needed is located in the A column which can not be moved.

Question by:Petersburg1
    LVL 85

    Accepted Solution

    =IF(C3<>0;IFERROR(INDEX('[Coding-Index-JG.xlsx]People Coding'!$A$3:$A$169;MATCH(C3;'[Coding-Index-JG.xlsx]People Coding'!$B$3:$B$169;0));""))
    should do it.

    Author Closing Comment

    Perfect, thanks!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
    Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
    This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
    This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now