+ Reply to Thread
Results 1 to 9 of 9

2 sets of data. Need to compare the values of matching lines

  1. #1
    Registered User
    Join Date
    07-05-2016
    Location
    UK
    MS-Off Ver
    2013
    Posts
    11

    2 sets of data. Need to compare the values of matching lines

    Good morning

    In a nutshell I have 2 sets of data on the same worksheet.

    Set1
    Column A is Invoice reference, Column B is Invoice value.

    Set 2

    Column D is Invoice reference, Column E is invoice value.

    What I need to do (assuming its possible) is to determine that A, the invoice reference exists in both sets of data, and B if it does, are the values the same, and if not what is the difference?

    Any suggestions would be greatly appreciated,

    Thanks in advance

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: 2 sets of data. Need to compare the values of matching lines

    Look at VLOOKUP function

    try ..

    =IFERROR(IF(VLOOKUP($A2,$D$2:$E$1000,2)=$B2,"Amount Matched","Amount not matched"),"No matched invoice")

  3. #3
    Registered User
    Join Date
    07-05-2016
    Location
    UK
    MS-Off Ver
    2013
    Posts
    11

    Re: 2 sets of data. Need to compare the values of matching lines

    Hi John,

    That formula is great. it appears to work yet not for all of the data.

    I have attached the worksheet.

    Thanks in advance
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: 2 sets of data. Need to compare the values of matching lines

    ... so what are the "errors"?

  5. #5
    Registered User
    Join Date
    07-05-2016
    Location
    UK
    MS-Off Ver
    2013
    Posts
    11

    Re: 2 sets of data. Need to compare the values of matching lines

    cell A26 is a match for D2 for example yet this formula says otherwise

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: 2 sets of data. Need to compare the values of matching lines

    In your file for A26 , F26 says "Amount Matched" ??????

  7. #7
    Registered User
    Join Date
    07-05-2016
    Location
    UK
    MS-Off Ver
    2013
    Posts
    11

    Re: 2 sets of data. Need to compare the values of matching lines

    My apologies. I was looking at this completely the wrong way. Thank you so much

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: 2 sets of data. Need to compare the values of matching lines

    No problem ... I often look at things the wrong way!!!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  9. #9
    Registered User
    Join Date
    07-05-2016
    Location
    UK
    MS-Off Ver
    2013
    Posts
    11

    Re: 2 sets of data. Need to compare the values of matching lines

    perfect. thanks again

+ 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. Align 2 sets of data on a single row to compare corresponding values
    By AndyH0909 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-05-2017, 11:52 AM
  2. Replies: 3
    Last Post: 11-02-2016, 10:01 PM
  3. How To Compare Two Sets Of Similar Data Sets To Find a Good Match
    By Mark123456789 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-24-2016, 01:29 AM
  4. [SOLVED] I need to compare values in two sets of cells and return exceptions
    By parsenov in forum Excel General
    Replies: 3
    Last Post: 08-27-2015, 08:19 PM
  5. Matching time values across two sets of data
    By sandrajar in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-22-2015, 04:55 AM
  6. vba compare two sets of values in two worksheets
    By heartsafire1023 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-15-2014, 01:31 AM
  7. [SOLVED] Copy missing values to matching data sets
    By Krausskopf in forum Excel General
    Replies: 4
    Last Post: 04-13-2012, 01:55 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