+ Reply to Thread
Results 1 to 2 of 2

Cross-reference cell contents from multiple cells, based on previous cross-reference

  1. #1
    Registered User
    Join Date
    05-03-2022
    Location
    Finland
    MS-Off Ver
    365
    Posts
    2

    Cross-reference cell contents from multiple cells, based on previous cross-reference

    Hi,


    I'm relatively new to Excel so please apologize me if the question is rather trivial to you.

    To give some context, assume I have two sets of data, something like this:

    Data 1:

    NAME AGE
    JOHN 29
    JACK 36

    Data 2:

    NAME AGE
    JOHN 35
    JACK 29

    Now from those two sets of data, I want to cross-reference if the name "JOHN" is found on both of them. I've chosen to approach this problem with the following function:

    =NOT(ISERROR(MATCH(A2; $I$2:$I$6500; 0)))

    Which gives me the output if "JOHN" is found within I2-I6500. My problem is in the next step: I want to cross-reference that I find a match for both values, name and age, and the latter must be based on the same row where the first match was found. So, if I find match for name "JOHN" let's say in cell I500, I want my function to look for match for the age value in row 500 as well (that'd most likely be cell J500, then).

    If I just copy the function to apply for values in other cells, that will just lead it to matching any age found in the range I'm using, in this case it would then match the age value from "JACK" to what I'm looking to find out for "JOHN", so that won't obviously work.

    Any suggestions what would be the best way to approach this problem? I'm sure there's a solution where I can use one function and apply it to cover multiple cells, but just don't find an angle for this...

    Thanks a lot!

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,929

    Re: Cross-reference cell contents from multiple cells, based on previous cross-reference

    I would do it with Power Query where I have two files Data and Data(2) with names and ages

    Here is a sample Mcode

    Please Login or Register  to view this content.
    Power Query is a free AddIn for Excel 2010 and 2013, and is built-in functionality from Excel 2016 onwards (where it is referred to as "Get & Transform Data").

    It is a powerful yet simple way of getting, changing and using data from a broad variety of sources, creating steps which may be easily repeated and refreshed. I strongly recommend learning how to use Power Query - it's among the most powerful functionalities of Excel.


    - Follow this link for an introduction to Power Query functionality.

    - Follow this link for a video which demonstrates how to use Power Query code provided.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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. Replies: 6
    Last Post: 11-19-2015, 09:36 PM
  2. Data Cross Reference (validation) based on Text in a Cell
    By kwjoh in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-06-2015, 01:57 AM
  3. [SOLVED] Cross reference with multiple instances in reference data
    By Nick F in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-08-2013, 10:31 AM
  4. Cross-reference between cells
    By zepelin in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 02-25-2013, 10:08 AM
  5. Cross Reference with multiple values
    By Hex1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-28-2013, 09:40 PM
  6. Cross Reference Cells
    By HiDbLevel in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-01-2008, 02:42 AM
  7. How to Cross Reference Cells
    By Herman111552 in forum Excel General
    Replies: 6
    Last Post: 03-24-2008, 11:10 AM

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