• 469K Members
• 4,852 Online
• 568K Conversations

New Contributor

# VLOOKUP Help

Hi everyone,

Can someone please help me with using the VLOOKUP function. Attached below is a chart I am working with. Essentially I'm trying to search by location and return the corresponding name associated with it. However, when I use the formula: =VLOOKUP("Dallas",A2:B10,1,FALSE), instead of returning Jones, it returns #N/A. In addition, =VLOOKUP("Spain",A2:B10,1,FALSE), instead of returning Dawn, Morgan, and John, it returns #N/A. Can someone please help me this? I'm on a deadline and really frustrated with trying to figure this out! Thank you so much!!!

3 Replies

# Re: VLOOKUP Help

@Thetest123 , VLOOKUP only looks to the right, you can't retrieve data from the column on the left. Use INDEX/MATCH instead, like

`=IFNA(INDEX(A2:A10, MATCH("Dallas",B2:B10,0)),"no such")`

# Re: VLOOKUP Help

Oh I see! That makes sense. What about when there are duplicates of location like for Spain? Is there a way to use the index match to return all the corresponding names and not just the first one. When I use

`=IFNA(INDEX(A2:A10, MATCH("Spain",B2:B10,0)),"no such")`

it only returns Dawn...is there a way for it to return Morgan and John as well?

# Re: VLOOKUP Help

@Thetest123 , nope, INDEX/MATCH, as well as VLOOKUP, returns only first found value. You may only play with options how to find it. If the list of matched records that will be another technique.

And it depends on how you'd like to see the result on which Excel you are. If, for example, list of values for given criteria and you are Office365 subscriber you may use TEXTJOIN as

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
30 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies