Here is my problem:
I have groups of numbers separated by “/” and I am trying to do VLOOKUP which I can perform with this formula:
=VLOOKUP(--LEFT(A2,6),MyFileRange,10,FALSE)& " / "& VLOOKUP(--(RIGHT(A2,6)),MyFileRange,10,FALSE)
This only works when I have 2 groups of numbers 6 characters each. When I have let’s say 123 / 4856 it doesn’t work until I change the number of characters in LEFT and RIGHT formula. I can have various combinations of these numbers. What I know is that they cannot exceed length of 6 characters. They can be 5 groups of numbers, sometimes 4 and so on. How can I make this more dynamic? I tried to include function LEN which will count number of characters and pass it to VLOOKUP, but I cannot make it work. Any help would be greatly appreciated.
I have groups of numbers separated by “/” and I am trying to do VLOOKUP which I can perform with this formula:
=VLOOKUP(--LEFT(A2,6),MyFileRange,10,FALSE)& " / "& VLOOKUP(--(RIGHT(A2,6)),MyFileRange,10,FALSE)
This only works when I have 2 groups of numbers 6 characters each. When I have let’s say 123 / 4856 it doesn’t work until I change the number of characters in LEFT and RIGHT formula. I can have various combinations of these numbers. What I know is that they cannot exceed length of 6 characters. They can be 5 groups of numbers, sometimes 4 and so on. How can I make this more dynamic? I tried to include function LEN which will count number of characters and pass it to VLOOKUP, but I cannot make it work. Any help would be greatly appreciated.