A little while ago I showed you how to do a lookup to the left using the INDEX and MATCH functions.

In this Excel tutorial I’m going to show you how you can do a lookup to the left with a VLOOKUP formula together with the CHOOSE function as an alternative.

First of all let’s look at our data:

In this example we want to look up the Volume in column E for the date 29/01/2011 in column K. As we know, a VLOOKUP cannot go left, but with the help of the CHOOSE function we can trick it into going left.

First of all let’s understand how the CHOOSE function works:

This is the syntax in Excel:

=CHOOSE(index_num, value1, value2, value3…..up to 254 values)

The syntax is not very useful as usual! To translate it into English:

=CHOOSE(value number 3 where, value 1 = A, value 2 = B, value 3 = C)

The result is C

Now we can get creative by specifying more than one index number with the help of curly brackets { }, and instead of specifying the values (like we did above with A, B and C) we can refer to a range of cells like this:

=CHOOSE({1,2},$K$2:$K$207,$E$2:$E$207)

In English this formula reads:

= ({column 1 is K , and column 2 is E)

Effectively switching the positions of column E and K so that the VLOOKUP will think column K is to the left of column E. Clever, huh?

Now, on its own, like the example above, CHOOSE is not much use but when you use it in a VLOOKUP it enables us to trick Excel into returning the value to the left of our lookup column.

Our formula to look up date 29^{th} January 2011 in column K and return the value in column E (column number 2) is:

=VLOOKUP(DATE(2011,1,29),CHOOSE({1,2},$K$2:$K$207,$E$2:$E$207),2,0)

Translated:

=VLOOKUP(find 29/01/2011 in column K and return the value in column E)

Result 7,222,425

**NOTE:** when you want to reference a date in a formula you need to tell Excel it is a date using the DATE function, alternatively you can use the date’s serial value. However, I find the DATE function more intuitive and easier to follow when I revisit a formula later on. Alternatively you could reference another cell that contains the date in the correct date format.

**TIP:** We can make this formula a little easier to use by changing the cell range references to full column references. This will work in this instance because there is no other data in our columns other than that which is in our table.

With full column references our formula looks like this:

=VLOOKUP(DATE(2011,1,29),CHOOSE({1,2},K:K,E:E),2,0)

Download the workbook and play around with the formula to test your understanding.

In some ways I think using the CHOOSE function to trick your VLOOKUP to look left is easier than the INDEX and MATCH functions , especially if you’re more familiar with VLOOKUP.

What do you think? Do you have a preference or do you just rearrange your columns so you never have to lookup to the left? Let me know in the comments below.

Raghu says

Hi Mynda,

I Can’t resist but to give compliments.

The way you explain a point is like , as if you give us a, “Sweet Ripe Banana – peeled” and, what do we have to do– ‘Just Gulp it down into our Brains! ‘.

You make it so easy to “Learn.”

Great Mam.

Mynda Treacy says

thank you, Raghu! I’m delighted you enjoyed my tutorial. Enjoy the bananas!

Wanda Ponto says

At what point when you are writing the formula do you use CTRL + SHIFT + ENTER to insert those curly brackets?

Mynda Treacy says

When you’re finished. i.e. instead of pressing just ENTER, you press CTRL+SHIFT+ENTER.

rajan sett says

Need to find the last duplicate value of a range

Catalin Bombea says

Hi Rajan,

Try this:

=LOOKUP(2,1/(COUNTIF(A1:A100,A1:A100)>1),ROW(A1:A100))

It will return the row number of the last duplicate value.

This version: =LOOKUP(2,1/(COUNTIF(A1:A100,A1:A100)>1),C1:C100) will return the value from column C, corresponding to the last duplicate found on column A.

Catalin

Subash says

Full Marks Mynda (The Team)

Mynda Treacy says

thanks, Subash.

A.Gopinath says

I need for vlookup to the left using choose.

Miguel says

Hi Mynda Tracey,

Thank you very much for your teachings. I owe you a lot!

Learning the “Excel VLOOKUP to the left using CHOOSE”, I think instead of the comma to separate the constants inside the curly brackets (as it appeares in your description of the problem and on the download file) we should use a \ (back slash) as it appears in the result of the download file.

Am I right

Mynda Treacy says

Hi Miguel,

In my version of Excel we use a comma to separate arguments in a formula. However there are regionalized versions of Excel that use other characters. Yours may well be a back slash instead of a comma, so if that’s what you normally use then go with that.

For me if I download the file on my computer it will have commas separating the arguments.

I hope that helps.

Mynda

Miguel says

Hi Mynda,

In fact I’m using a Excel in english but operating in a windows, portuguese version. The commas to separate the arguments are substitutred for semicolons, but to separate the constants in the CHOOSE formula, we use a back slash.

The formula would be like this:

=VLOOKUP(DATE(2011;1;29);CHOOSE({1\2};$K$2:$K$207;$E$2:$E$207);2;0)

Many Thanks,

Miguel

Mynda Treacy says

Ah, I see. Thanks, Migel.

Bruce says

Very helpful and creative! Is there a way to write a formula that will return the left column results for different dates without having to painstakingly enter them in the Date formula? If you convert the dates to serial numbers like you suggested that might be my answer

Catalin Bombea says

Hi Bruce,

You can use a worksheet cell for VLOOKUP search criteria, like: =VLOOKUP(

N8,CHOOSE({1,2},$K$2:$K$207,$E$2:$E$207),2,0) , in cell N8 just enter the date to search. This way you can avoid reediting the formula. If you have a column with search dates, you can copy down this formula to find the results for each date. Make sure that cell N8 is formatted as date; if it’s formatted as text, you can convert to date by using DATEVALUE(N8) in VLOOKUP formula instead of N8 reference.Another good thing to know: Vlookup is returning only the first match found, this means that if you have duplicates in the search column (like multiple rows for same day) , the formula will return only the value corresponding to the first match found!

Hope it helps,

Cheers,

Catalin

yaser says

Dear mynda

u r great !

i am learning a lot from ur tutorials

i have a problem ,could u assist me ?

if i want to look up for a specific name and return the relevant value

ex.

if i have two columns,

one of them is containing the brand name of the drug,

and the other is containing the active ingredient of the same drug,

like: scientific name is ranidine,

the related brand name is zantac

but the problem there are other specifications written in the columns of active ingredient like :ranidine 150 mg ,

so if i want to look for ranidine (only) vlookup does not work bec the look up area dosent contain (ranidine only),

so,can advise how can i solve this problem ?

Regards,

yaser

Mynda Treacy says

Hi Yaser,

You can use a VLOOKUP formula with wildcards. Click here to see how.

Kind regards,

Mynda.

yaser says

thx ,mynda

u r super !!!!

really amzing and clever method which u gave me !!!

however i hv other problems:

1-if i have another column (third one )can use the same vlookup formula (column index no= 3) bec when i tryed ,does not work?

2-the other problem ,if the returned value are more than one item,

can I create a formula to bring all the items which contain the same/ (looking up word)?

hope my Q. are clear.

regards,

yaser

hop

Mynda Treacy says

Hi Yaser,

I’m not sure why it won’t return column index number 3. I presume it’s because VLOOKUP can’t find a match, but without knowing the error I can’t be sure.

You can return multiple matches with this formula.

Kind regards,

Mynda.

yaser says

thx,mynda,

however i want to return the whole(mutiple) results by looking up of (part of the whole lookup field ,like the previous vlookup formula that u gave me ).

pls advise.

regards,

yaser

Mynda Treacy says

Hi Yaser,

It’s very difficult to picture what you want. Can you please send me an example Excel file via the help desk which specific instructions on what you want and where.

This will help me to help you.

Thanks,

Mynda.

rachel says

this is so amazing! i’ll never go to Index/Match again (which, after a couple of years, i STILL can’t get the hang of). using CHOOSE is so much easier and intuitive! thanks for this!

Mynda Treacy says

Glad you liked it, Rachel. Although if you can force yourself to get your head around INDEX & MATCH it’ll be worth your while.

Krishna R M says

Amazing that was an awesome trick…!!! This helps particularly when we have to apply multiple vlookups with various columns and where you may have to look both left and right for different values…!!!

After reading your website I feel we can force excel to do anything for us…!!

The NodeXL add-in you suggested for drawing Network Chart is Just amazing….!!

Mynda Treacy says

Thanks, Krishna

Glad you like it.

Ashutosh Bhatnagar says

Hi,

I want to change the dependent drop downlist as I change the drop down list of master for eg If I change the state Than it should show the store list of that state only in the dropdown. please help how can i do the same in excel.

Thanks

Ashutosh

+919650197720

Mynda Treacy says

Hi Ashutosh,

You can read tutorials on Dependent Data Validation here, and a different approach here.

Kind regards,

Mynda.

swetha says

really excellent!!! very well explained about the choose function. many thanks

Mynda Treacy says

Thank you, Swetha

Sharon says

Awsome! So easy to use. I didn’t experiment with your workbook, just copied the code & changed to match my data. 10/10

Mynda Treacy says

Cheers, Sharon

Tefo says

Hi Myanda

thanks for all the helpful tutorials.

just one thing, get you give anothere example of nesting vlookup with choose function that involves something else either than a date.

many thanks.

Carlo Estopia says

Hi Tefo,

Please clarify some more because I think it really doesn’t matter whether it’s a date or something else, this

Vlookup with choose function will work.

Cheers,

CarloE

Ronald says

Hi Mynda,

Great! Is there a way for Vlookup or Match to return the nearest higher value to a lookup_value? Value returned is always the greatest value which is <= to the lookup_value where data is sorted in ascending order for the Vlookup function and in descending order for the Match function. The goal is actually to get the next lower and next higher value of a lookup_value.

Thanks,

Ron

Mynda Treacy says

Hi Ronald,

How about this:

i.e. add 1 to your lookup value to make it find the next higher value. Take 1 away to find the next lower value.

Kind regards,

Mynda.

Ajay Jangral says

hi Ronald.

U can try “large or small” function to get the kth higher or lower value.

Regards,

Ajay

Sergiu says

Very useful courses in your website.

VLOOKUP with CHOOSE combination – good trick instead of MATCH INDEX combination.

Thanks.

Mynda Treacy says

Thanks, Sergiu

Nishal says

Hi

Can we use Sumif with Look up, as you aave used choose function

Thanks

Nishal

Mynda Treacy says

Maybe. In what context exactly?

Robert Wernke says

Excellent!!! Helped allot!!!!

Mynda Treacy says

You’re welcome, Robert

Manjeet says

It’s awesome. Before this I was aware of trick to look-up value toward left is Index-match combination. This is far easier than that one.

Thanks!

http://www.myonlinetraininghub.com is really a good source of learning about MS office tools, even best among all what I explore of now.

Mynda Treacy says

Thanks, Manjeet

Suzie Hardy says

Thanks for this, CHOOSE works much simpler in my head than index and match, this is a very quick shortcut – love it.

Mynda Treacy says

You’re welcome, Suzie

J. Andrew Steinbach says

Hello,

This information is exactly what i needed.

However i am struggling to apply it to my vlookup that looks up on different worksheet, any insight would be greatly appreciated.

Current Formula looks like:

=VLOOKUP(B5,’MAIN REPORT’!D:E,2,0)

-It searches what is in cell B5 on worksheet MAIN REPORT in column D and returns the corresponding data from column E. However the data in column E is really to the left, column C, and i must manually copy column C to column E.

-Thanks Again

Carlo Estopia says

Hi JAndrew,

I simulated your problem:

In MAIN REPORT ColA to ColE

ColC – “DataFromC”

ColD – “LookupME”

IN your Formula-Sheet

B5 – “LookupME”

E5 – is the formula below.

Read More on VLOOKUP with CHOOSE

Cheers.

CarloE

J. Andrew Steinbach says

It worked!!!! i love you! Thank you so much! i will refer co-workers here.

Carlo Estopia says

J. Andrew,

On behalf of Mynda — actually, she wrote it and I learned it from her–

I say you’re very much welcome.

Cheers.

CarloE

Abid Jan says

Hey,

I am looking Vlookup from left, Its amazing:)

Thanks,

Abid Jan

Mynda Treacy says

Cheers, Abid Glad you liked it.

Mustafa says

I usually like to link or import the excel list to ms access and do all these tricks even easir. And still likes to know more about excel.

Still your site is great. Thanks.

Mynda Treacy says

Cheers, Mustafa

Steve says

FYI – you can “HLOOKUP to the up” by using the same trick, but with one important change. {1,2} becomes {1;2}. (Change the comma to a semicolon!)

Mynda Treacy says

Hi Steve,

Love it. Thanks for sharing.

Kind regards,

Mynda.

brian says

Thanks – very helpful and very clear

Mynda Treacy says

Thanks, Brian Glad you liked it.

Garth says

This is really useful.

Thanks!

Mynda Treacy says

Glad I could help

Roger Cousins says

Awesome… my new favourite function!

I can’t tell you how many times I’ve struggled with this. I even went so far as to create a separate worksheet with {column E, Column C} so that I could lookup the values in C. Never More.

In what chapter of what book in what universe is Choose() explained as well as this?

Mynda Treacy says

Thanks for your kind words, Roger.

bob mcglynn says

I believe that this site is one of the most open and comprehensive repository of Excel useful info i have come across in months.

B

Mynda Treacy says

Wow, thanks Bob

Maxime Manuel says

It’s awesome! I was just looking for something like this.

I bookmarked this website.

Thank you!

Mynda Treacy says

You’re welcome, Maxime

Kel says

Mynda thanks heaps this will save me hours of frustration.

Mynda Treacy says

Great to hear, Kel

steve page says

The choose formula you just showed me pulling data out from the column to the left makes much more sense to me than the index/match method. it had been awhile since i used the index/match method and when i went to use it i could remember what columns went where….lol.

the choose method you just showed is 10x easier to remember. I use this function more than most folks and it is a lifesave. Thank you so much for sharing.

Mynda Treacy says

Thanks, Steve. I like VLOOKUP with CHOOSE too.

Ras says

Much better explained than an example I found in Chandoo.org on looking up to the left. Thank you.

Mynda Treacy says

Wow, thanks, Ras

Khurram Ali says

Dear Mynda,

Thanks a lot for keep teaching us a number of useful and creative formulas and functions in Excel.

Please send me link to your some files/examples about using using data tables, esp. with reference to dynamic/interactive ranges/graphs.

So kind of you,

Khurram Ali

Mynda Treacy says

Hi Khurram Ali,

You can find an index of Excel formulas and techniques here, including Tables.

Sorry, I don’t have any tutorials on the blog on dynamic/interactive ranges/graphs at this time. They are covered in my dashboard course though.

Kind regards,

Mynda.

birbal sharma says

mynda its my luck i got you for my Excell logic clear

Mynda Treacy says

Cheers, Birbal

birbal sharma says

hi mynda ,

mynda please send me some access logic for do something extra in my office

Birbal Sharma

Mynda Treacy says

Hi Birbal,

I’m sorry, I don’t have any training on Access.

Kind regards,

Mynda.

Jason says

I was struggling with trying to complete this exact same kind of function…. I ended up “googling” my problem and ended up at this page… I read through your instructions, applied it to my spreadsheet and it worked! Thank you so much for your help!!!

Mynda Treacy says

Cheers, Jason. Glad we could help.

Kind regards,

Mynda.

Ashish Dimri says

Wonderful, this makes a lot of tasks easier!!

Mynda Treacy says

Thanks, Ashish

Christopher Bloome says

Hi Mynda, This is great, but for some reason, when I try this in practice, it shows me the data that is two cells below what I’m actually looking for. Any ideas where I might be messing up?

Thanks!

CB

john tang says

Mynda,

This is really an eye opener. Thanks.

John.

Mynda Treacy says

Cheers, John. Glad you like it

Barcelona says

Excellent job and very good tutorials.

The “English translation” is very helpful!

I’ll include a link to this site in my blog to keep the trace and avoid missing time with other useless tutorials I found.

Mynda Treacy says

Cheers, Barcelona!

krishnan says

wan to know more abt excel

Ron Kaminker says

Always use match and index instead of vlookup.

With Vlookup, if you add or delete a column, the entire spreadsheet can blow up.

Is there a way to look in a list of cells to see if a cell matches (where the cells are NOT contiguous: something like Match($a1,{a11,b12,c13,d14},0)

Mynda Treacy says

Hi Ron,

Are you just trying to see if there is a match or locate the cell containing the match? i.e. would a TRUE or FALSE answer do? Also, are the values numeric or text?

Cheers,

Mynda.

Dan says

This formula is perfect and helped so much. Thank you.

Mynda Treacy says

Cheers, Dan

Parveen Saroha says

Hi Mynda,

It was very great trick…..I am very keen to learn the Excel, need your suggestions that which book or site is good…

Mynda Treacy says

Thanks Parveen! This site is good to learn Excel

We have an Excel training course that you can join. Find out more here:

http://www.myonlinetraininghub.com/free-microsoft-office-online-training/microsoft-office-online-training-courses/excel-2007-syllabus

Please let me know if you have any questions.

Kind regards,

Mynda.

Scott Gall says

A neat trick… I personally prefer to reorganize the columns in the first place however as it adds less calculational load.

Mynda Treacy says

Thanks Scott. Me too, but mainly because it adds less load on my brain

Rajesh Peter says

Hi Mynda, The Best!!!! I have ever seen in my Excel search….

sweet and simple but great concept

Mynda Treacy says

Cheers Rajesh. Glad you liked it.

Huy says

I was stuck with “Vlookup to the left” in two days. this is amazing. Thank you so much.

Mynda says

Thanks Huy. Glad to have helped.

Mynda

Colleen says

SWEEEET! That is one of the awesomest things ever!! Thank you so much!!!! ^_^

Mynda says

Thanks Colleen. I’m glad it helped you. Your feedback makes it all worthwhile.