Results 1 to 6 of 6

Lookup IP addresses and map subnet against it

Threaded View

  1. #1
    Registered User
    Join Date
    03-02-2022
    Location
    Abu Dhabi, UAE
    MS-Off Ver
    Office 365
    Posts
    6

    Question Lookup IP addresses and map subnet against it

    I have a file at work that has two sheets; "Subnet Info" & "Machine Info".

    The Subnet Info sheet has the subnet details, like the subnet network address in one column (let's say A e.g. A2 = 10.10.0.0) & the mask in the other column (let's say B e.g. B = 16 where 16 means /16). Please see the image below.

    Clipboard Picture (2022.03.02 11.32.22).png

    The Machine Info sheet has the IP address of the servers in the environment along with some other information. What I want to achieve is that in the column (let's say D, marked in red in the picture), we look up the machine IP address and understand which IP range it falls under based on the subnet from the Subnet Info sheet and return that in Column D.

    Clipboard Picture (2022.03.02 11.34.04).png

    I know this is a forum to get help and not a job request, but I don't know where to start. Can this be done with Formula or VBA macro better? If yes can someone point me in the right direction? If someone has written something similar and can share that, it will be highly appreciated.

    Please find the sample file attached.

    P.S: I have data in the range of 200+ subnets and 2000+ in the machine info sheet.
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. LOOKUP function to return email addresses
    By shakra888 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-20-2021, 03:49 AM
  2. Verify a list of addresses with the USPS zip code lookup tool
    By GJL65 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-15-2021, 08:52 PM
  3. Lookup IP address in Subnet, return location
    By christy4370 in forum Excel General
    Replies: 5
    Last Post: 04-13-2016, 05:18 AM
  4. LOOKUP IF - email addresses Country and Company
    By Texastom123 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-11-2014, 12:38 PM
  5. [SOLVED] Nested If revolving around IP addresses & subnet masks
    By Uthar in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-19-2013, 12:49 PM
  6. Need to take an IP Subnet Range and Output Subnet Mask
    By Markh7999 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-12-2013, 08:53 PM
  7. Conditional lookup and moving of addresses
    By sabbur in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-25-2009, 02:14 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1