Vlookup Function

davidzan

New Member
Joined
Feb 13, 2024
Messages
13
Office Version
  1. 2010
Platform
  1. Windows
How to use the VLOOKUP function by using a "STRING" source instead of "NUMERICAL" source? Thanks
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Please elaborate. Do you mean column names, like "A", "B" instead of "1" and "2", or do you mean look for values as strings like "Orange"?
 
Upvote 0
if string is in cell A2 and the Lookup range is D2:F10, and you want the 2nd column, matching exactly:
Excel Formula:
=VLOOKUP(A2,$D$2:$F$10,2,0)
 
Upvote 0
Literal text MUST always be enclosed in double-quotes, i.e.
Excel Formula:
=vlookup("John Doe",$A$5:$C$20,2)

This is true in any/all Excel functions.
 
Upvote 0
Solution
if string is in cell A2 and the Lookup range is D2:F10, and you want the 2nd column, matching exactly:
Excel Formula:
=VLOOKUP(A2,$D$2:$F$10,2,0)
if string is in cell A2 and the Lookup range is D2:F10, and you want the 2nd column, matching exactly:
Excel Formula:
=VLOOKUP(A2,$D$2:$F$10,2,0)
Please elaborate. Do you mean column names, like "A", "B" instead of "1" and "2", or do you mean look for values as strings like "Orange"?
Value as a string like "Orange"
 
Upvote 0
Literal text MUST always be enclosed in double-quotes, i.e.
Excel Formula:
=vlookup("John Doe",$A$5:$C$20,2)

This is true in any/all Excel functions.
Fantastic. Thanks so much!!! I didn't consider the quotation marks. It's now understandable.
 
Upvote 0
You are welcome.
Glad we were able to help!
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,687
Members
449,117
Latest member
Aaagu

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