+ Reply to Thread
Results 1 to 7 of 7

Comparing One Column Against Many Columns, - Displaying matching result..

  1. #1
    Forum Contributor
    Join Date
    02-10-2007
    MS-Off Ver
    Excel 2010
    Posts
    293

    Comparing One Column Against Many Columns, - Displaying matching result..

    Hi,

    I'm trying to compare (Column H) in Table 2 against Columns A, B, and C in Table 1.

    Basically if email address in column H, is an exact match with either column a,b, or c, then in column L, display the corresponding value from column F, if no match, then leave blank.

    For reference in column K, i have a formula = IF(OR(ISNUMBER(MATCH(H3,A:A,0)),ISNUMBER(MATCH(H3,B:B,0)),ISNUMBER(MATCH(H3,C:C,0))),"Y","N"),

    Which compares column H from table 2 against columns A,B, or C, from table 1, then displays "yes" if it matches, "no" if not a match.

    What I'm looking for now is, if it matches either of columns, then do a vlookup...

    The desired result is in column L, please see attached file for reference.

    Thanks in advance.
    Last edited by VegasL; 01-06-2016 at 03:00 PM.

  2. #2
    Forum Contributor
    Join Date
    07-16-2013
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2013
    Posts
    176

    Re: Comparing One Column Against Many Columns, - Displaying matching result..

    I see this over and over again, we need crazy formula because the data is poorly structured. This formula will achieve your purpose:

    Please Login or Register  to view this content.

    If possible, I recommends your tb1 structure should be like so for efficiency.

    First Name Last Name Comments Email Email ID
    John Doe Funny [email protected] Email 1
    Tee Vee Not Funny [email protected] Email 1
    Ray DeeO Very Funny [email protected] Email 1
    John Doe Funny [email protected] Email 2
    Ray DeeO Funny [email protected] Email 2
    John Doe Funny [email protected] Email 3
    Last edited by igoodable; 01-06-2016 at 03:07 PM.

  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,929

    Re: Comparing One Column Against Many Columns, - Displaying matching result..

    Seems FlameTetired is still having a problem opening the attachment above.

    Dave, see if this helps?
    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
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Comparing One Column Against Many Columns, - Displaying matching result..

    Ford,

    That's super. That copy opens fine.

    Thank you.
    Dave

    Edit: And now so does the other one .... Pffft!
    Last edited by FlameRetired; 01-06-2016 at 07:21 PM.
    Dave

  5. #5
    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,929

    Re: Comparing One Column Against Many Columns, - Displaying matching result..

    Awesome, wonder why the other 1 did not, 6String also did not have a problem

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Comparing One Column Against Many Columns, - Displaying matching result..

    Quote Originally Posted by FDibbins View Post
    Awesome, wonder why the other 1 did not, 6String also did not have a problem
    Gremlins !!!! It opens now.

  7. #7
    Forum Contributor
    Join Date
    02-10-2007
    MS-Off Ver
    Excel 2010
    Posts
    293

    Re: Comparing One Column Against Many Columns, - Displaying matching result..

    Thanks all + igoodable. you're formula works great. appreciate your help!

+ 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. Comparing 2 Excel Columns and displaying discrepancies
    By Aralei in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-18-2014, 09:21 PM
  2. [SOLVED] comparing the rows in different columns and displaying the results
    By gencoglu27 in forum Excel General
    Replies: 12
    Last Post: 07-23-2013, 05:31 AM
  3. Moving through columns and displaying a different result in each through VBA
    By seigna in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-07-2013, 11:34 AM
  4. [SOLVED] Comparing two columns and displaying a third value if they match
    By pdxcollegegrl in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-29-2012, 12:46 PM
  5. Comparing 4 columns and displaying duplicate entries
    By Tonx in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-28-2012, 03:26 AM
  6. [SOLVED] Comparing 2 columns and Displaying the associated row in another column
    By William123 in forum Excel General
    Replies: 25
    Last Post: 04-12-2012, 08:18 AM
  7. Excel 2007 : Comparing and matching two text columns
    By Bizzielizzie in forum Excel General
    Replies: 2
    Last Post: 04-11-2012, 09:50 AM
  8. [SOLVED] Comparing data and matching between columns
    By bunjijumper in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-20-2010, 02:58 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