+ Reply to Thread
Results 1 to 4 of 4

Comparing adjacent cell if match is found

  1. #1
    Registered User
    Join Date
    09-27-2013
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    2

    Comparing adjacent cell if match is found

    First off, I would like to thank everyone that takes the time to share their knowledge of Excel on this forum. I have learned a lot by reading and will continue to do so. However, I am stumped on this one. I have searched for a solution for the better part of the day today and have not found a viable solution. For all I know, I may be searching using incorrect keywords. I am hopeful that there is a simple formula or solution that I am simply overlooking.

    I have a spreadsheet that I need to compare multiple columns but I am unable to get an INDEX-MATCH to work properly. I am able to get it to work on a condensed version of the spreadsheet, but when I put it into the complete spreadsheet, I begin getting REF errors.

    I am going to try to attach a sample of how the data is laid out and the (hoped for) expected results. I have never done this, so if it does not attach then I will try again.

    Many thanks in advance!

    Bobby
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Comparing adjacent cell if match is found

    In C20, enter =IFERROR(INDEX($H$1:$H$10,MATCH(B20&A20,$F$1:$F$10&$G$1:$G$10,0)),"") with Ctrl + Shift + Enter keys together.

  3. #3
    Registered User
    Join Date
    09-27-2013
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Comparing adjacent cell if match is found

    Oh wow! Just like that, huh? Dude! Your too awesome! Thanks!! It worked just like I had envisioned it would!

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Comparing adjacent cell if match is found

    Here's another one.

    This is more efficient compared to range concatenation.

    This array formula** entered in C1 and copied down:

    =IFERROR(INDEX(H$1:H$10,MATCH(1,(F$1:F$10=B1)*(G$1:G$10=A1),0)),"")

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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: 3
    Last Post: 03-04-2014, 04:55 AM
  2. [SOLVED] VBA to copy & Paste Adjacent cell when value found
    By shiva_reshs in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 09-12-2013, 10:47 AM
  3. [SOLVED] Match one cell with another, if match found copy adjacent cells
    By Xiophoid in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-07-2013, 05:50 AM
  4. [SOLVED] If value found in column, then adjacent cell in value's row...
    By frankly75 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-17-2013, 12:51 PM
  5. [SOLVED] VBA Code - Compare Adjacent Cells In two columns and clear contents when a match is found
    By Langer101 in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 01-03-2013, 06:22 AM
  6. [SOLVED] Macro to find text and if found, copy an adjacent cell into a different cell
    By Raulus in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-22-2012, 09:57 AM
  7. [SOLVED] Comparing Two Columns and Copy Adjacent Column IF Match Found
    By 10AVATAR in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 09-29-2012, 04:33 PM
  8. Comparing 2 columns- if a match is found return a value in 3rd column
    By lineson in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 12-20-2011, 04:48 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