vlookup with structured table (Insert-->table)

lezawang

Well-known Member
Joined
Mar 27, 2016
Messages
1,805
Office Version
  1. 2016
Platform
  1. Windows
Hi
Is it good idea to name insert a table (Insert-->table) on the sheet I am working with when I use Vlookup() function?

vlookup(x, table1, 3,false)

I thought it is not good idea because if the lookup value (x in this case) is not in the first column then I need to highlight the range to make x as first column and with that using table1 wont help me. Am I right? Thank you so much.
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

Book1
ABCDEF
1correspondentcodecity
2jon30londonnatenottingham
3nate25nottinghamistanbuldan
4dan80istanbul90den haag
5johan90den haag
6
Sheet1


F2 runs a left-to-right straight VLOOKUP...

=VLOOKUP(E2,Table1,3,0)


F3 runs a right-to-left VLOOKUP against a table constructed by means of a CHOOSE call...

=VLOOKUP(E3,CHOOSE({1,2},Table1[city],Table1[correspondent]),2,0)


F4 runs a left-to-right VLOOKUP against a subtable of Table1...

=VLOOKUP(E4,Table1[
Code:
:[city]],2,0)


Hope this helps.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,577
Messages
6,120,359
Members
448,956
Latest member
Adamsxl

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top