• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 597
  • Last Modified:

Vlookup for IP

I seem to have VLOOKUP on IP.  It looks up a total wrong IP. I can not figure out why.  I have sheet1 that have the I.P. address in column B that I try to lookup. In sheet2, it has list of IP that I try to lookup and put result of the VLOOKUP into column A of sheet1.  But as you can see the result is not quite right.
Can anyone help?  I attached  the file.
testVLookup.xlsx
0
tommym121
Asked:
tommym121
2 Solutions
 
Missus Miss_SellaneusCommented:
Add ", FALSE" at the end of your VLOOKUP like this:

=IFERROR(VLOOKUP($B2,Sheet2!$A$1:$A$161, 1,FALSE),"")
0
 
Zack BarresseCEOCommented:
Yeah, you're doing an approximate match. Make it an exact match, like Missus Miss_Sellaneus says, and it will be just fine. Here is a good resource:

https://exceljet.net/excel-functions/excel-vlookup-function

Regards,
Zack Barresse
0
 
tommym121Author Commented:
Thanks,
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now