I have a workbook with a tabular data (file attached).
Now, I'm trying to lookup values in a different workbook using the table shown in the attached file. I only need the columns "RefNo" & "EntryNo" where the lookup value will find a match with column "RefNo" and extract only the text portion from column "EntryNo" & according to that show the result.
Basically, 1) if the "EntryNo" value have either of the texts "WAMCP" or "WSILCP" or "WJCP" then the result should show as "CAPITAL", 2) if the "EntryNo" value have either of the texts "WAMOP" or "WSILOP" or "WJOP" then the result should show as "CLINIC", 3) if the "EntryNo" value have either of the texts "WAMPRP" or "WSILPRP" or "WJPR" then the result should show as "PROCEDURE", 3) if the "EntryNo" value have either of the texts "WAMPP" or "WSILPP" or "WJPI" then the result should show as "PHARMA" etc. and no match is found then it should be the text "Not Found".
I've tried the below code but it is long and doesn't work
Can anyone help?Please Login or Register to view this content.
Bookmarks