H HP_81 New Member Jan 12, 2023 #1 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 SAMPLE.xlsx 12.1 KB · Views: 2
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.
ETAF Active Member Jan 12, 2023 #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 SAMPLE-ETAF.xlsx 13.5 KB · Views: 4
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
H HP_81 New Member Jan 12, 2023 #3 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 ?
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 ?
ETAF Active Member Jan 12, 2023 #4 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 SAMPLE-ETAF (1).xlsx 14.5 KB · Views: 3
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)),"")
B bosco_yip Excel Ninja Jan 12, 2023 #5 Or try this IFERROR+VLOOKUP function, =IFERROR(VLOOKUP(LEFT(A2,FIND("-",A2&"-")-1),Criteria!$A:$A,1,0),"") Regards
Or try this IFERROR+VLOOKUP function, =IFERROR(VLOOKUP(LEFT(A2,FIND("-",A2&"-")-1),Criteria!$A:$A,1,0),"") Regards
H HP_81 New Member Jan 13, 2023 #6 Excellent...Thank you so much ETAF and bosco_yip. Both the formula works perfect. Really appreciate it.
Excellent...Thank you so much ETAF and bosco_yip. Both the formula works perfect. Really appreciate it.
H HP_81 New Member Feb 8, 2023 #8 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 Sample (2).xlsx 13.4 KB · Views: 2
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
B bosco_yip Excel Ninja Feb 8, 2023 #9 HP_81 said: 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 Click to expand... Open a new post for your new question. This post is closed. Regards
HP_81 said: 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 Click to expand... Open a new post for your new question. This post is closed. Regards