+ Reply to Thread
Results 1 to 14 of 14

Comparing and matching data

Hybrid View

  1. #1
    Registered User
    Join Date
    06-22-2014
    Location
    Doha
    MS-Off Ver
    2013
    Posts
    87

    Comparing and matching data

    Dear I have three columns in one sheet and three columns in another sheet ; want to compare both columns and if all three entries are matching gives me the fourth column (date )as result


    sheeti sheet2
    1 2 3 4 1 2 3
    13332545669 14432545669 625691 12-Dec-15 13332545669 14432545669 625691
    13332545670 14432545670 525691 13-Dec-15 13332545670 14432545670 525691
    13332545671 14432545671 452146 14-Dec-15 13332545671 14432545671 452146
    13332545672 14432545672 586233 15-Dec-15 13332545672 14432545672 586233
    13332545673 14432545673 265465 16-Dec-15 13332545673 14432545673 265465
    13332545674 14432545674 516112 17-Dec-15 13332545674 14432545674 516112
    13332545675 14432545675 215135 18-Dec-15 13332545675 14432545675 215135
    13332545676 14432545676 114162 19-Dec-15 13332545676 14432545676 114162
    13332545677 14432545677 114166 20-Dec-15 13332545677 14432545677 114166
    13332545678 14432545678 548465 21-Dec-15 13332545678 14432545678 548465
    13332545679 14432545679 165165 22-Dec-15 13332545679 14432545679 165165
    13332545680 14432545680 566513 23-Dec-15 13332545680 14432545680 566513
    13332545681 14432545681 321155 24-Dec-15 13332545681 14432545681 321155
    13332545682 14432545682 235161 25-Dec-15 13332545682 14432545682 235161
    13332545683 14432545683 154154 26-Dec-15 13332545683 14432545683 154154
    13332545684 14432545684 165165 27-Dec-15 13332545684 14432545684 165165
    13332545685 14432545685 212122 28-Dec-15 13332545685 14432545685 212122
    13332545686 14432545686 184815 29-Dec-15 13332545686 14432545686 184815
    13332545687 14432545687 101154 30-Dec-15 13332545687 14432545687 101154
    13332545688 14432545688 203215 31-Dec-15 13332545688 14432545688 203215
    13332545689 14432545689 203202 1-Jan-16 13332545689 14432545689 203202
    13332545690 14432545690 651616 2-Jan-16 13332545690 14432545690 651616
    13332545691 14432545691 201112 3-Jan-16 13332545691 14432545691 201112
    13332545692 14432545692 231413 4-Jan-16 13332545692 14432545692 231413

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Comparing and matching data

    Was it intentional that EVERY row matched? BtW, next time, please post an Excel sheet. It takes a bit of time to reproduce what you dumped on the screen in an Excel sheet to enable is to test the formulae.

    =IFERROR(INDEX(Sheet1!$D$1:$D$24,MATCH(1,INDEX((Sheet1!$A$1:$A$24=$A1)*(Sheet1!$B$1:$B$24=$B1)*(Sheet1!$C$1:$C$24=$C1),0),0)),"")
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    06-22-2014
    Location
    Doha
    MS-Off Ver
    2013
    Posts
    87

    Re: Comparing and matching data

    Dear

    Surely next time; can you explain the formula step wise please. You are genius

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Comparing and matching data

    The formula returns values from column D of sheet1 based on three criteria. - that the data in columns A, B and C match those in sheet 1. The * between each statement implies AND; ie that column A AND column B AND column C all match. You can follow the individual steps that Excel goes through by going: FORMULAS/FORMULA AUDITING/EVALUATE FORMULA.

    The box that opens up is IRRITATINGLY small and cannot be resized, but you can step-by-step follow what it's doing.

    So... Great! I'm glad to have helped! If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

  5. #5
    Registered User
    Join Date
    06-22-2014
    Location
    Doha
    MS-Off Ver
    2013
    Posts
    87

    Re: Comparing and matching data

    dear i done solved and reputation. Please 1 by 1 can you explain formula. as 1 number in match function i didn't got and index and match 2 times please help me. I will be very thankful

  6. #6
    Registered User
    Join Date
    06-22-2014
    Location
    Doha
    MS-Off Ver
    2013
    Posts
    87

    Re: Comparing and matching data

    dear please kindly help me in solving this formula step wise please wanna be expert like u in excel. Kindly help me

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Comparing and matching data

    i do not understand what you mean by:

    as 1 number in match function i didn't got and index and match 2 times

  8. #8
    Registered User
    Join Date
    06-22-2014
    Location
    Doha
    MS-Off Ver
    2013
    Posts
    87

    Re: Comparing and matching data

    Dear,

    Kindly explain me step wise below function


    =IFERROR(INDEX(Sheet1!$D$1:$D$24,MATCH(1,INDEX((Sheet1!$A$1:$A$24=$A1)*(Sheet1!$B$1:$B$24=$B1)*(Sheet1!$C$1:$C$24=$C1),0),0)),"")

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Comparing and matching data

    Your three criteria are:
    (Sheet1!$A$1:$A$24=$A1)
    (Sheet1!$B$1:$B$24=$B1)
    (Sheet1!$C$1:$C$24=$C1)

    This syntax INDEX((Sheet1!$A$1:$A$24=$A1)*(Sheet1!$B$1:$B$24=$B1)*(Sheet1!$C$1:$C$24=$C1),0) means:
    criterion 1 is met AND criterion 2 is met AND criterion 3 is met.

    Each criterion returns either TRUE or FALSE. They are multiplied by each other. In doing so, they are coerced into being numbers. Only TRUExTRUExTRUE yields a number, that number being the row number wthin the array where all 3 criteria are met. In all other cases, the value returned is zero.

    The MATCH function then returns the row number in the source sheet where all 3 criteria are met. the outer INDEx function: INDEX(Sheet1!$D$1:$D$24 them returns the corrsponding value from column D.

  10. #10
    Registered User
    Join Date
    06-22-2014
    Location
    Doha
    MS-Off Ver
    2013
    Posts
    87

    Re: Comparing and matching data

    please can i have any example for step wise explanation. Please help me in this completely

  11. #11
    Registered User
    Join Date
    06-22-2014
    Location
    Doha
    MS-Off Ver
    2013
    Posts
    87

    Re: Comparing and matching data

    Dear you are really nice but your explanation is really complex for me. Dear what is meant by (Sheet1!$A$1:$A$24=$A1) i didn't get

  12. #12
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Comparing and matching data

    Have you done as I suggested back at Post 4. Go to FORMULAS/FORMULA AUDITING/EVALUATE FORMULA. There you can see EXACTLY what the formula does, step-by-step. It could take hours to type out a full and detailed explanation. You must be prepared to help yourself!!!

    In the case of your specific question:
    (Sheet1!$A$1:$A$24=$A1) This means that Excel looks through all the values between A1 and A21 in sheet 1 for a match with A1 on the sheet in which the formula is located. If it finds a a match it returns TRUE, if not it returns FALSE. So the array is a total of 21 values, either TRUE or FALSE.

  13. #13
    Registered User
    Join Date
    06-22-2014
    Location
    Doha
    MS-Off Ver
    2013
    Posts
    87

    Re: Comparing and matching data

    And what does MATCH(1,INDEX((Sheet1!$A$1 means for example whatdoes 1 mean in match

  14. #14
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Comparing and matching data

    Have you done as I suggested back at Post 4. Go to FORMULAS/FORMULA AUDITING/EVALUATE FORMULA. There you can see EXACTLY what the formula does, step-by-step. It could take hours to type out a full and detailed explanation. You must be prepared to help yourself!!!

+ 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. Comparing and matching data
    By atif_ar in forum Excel General
    Replies: 1
    Last Post: 12-12-2015, 12:28 PM
  2. Comparing/Matching Two Sets of Data
    By greaseebogus in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-30-2015, 12:42 AM
  3. Matching/Comparing Data from 2 Tables
    By acb_geek in forum Excel General
    Replies: 2
    Last Post: 11-05-2014, 11:01 AM
  4. Replies: 2
    Last Post: 04-18-2013, 05:56 PM
  5. Replies: 2
    Last Post: 01-25-2012, 05:30 AM
  6. Comparing and matching data
    By twofootgiant in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-04-2009, 04:16 AM
  7. Comparing two worksheets and matching data
    By Shaunclippo in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-12-2008, 03:04 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