I've been hunting around for a solution for sometime now and stumbled across this forum.
Just signed up to say thank you and I shall be using this website some more when I need a solution!
Liam
Hi, just joined this forum too.
I have a similar issue and would very much appreciate your help:
I have a list of computer host names, part of which indicates whether it's a server, client, till or laptop etc (col B). The list is extacted from another tool and it's a few thousands rows - I have removed other columns as they are not important for this exercise but would be retained in the final version.
In the lookup tab I have the partial string (col A) and what they should match up to (col B, return value). For example, if the hostname contains "cl", it's a client machine, if it contains "srv" it's a server.
I have tried adapting a previously successful vlookup (that was matching the whole exact field) with the asterisks but had no joy, for some reason it keeps returning the last value in the list or at worst it gives an error. I also tried a few of the combinations given in this thread with no luck.
The search string could be anywhere in the hostname, in the middle or at the end. Sample data attached. The lookup list could expand to include other abbreviations. IF a match is not found, then n/a or any recognisable string should be added instead.
The values returned (type of machine) would then be used to create pivot tables of type of machine and whether it's online or offline (no problem with that). As this needs to be done on a daily basis at the moment, and we are talking thousands of machines, any sort of manual matching is impossible.
I am a newby at vlookup (also not a programmer) so please go easy on me
Thanks in advance for your help.
View attachment gurutest.xlsx