VLOOKUP and IP Addresses

meppwc

Well-known Member
Joined
May 16, 2003
Messages
604
Office Version
  1. 365
Platform
  1. Windows
I use VLOOKUP often, but this is the first time that I am using it with IP addresses.
I keep getting the #VALUE error.
Example
Sheet 1, A1 contains the value 10.10.10.1
Sheet 2, A1:B3 contains
10.10.10.1 and cell1
10.10.10.2 and cell2
10.10.10.3 and cell3
The formula on sheet1, cell B1 is =VLOOKUP(A1, 'Sheet2 $A$1:$B$3, FALSE, 2)
I would expect that this formula returns "cell1"

Any input greatly appreciated
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
You have the final two arguments in the vlookup the wrong way round. ;)
 
Upvote 0
Your arguments are in wrong order, try:
Code:
=VLOOKUP(A1,Sheet2!$A$1:$B$3,2,0)
Swap 2 with FALSE (FALSE = 0 in formula or VBA)
 
Upvote 0
omg..............i need more sleep..........ty............sorry for even posting this
 
Upvote 0

Forum statistics

Threads
1,214,593
Messages
6,120,434
Members
448,961
Latest member
nzskater

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