+ Reply to Thread
Results 1 to 16 of 16

Link with data in master column within sheet

  1. #1
    Registered User
    Join Date
    10-29-2012
    Location
    NL
    MS-Off Ver
    Excel 2007
    Posts
    8

    Thumbs up Link with data in master column within sheet

    Hi,
    I have a question to make a link from one column with data in the master column?

    192.51.116.1 9c8e.99de.5b521 9c8e.99c9.b1eb GigabitEthernet2/2 ES600 FastEthernet3/1 ES624
    192.51.116.10 0020.4aca.aa72 9c8e.99dd.db6f GigabitEthernet2/2 FastEthernet3/3 ES640
    192.51.116.102 9c8e.99de.b234 9c8e.99de.a5b7 GigabitEthernet2/2 FastEthernet3/3 ES640
    192.51.116.103 001b.78a9.dfb2 0020.4ab0.aca0 GigabitEthernet4/2 Gi1/13 ES181 Fa0/46
    192.51.116.104 001b.78aa.0b5a 9c8e.99dc.5c32 GigabitEthernet4/2 Gi1/13 ES181 Fa0/44
    192.51.116.105 9c8e.99de.f562 0012.79e0.2c25 GigabitEthernet2/2 FastEthernet3/2 ES633
    192.51.116.106 9c8e.99cf.6a70 9c8e.99de.5b52 GigabitEthernet2/2 FastEthernet3/2 ES633
    192.51.116.107 9c8e.99c9.b862 0020.4aca.03a1 GigabitEthernet4/2 Gi1/13 ES182 Fa0/45
    192.51.116.109 9c8e.99c9.b25b 0020.4aca.aa7c GigabitEthernet4/2 Gi1/13 ES182 Fa0/43
    192.51.116.11 0020.4ae4.9c55

    In the above output if there is a match I need to link or sort column C with column B.
    Column A and B have to stick together and also Column C with the data on the right.
    Last edited by pwoud; 10-30-2012 at 10:53 AM. Reason: Solved, thanks again!

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,705

    Re: Link with data in master column within sheet

    It's not very easy to see which data is in which columns - perhaps you could attach a sample workbook (the FAQ describes how) with examples of what you have and what you want to do with it.

    Pete

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Link with data in master column within sheet

    To Attach a File:

    1. Click on Go Advanced
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    10-29-2012
    Location
    NL
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Link with data in master column within sheet

    Hi Pete,

    Thanks for the quick reply!

    I have attached a sample workbook. What I am trying is to Match / Sort the sheet on column B and D.
    If I can couple them I know where column A is connected via column G. I was also thinking to out A and B in a separate sheet, and D to H in another sheet. And then the combined output in a third sheet....

    If you could help that would be great.

    Thanks, Patrick
    Attached Files Attached Files

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,705

    Re: Link with data in master column within sheet

    I'm a bit confused with this. Your first post referred to columns B and C, but column C is empty in your attached file. Also, you have some records with missing data in columns D to I.

    I don't know what you mean by "Match / Sort" on columns B and D. Do you mean you want to see if any of column D entries match with column B (or vice-versa), or do you mean that you want to sort the data using columns B and D as the sort fields?

    Please try to explain more clearly what you want to end up with.

    Pete

  6. #6
    Registered User
    Join Date
    10-29-2012
    Location
    NL
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Link with data in master column within sheet

    Hi,
    In this sheet column C is empty because of a try-out. What I am trying is the following: A and B are the master records, which is a long list. What I tried is to take the first record in D1, when this record also exist in column B then take the record from A and put it in column C.

    So f.e. D3=001a.4bbc.606e, this also exist in B120 and the data in A120 is 192.61.22.168 and this gets copied to C3.
    The end result would be: 192.61.22.168 001a.4bbc.606e GigabitEthernet4/2 USDPKES101 Gi1/13 ES181

    The left A and B columns have the long list with the complete data and for the columns from D to the right I need to make a link with column A via B.

    Hope this clears what I am trying...

    Thanks, Patrick

    PS just saw that I forgot to remove the duplicates from A and B, these will be removed. is not relevant.

  7. #7
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,705

    Re: Link with data in master column within sheet

    Okay, put this formula in C1:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    then copy down as far as you have data in column D.

    Hope this helps.

    Pete

  8. #8
    Registered User
    Join Date
    10-29-2012
    Location
    NL
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Link with data in master column within sheet

    Deleted by Mod - duplicate post removed. is not relevant.
    Last edited by FDibbins; 10-30-2012 at 10:16 AM.

  9. #9
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,705

    Re: Link with data in master column within sheet

    Isn't this exactly the same post as post #6, and didn't I answer it with post #7 ?

    Pete

  10. #10
    Registered User
    Join Date
    10-29-2012
    Location
    NL
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Link with data in master column within sheet

    eh, maybe it's me...
    where do I find the number of the post?

  11. #11
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,705

    Re: Link with data in master column within sheet

    It's in the top right corner of the post - opposite the date and time.

    Pete

  12. #12
    Registered User
    Join Date
    10-29-2012
    Location
    NL
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Link with data in master column within sheet

    :-) within this post....

    don't know buy my reply was posted twice!

    I tried it with other items, but IFERROR...
    Great thanks, it works!

    Is it possible to also combine it with a vlookup?
    The outcome of this formula in D1, to compare the value in column A of another sheet. If yes, put the value of that column B in this sheet at column I?

    Thanks, Patrick

  13. #13
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,705

    Re: Link with data in master column within sheet

    Something like this in cell i1:

    =IFERROR(VLOOKUP(D1,'sheet name'!A:B,2,0)),"")

    Put the name of the sheet in the formula, then copy down.

    Hope this helps.

    Pete

  14. #14
    Registered User
    Join Date
    10-29-2012
    Location
    NL
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Link with data in master column within sheet

    Hi,

    There is still something missing! I changed it to:
    =IFERROR(VLOOKUP(C1,Sheet2!A:B,2,0),"")

    So the data in C is compared with A in sheet 2 and when matched the data from sheet2 B goes to I...

    But I don't get the output...

    Thanks, Patrick
    Attached Files Attached Files

  15. #15
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,705

    Re: Link with data in master column within sheet

    That's because there are no matches with column A of Sheet2. Apply the filter to column C and you will see that the values vary from 192.61.22.67 and the final number increases up to 255, but in column A the largest number is 192.61.22.64, so there is no match. Put some more data in Sheet2 and ensure that you copy the formula in i1 down the column.

    Hope this helps.

    Pete

  16. #16
    Registered User
    Join Date
    10-29-2012
    Location
    NL
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Link with data in master column within sheet

    Hi,

    Thanks a lot! Everything works now, removed one ) and put some more data in the second sheet.

    Thanks again...

    Regards, Patrick

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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