+ Reply to Thread
Results 1 to 4 of 4

Lookup data from one column, replace found data in from another..

Hybrid View

  1. #1
    Registered User
    Join Date
    07-23-2012
    Location
    Melborne, AU
    MS-Off Ver
    Excel 2010
    Posts
    3

    Lookup data from one column, replace found data in from another..

    Hi All,

    Have been searching for something to deal with this which I am sure is really simple, but I can't get my head around it.

    I have two sheets:

    Data
    Lookup

    In Data is a list of IP addresses in two columns...source and destination.

    For both columns, i'd like the IP addresses to be replaced with the corresponding name in the Lookup sheet.

    See the attached as an example...I've included a sheet which shows what I expect to be returned.

    I'm sure its a simple Vlookup or something but not sure how that works if you want it to replace the contents of the original cell.. Or would it need to go into a new worksheet?

    Hope someone can help!
    Attached Files Attached Files

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: Lookup data from one column, replace found data in from another..

    i think you should go to another sheet for the expected results...

    Lookup Example.xlsx
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Registered User
    Join Date
    07-23-2012
    Location
    Melborne, AU
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Lookup data from one column, replace found data in from another..

    Thanks vlady,

    That seems to almost do what I need, however If i fill down the data sheet, I can't pull down the formula's in new sheet? Comes up with N/A

    It needs to be versatile enough for me to put a whole list of information into the lookup sheet, and then each cell should check against that info.

    I assume you would need to use $ values when specifying the data/lookup table?

    Wonder if you could automate this with a macro of some sort.

  4. #4
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: Lookup data from one column, replace found data in from another..

    source column

    =IFERROR(INDEX(Lookup!$B$2:$B$7,MATCH(Data!A2,Lookup!$A$2:$A$7,0)),"")
    destination column
    =IFERROR(INDEX(Lookup!$B$2:$B$7,MATCH(Data!B2,Lookup!$A$2:$A$7,0)),"")
    packets column

    =IFERROR(INDEX(Data!$C$2:$C$4,MATCH(INDEX(Lookup!$A$2:$A$7,MATCH(A2,Lookup!$B$2:$B$7,0)),Data!$A$2:$A$4,0)),"")
    bytes column

    =IFERROR(INDEX(Data!$D$2:$D$4,MATCH(INDEX(Lookup!$A$2:$A$7,MATCH(A2,Lookup!$B$2:$B$7,0)),Data!$A$2:$A$4,0)),"")
    you have to change all ranges according to the "data and lookup table"

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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