+ Reply to Thread
Results 1 to 4 of 4

Columns comparison

Hybrid View

girish1989 Columns comparison 12-26-2013, 11:27 PM
alvin-chung Re: Columns comparison 12-27-2013, 12:31 AM
FDibbins Re: Columns comparison 12-27-2013, 12:55 AM
alvin-chung Re: Columns comparison 12-27-2013, 12:59 AM
  1. #1
    Registered User
    Join Date
    03-04-2013
    Location
    Bangalore
    MS-Off Ver
    Excel 2011
    Posts
    14

    Columns comparison

    Hi All.

    I need a great help.
    I have 4 columns say A B C D.
    I need to compare together if each values in column A and Column B present in Column C and Column D array.
    Example:-

    A B C D
    1 A 1 A
    23 B 3 C
    3 C dfg sdfg
    4 D df dffs
    5 E dsf fsdf


    So on comparison v get only (1,A) and (3,C)
    pls do get me the formula so that I can replicate for others.

    Thanks

  2. #2
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: Columns comparison

    Hi, this formula shall lead you to your objective (i.e. you'll get either matched row or #N/A if no matched for the result)
    Formula: copy to clipboard
    =MATCH(A1&B1,C$1:C$5&D$1:D$5,0)


    _______________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

  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
    53,049

    Re: Columns comparison

    alvin, you forgot to add that that is an ARRAY formula...
    confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    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
    Valued Forum Contributor
    Join Date
    12-25-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2016
    Posts
    506

    Re: Columns comparison

    Oppsss.. Thanks Ford for putting it up


    _______________________________________________________
    1. Click on the * Add Reputation if you think someone helped you
    2. Mark your thread as SOLVED when question is resolved

    Alvin

+ 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. Comparison between 4 columns
    By johnmathew in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-09-2012, 01:59 AM
  2. Comparison between 1 value and 2 columns
    By cycloop in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-20-2011, 08:08 AM
  3. Automated comparison between two columns
    By Laura C in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-22-2010, 03:28 PM
  4. Comparison of data in columns
    By anushazy in forum Excel General
    Replies: 1
    Last Post: 06-23-2009, 08:14 AM
  5. Number Columns Comparison
    By cjspeers in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-03-2005, 06:34 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