+ Reply to Thread
Results 1 to 6 of 6

extracting a corresponding value from col L if columns B-K match in 2 sheets

  1. #1
    Registered User
    Join Date
    08-25-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    8

    extracting a corresponding value from col L if columns B-K match in 2 sheets

    I have 2 tabs on my spreadsheet, with columns A-K containing the same data columns, although contents may vary.

    I need to enter the Reference from column L on sheet b into the corresponding column L on sheet a if the data in columns B to K matches.

    I have had a go at the formula based on other threads here, but it doesn't seem to produce a result. It may be because I am not entering it as an array correctly and so cant get the wobbly brackets without typing them in (which still doesn't seem to work anyway!)

    Help!
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    08-05-2013
    Location
    USA
    MS-Off Ver
    2010
    Posts
    76

    Re: extracting a corresponding value from col L if columns B-K match in 2 sheets

    Try this on 'sheet a' cell L1: =IF(SUMPRODUCT((A1:K1='Sheet b'!A1:K1)*1)=11,'Sheet b'!L1,FALSE) and drag down.

  3. #3
    Registered User
    Join Date
    08-25-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: extracting a corresponding value from col L if columns B-K match in 2 sheets

    That has done the trick. Perfect. Thank you so much

  4. #4
    Registered User
    Join Date
    08-25-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: extracting a corresponding value from col L if columns B-K match in 2 sheets

    Sorry, Jeffr27
    I have just added some extra data to this sample and there is one thing that doesn't quite work:
    I should have said that the row contents do not exactly match between the spreadsheets as there is different data on each sheet, but SOME rows match. Is there a way to change the formula slightly to reflect this? Example attached. I am looking for a match on the whole sheet rather than just the corresponding row. Hope this makes sense?
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    08-05-2013
    Location
    USA
    MS-Off Ver
    2010
    Posts
    76

    Re: extracting a corresponding value from col L if columns B-K match in 2 sheets

    Diane, I added a column to concatenate columns A-K for both sheets and then compared the results (see attached). I'm sure there's a way to do it without adding a new column, but it's not coming to me yet. Let me know if this works.

    Oh, and on your original post, you can't enter array formulas by manually typing in the curly brackets. You have to press Ctrl+Shift+Enter instead of just Enter when typing your formula.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    08-05-2013
    Location
    USA
    MS-Off Ver
    2010
    Posts
    76

    Re: extracting a corresponding value from col L if columns B-K match in 2 sheets

    I figured it out without adding the concatenate column. Put this rather lengthy formula in L1: =IFERROR(INDEX('Sheet b'!$L$1:$L$5,SUMPRODUCT((A1='Sheet b'!$A$1:$A$5)*(B1='Sheet b'!$B$1:$B$5)*(C1='Sheet b'!$C$1:$C$5)*(D1='Sheet b'!$D$1:$D$5)*(E1='Sheet b'!$E$1:$E$5)*(F1='Sheet b'!$F$1:$F$5)*(G1='Sheet b'!$G$1:$G$5)*(H1='Sheet b'!$H$1:$H$5)*(I1='Sheet b'!$I$1:$I$5)*(J1='Sheet b'!$J$1:$J$5)*(K1='Sheet b'!$K$1:$K$5)*ROW('Sheet b'!$A$1:$A$5))),FALSE)

    This formula checks each column for a match and returns the row number if a row match is found. However, this formula requires there are no duplicate rows on sheet b (ex. row 2 and row 4 cannot be the same because the formula would return row 2 + row 4 = row 6).
    Last edited by jeffr27; 09-16-2013 at 01:26 PM.

+ 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] Match columns between sheets and use corresponding data
    By SidVicious in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-07-2013, 02:17 PM
  2. Replies: 0
    Last Post: 10-25-2012, 03:38 PM
  3. Match two columns over two sheets
    By HangMan in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-24-2012, 10:08 AM
  4. Replies: 2
    Last Post: 06-29-2011, 01:36 PM
  5. Macro to match columns in two sheets
    By shekar goud in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-24-2009, 05:40 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