+ Reply to Thread
Results 1 to 8 of 8

Matching help

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    09-05-2012
    Location
    PLYMOUTH ,MI
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    109

    Matching help

    Hello All,
    I need some help with some matching data and i only have first and last names to go off of which can be a pain cause there is multiple orders on some. I need to look up 3 different fields between to tabs in a workbook which checks for last name, first name , and the product as a 3 verification. And then show a value in a cell to show true or false...So on sheet1 I have last name in column C, first name in D and the product J, On the sheet i need to match all that information with is on sheet2, lastname in P first name in O and the product in D. Or maybe someone may have a better way to match this stuff up, Im all ears.

    See attached please
    all advice and help greatly appreciated
    Attached Files Attached Files
    Last edited by SPIG; 10-31-2017 at 10:16 AM.

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,446

    Re: Matching help

    Hi,

    Does this work for you?

    Formula: copy to clipboard
    =SUMPRODUCT((Walmart!$P$1:$P$1846=C2)*(Walmart!$O$1:$O$1846=D2)*(Walmart!$D$1:$D$1846=J2))>0


    in P2 and copied down the list of data..
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Forum Contributor
    Join Date
    09-05-2012
    Location
    PLYMOUTH ,MI
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    109

    Re: Matching help

    This works Great thank you

  4. #4
    Forum Contributor
    Join Date
    09-05-2012
    Location
    PLYMOUTH ,MI
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    109

    Re: Matching help

    Quote Originally Posted by sweep View Post
    Hi,

    Does this work for you?

    Formula: copy to clipboard
    =SUMPRODUCT((Walmart!$P$1:$P$1846=C2)*(Walmart!$O$1:$O$1846=D2)*(Walmart!$D$1:$D$1846=J2))>0


    in P2 and copied down the list of data..


    This works Great... Thanks

  5. #5
    Forum Contributor
    Join Date
    09-05-2012
    Location
    PLYMOUTH ,MI
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    109

    Re: Matching help

    Quote Originally Posted by sweep View Post
    Hi,

    Does this work for you?

    Formula: copy to clipboard
    =SUMPRODUCT((Walmart!$P$1:$P$1846=C2)*(Walmart!$O$1:$O$1846=D2)*(Walmart!$D$1:$D$1846=J2))>0


    in P2 and copied down the list of data..


    This works great as well thank you

  6. #6
    Valued Forum Contributor
    Join Date
    12-01-2016
    Location
    Planet Earth
    MS-Off Ver
    95 - 2016
    Posts
    343

    Re: Matching help

    use =IFERROR(IF(MATCH(1,(D2=Walmart!O:O)*(C2=Walmart!P:P)*(J2=Walmart!D:D),0),"TRUE",),"FALSE")

    This is an array formula, you must simultaneously press the SHIFT + CTRL +ENTER keys to activate it (simply pressing the ENTER key will result in a false/positive answer or an error.)
    Drag the formula down to last entry


    See attachment
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    09-05-2012
    Location
    PLYMOUTH ,MI
    MS-Off Ver
    Microsoft Excel 2010
    Posts
    109

    Re: Matching help

    Quote Originally Posted by Syrkrasi View Post
    use =IFERROR(IF(MATCH(1,(D2=Walmart!O:O)*(C2=Walmart!P:P)*(J2=Walmart!D:D),0),"TRUE",),"FALSE")

    This is an array formula, you must simultaneously press the SHIFT + CTRL +ENTER keys to activate it (simply pressing the ENTER key will result in a false/positive answer or an error.)
    Drag the formula down to last entry


    See attachment

    This works great. Just have to remember to make it an array
    Thanks

  8. #8
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,926

    Re: Matching help

    What you are trying to do here is similar to a composite key in a database. What makes a record unique in this "database" is the combination of first name, last name and product description. Except that it isn't unique, but more about that later.

    When comparing items like this make a "composite key" by concatenating the pieces together. I normally like to put in a delimiter to make it easier to read and this sometimes also removes ambiguity.=[@[First Name]]&":"&[@[Last Name]]&":"&[@[Item Name]]

    I put things in Excel Tables because they duplicate formulas down and they know how big they are so that formulas that reference them don't have to change when the size of the data changes. Also, you can use column header names in formulas which makes them easier to understand.

    Then match the composites of one table against the composites in the other table. =ISNUMBER(MATCH([@Composite],Table_WM[Composite],0)) - this formula yields TRUE if a match is found and FALSE if a match is not found.

    Now to the second problem: The Pivot Sheet indicates that you have duplicate data. The same customer has ordered the same item multiple times. For example Debbie Coatney is really into popcorn. The match column only indicates that at least one payment has been made. So Debbie could have been paid only once for the 8 orders. I added an additional column to indicate how many payments have been made.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

+ 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: 18
    Last Post: 10-08-2017, 04:17 AM
  2. Replies: 7
    Last Post: 09-16-2017, 11:58 AM
  3. [SOLVED] Alter Matching Sub From matching two Ranges to matching one range and list
    By capson in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-14-2015, 10:48 PM
  4. Replies: 5
    Last Post: 01-31-2014, 09:59 AM
  5. Finding Matching Data in one Column/Adding corresponding matching string value.
    By swade730 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-02-2013, 07:23 PM
  6. Replies: 2
    Last Post: 04-11-2013, 11:14 AM
  7. SQL Query to get count of matching & non-matching data from two tables
    By Kiran2012 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-13-2013, 10:32 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