+ Reply to Thread
Results 1 to 11 of 11

Match Values on two sheets

  1. #1
    Forum Contributor
    Join Date
    06-15-2013
    Location
    United States
    MS-Off Ver
    Excel 2016
    Posts
    213

    Match Values on two sheets

    So I'm trying to take the value found in Sheet 1 starting at A2. Switch to sheet 2 and Check Columns A & B to see if it finds a match. If it does then it will take the information from column c on sheet 2 and place it in column b on Sheet 1. If it doesn't find a match it will then just move onto the next one. The example I have given shows the beginning information on Sheet1 and Sheet2 and the final result is shown on Sheet3 and Sheet4. Any help is desperately needed. Thanks again.Test.xlsx
    Last edited by trevor2524; 10-16-2013 at 08:54 PM.

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

    Re: Match Values on two sheets

    Given your example, there are no exact matches.

    I would suggest this as a solution, =IFERROR(OR(VLOOKUP(A2,Sheet2!$A$2:$C$4,3,FALSE),VLOOKUP(A2,Sheet2!$B$2:$C$4,2,FALSE)),"")
    but it will fail because your item in sheet 2 cell B3 has the extra information Disc which Excel does not consider a match for the information in cell A3 in Sheet 1.
    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

  3. #3
    Registered User
    Join Date
    08-19-2013
    Location
    New York, NY
    MS-Off Ver
    Excel 2003
    Posts
    77

    Re: Match Values on two sheets

    Yea that's the problem I see happening. On some of my files the number wont always be by itself it might have some wording before or after the phone number which is why I need to try and find a way for it to look through the entire cell for a match. The second sheet has the disc but the number at the beginning is the same as sheet 1 so it should bring back the correct information. I hope this helped explain exactly what I'm trying to do.

  4. #4
    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,895

    Re: Match Values on two sheets

    I don't know of a solution but will pass it on to others in the forum to look at.

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

    Re: Match Values on two sheets

    Trevor/basketball, please pick 1 ID and stick with it, so as not to confuse other members onthe forum

    Thanks
    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

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Match Values on two sheets

    May be this…

    In B2 Cell of Sheet1 - Array Formula - Requires CTRL+SHIFT+ENTER

    =IF(MAX(IF(ISNUMBER(SEARCH($A2,Sheet2!$A$2:$B$10)),ROW(Sheet2!$A$2:$B$10))),INDEX(Sheet2!C:C,MAX(IF(ISNUMBER(SEARCH($A2,Sheet2!$A$2:$B$10)),ROW(Sheet2!$A$2:$B$10)))),"")

    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.

    Drag it down…

    Extend the range Sheet2!$A$2:$B$10 to your desired range…


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  7. #7
    Forum Contributor
    Join Date
    06-15-2013
    Location
    United States
    MS-Off Ver
    Excel 2016
    Posts
    213

    Re: Match Values on two sheets

    Sorry about that I was logged onto a different computer and didn't realize.

  8. #8
    Forum Contributor
    Join Date
    06-15-2013
    Location
    United States
    MS-Off Ver
    Excel 2016
    Posts
    213

    Re: Match Values on two sheets

    Quote Originally Posted by :) Sixthsense :) View Post
    May be this…

    In B2 Cell of Sheet1 - Array Formula - Requires CTRL+SHIFT+ENTER

    =IF(MAX(IF(ISNUMBER(SEARCH($A2,Sheet2!$A$2:$B$10)),ROW(Sheet2!$A$2:$B$10))),INDEX(Sheet2!C:C,MAX(IF(ISNUMBER(SEARCH($A2,Sheet2!$A$2:$B$10)),ROW(Sheet2!$A$2:$B$10)))),"")

    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.

    Drag it down…

    Extend the range Sheet2!$A$2:$B$10 to your desired range…
    Thank You that worked.

  9. #9
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Match Values on two sheets

    Glad it helps you and thanks for the feedback

  10. #10
    Forum Contributor
    Join Date
    06-15-2013
    Location
    United States
    MS-Off Ver
    Excel 2016
    Posts
    213

    Re: Match Values on two sheets

    Quote Originally Posted by :) Sixthsense :) View Post
    Glad it helps you and thanks for the feedback
    Can I ask you one more thing kinda relating to this. How would you apply the fill effect in the macro so that it fills column b with the formula until column A has no more values.

  11. #11
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Match Values on two sheets

    Try like this…

    Please Login or Register  to view this content.

+ 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. How To Match Values from different sheets and get the sum of those values
    By lofthi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-01-2013, 08:29 AM
  2. Replies: 2
    Last Post: 12-19-2012, 12:25 AM
  3. Apply value from Lookup and match of multiple values from two sheets
    By SAGAWW in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-13-2012, 03:06 PM
  4. Match and Copy Values Between 2 Sheets
    By leo2308 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-11-2009, 08:02 AM
  5. Compare two sheets, copy from one if values match
    By teaker in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-13-2009, 01:27 PM

Tags for this Thread

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