Excel Vlookup Question

Robertson1995

Board Regular
Joined
Apr 1, 2009
Messages
121
I have a vlookup issue that I need help with. I have a spreadsheet that pulls an IP address into column F from another column using the =mid formula. Then the data that it pulls is referenced with vlookup to add a name to the IP address in yet another column.

Vlookup will only work if I add *1 to the end of the =mid formula. The problem Im having is by using =mid some of my IP addresses are shorter than others which adds extra characters.

For example: =mid(H1,12,14) would pull 10.240.125.129 for a 14 digit IP, but if the IP address is 12 digits it would pull 10.240.125.1//.

I can add "//" to my vlookup table for the shorter IP addresses which would solve the problem I think, but the problem is when I add *1 to the =mid on these it doesnt recognize it.

I hope this makes since, I probably made it more complicated than it has to be. Thanks in advance for the help.
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Forum statistics

Threads
1,224,599
Messages
6,179,831
Members
452,946
Latest member
JoseDavid

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top