+ Reply to Thread
Results 1 to 2 of 2

How to match 2 lists and conditionally copy value of one onto the other (pic says all)

  1. #1
    Registered User
    Join Date
    10-30-2018
    Location
    Sydney
    MS-Off Ver
    1809
    Posts
    1

    How to match 2 lists and conditionally copy value of one onto the other (pic says all)

    Hi,

    What I want to do seems obvious, but I can't seem to find or understand the right approach (IF, VLOOKUP, etc.) to fulfil it.
    If you would consider the below picture (posting seperatly due to issues): I want to have two lists in Excel; List 1/Column A should be the final list containing company names and Column B should contain their corresponding HQ Towns. Columns C and D are like a working document; a copy paste from an external source such as wikipedia with Company names and their HQ towns. When all data from that source is matched, I would copy paste column B as to keep the value (unconditional, so no longer the result of a function).

    The aim is to save myself the time now and in the future of manually matching those lists and copy pasting the variables of interest (such as HQ Town) behind the company names.

    What I think the logic should be (but can't translate to Excel language): For each columns C and D, the values next to each other on the same row (e.g. C2 and D2) 'stick' together, while values (words) in column A trigger a copy (D) paste (into B) if they wholly or partially contain the word in column C.

    Any help please?
    Cheers
    Attached Images Attached Images

  2. #2
    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,933

    Re: How to match 2 lists and conditionally copy value of one onto the other (pic says all)

    Hi, welcome to the forum

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    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

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Conditionally format cells if DOB does not match age
    By kersplash in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-07-2018, 06:26 AM
  2. [SOLVED] if two cells match show value and then conditionally format.
    By M12NIX in forum Excel General
    Replies: 2
    Last Post: 02-24-2017, 02:04 AM
  3. [SOLVED] if two cells match show value and then conditionally format.
    By M12NIX in forum Excel General
    Replies: 2
    Last Post: 02-01-2017, 12:25 PM
  4. Match 2 lists and copy adjacent value
    By SarahPintal in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-01-2010, 10:36 PM
  5. Conditionally hide drop down lists
    By 31RHCP in forum Excel General
    Replies: 0
    Last Post: 07-13-2010, 08:26 PM
  6. conditionally copy data from one tab to another
    By tuman84 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-27-2010, 04:32 PM
  7. Conditionally format IF, ISNUMBER, MATCH
    By mpendle in forum Excel General
    Replies: 2
    Last Post: 01-14-2009, 01:34 PM

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