Lookup IP address in Subnet, return location

christy4370

New Member
Joined
Apr 12, 2016
Messages
9
I have 2 sheets in 1 workbook

Sheet 1
JOB IDIP ADDRESSRegionSite
1172.18.04.104

<colgroup><col><col><col><col></colgroup><tbody>
</tbody>

Sheet 2
Display NameAddressHigh RangeRegionLocation(City)
VLAN MS-AD Domain Contoller172.18.04.0172.18.04.256USACity Name

<colgroup><col><col span="2"><col><col></colgroup><tbody>
</tbody>

I'm at my wits end trying to get Region and Location from sheet 2 to sheet 1.
 
LOL... no i see what your looking at! :eek: Sorry for the confusion.

No NA is North America not #N/A as in excel can't find a value. Right now it's returning #N/A...
655172.18.55.44#N/A#N/A

<tbody>
</tbody>

testing172.18.55.0NACity Name




<tbody>
</tbody>
 
Upvote 0

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
LOL... no i see what your looking at! :eek: Sorry for the confusion.

No NA is North America not #N/A as in excel can't find a value. Right now it's returning #N/A...
[...]

I don't think you do for you are still posting the results of some non-working formula, instead of what you expect to see. See your post #9...
 
Upvote 0
no i expect to see NA and CITY NAME, not #N/A as it is showing now. I have data that is returning correctly but some that is not, using the above INDEX statement. I can't figure out why some data is returning #N/A...
 
Upvote 0
no i expect to see NA and CITY NAME, not #N/A as it is showing now. I have data that is returning correctly but some that is not, using the above INDEX statement. I can't figure out why some data is returning #N/A...

I don't want those formula results. I want the true results that must obtain. But if this request is still not intelligible, please just ignore it.
 
Upvote 0
I still need assistance I'm just not sure what i'm confusing you with? I want to see the results not the formula.
 
Upvote 0
Please provide the full data from a line that is indicating #N/A in sheet1 and the data that you believe it should match on sheet2. This might help in finding the difference.

ps: Remember when I said in an earlier post there are people here far better at Array Formula's then I am? @Aladin Akyurek is one of the best I've ever seen. Help him to help you and you'll get the most optimised solution available with the data provided.
 
Upvote 0
Please provide the full data from a line that is indicating #N/A in sheet1 and the data that you believe it should match on sheet2. This might help in finding the difference.

ps: Remember when I said in an earlier post there are people here far better at Array Formula's then I am? @Aladin Akyurek is one of the best I've ever seen. Help him to help you and you'll get the most optimised solution available with the data provided.


I'm trying. Can I load a file on this site? I think that will help the best...
 
Upvote 0
You can't attach a file here but if you upload the file to a file storage / sharing site (e.g. Box or Dropbox) and share the file you can post the share hyperlink here.

Remember to sanitise the file so that there is no sensitive data included.
 
Upvote 0
Upvote 0
Not sure I have the concept, but tried this with the upload.

By the way there are duplicate addresses in B12 and B14 of Subnets sheet so Hong Kong is always returned and never Singapore. Was this a typo?

Row\Col
A​
B​
C​
D​
E​
1​
JOB ID
IP ADDRESSRegionSite
2​
373​
172.21.120.54APACHong Kong=VLOOKUP(LEFT($B2,LOOKUP(1E+306,FIND(".",$B2,ROW($1:$25))))&0,Subnets!$B$2:$D$14,COLUMNS($C:C)+1,0)
3​
374​
172.21.120.55APACHong Kong
4​
375​
172.21.120.59APACHong Kong
5​
376​
172.21.120.62APACHong Kong
6​
377​
172.21.120.63APACHong Kong
7​
378​
172.21.120.101APACHong Kong
8​
379​
172.21.120.103APACHong Kong
9​
380​
172.21.120.104APACHong Kong
10​
381​
172.21.120.253APACHong Kong
11​
646​
172.18.55.33NAGlendale
12​
647​
172.18.55.35NAGlendale
13​
648​
172.18.55.38NAGlendale
14​
649​
172.18.55.37NAGlendale
15​
650​
172.18.55.36NAGlendale
16​
651​
172.18.64.55NATempe
17​
653​
172.18.55.42NAGlendale
18​
654​
172.18.55.43NAGlendale
19​
655​
172.18.55.44NAGlendale
20​
657​
172.19.16.35EMEALondon
21​
659​
172.19.65.93EMEALondon
22​
660​
172.19.65.95EMEALondon
23​
661​
172.19.65.74EMEALondon
24​
662​
172.19.65.75EMEALondon
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,030
Messages
6,128,418
Members
449,449
Latest member
Quiet_Nectarine_

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