• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

VLookup

Status
Not open for further replies.

HP_81

New Member
Hi Excel Gurus,

I have a table from where i need to look up from Criteria tab.
I cannot get the desired result from Exact match nor Approximate match in Vlookup
Can someone help with this please.
 

Attachments

  • SAMPLE.xlsx
    12.1 KB · Views: 2
are you trying to exclude the -1 at the end of the text
if so
try
=INDEX(Criteria!A:A,MATCH(IFERROR(LEFT(A2,SEARCH("-",A2,1)-1),A2),Criteria!A:A,0))

otherwise not sure what you need, perhaps some examples of expected results and why would help
 

Attachments

  • SAMPLE-ETAF.xlsx
    13.5 KB · Views: 4
Hi ETAF,

Thank you so much. I was trying to exclude -1 at the end of the text.
Is this also possible with vlook up ?
 
yes
=VLOOKUP(IFERROR(LEFT(A2,SEARCH("-",A2,1)-1),A2),Criteria!$A$1:$A$20,1,FALSE)

if you do not want the N/A errors for either formula
then wrap in an IFERROR()

=IFERROR(VLOOKUP(IFERROR(LEFT(A2,SEARCH("-",A2,1)-1),A2),Criteria!$A$1:$A$20,1,FALSE),"")

=IFERROR(INDEX(Criteria!A:A,MATCH(IFERROR(LEFT(A2,SEARCH("-",A2,1)-1),A2),Criteria!A:A,0)),"")
 

Attachments

  • SAMPLE-ETAF (1).xlsx
    14.5 KB · Views: 2
Excellent...Thank you so much ETAF and bosco_yip.
Both the formula works perfect.
Really appreciate it.
 
Hi Excel Champs,

I have another one on Vlookup please.
How can i exclude the -1/2,2/2 and so on from sheet1 when looking up from Criteria tab.

I have attached a sample file..Thank you
 

Attachments

  • Sample (2).xlsx
    13.4 KB · Views: 1
Hi Excel Champs,

I have another one on Vlookup please.
How can i exclude the -1/2,2/2 and so on from sheet1 when looking up from Criteria tab.

I have attached a sample file..Thank you
Open a new post for your new question.

This post is closed.

Regards
 
Status
Not open for further replies.
Back
Top