+ Reply to Thread
Results 1 to 2 of 2

Align 2 sets of data on a single row to compare corresponding values

  1. #1
    Registered User
    Join Date
    10-05-2017
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    1

    Align 2 sets of data on a single row to compare corresponding values

    Hi all,

    Hopefully somebody can help me.

    I have a spreadsheet which is something like the 'example' spreadsheet attached. It has 2 sets of data in it (colums A and B are 1 set, columns C and D are set 2). This data contains an overlap in reference numbers which you should be able to see from the data. However, I know that data set 1 is correct while the quantities in data set 2 needs updating.

    What I am looking to do is make it so that the reference numbers line up along with their corresponding 'quantity' so that I can compare the two quantities to see if there are any discrepancies in the 2 sets of data.

    I have (manually) on 'sheet 2' completed what I am looking to achieve or something along those lines so that I can compare the respective quantity fields.

    I was wondering if anybody could help me in producing something similar for a spreadsheet containing hundreds of entries?

    Many thanks,

    Andy
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-02-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1,222

    Re: Align 2 sets of data on a single row to compare corresponding values

    There are a couple of ways to do this without needing to manually align values across the 2 sets.

    You could for example do a VLOOKUP to pull the values from one to the same row in the other list and compare that way.

    Ex (in E2 on sheet "Example")

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This will pull the qty from the 1st set next to the qty in the second set, regardless of the order of both sets. Do be aware that VLOOKUP stops at the first match it finds, so this works only when your Reference 1/Reference2 are unique values, ie ABC only appears in reference 1 a single time.

    You could then manually update if you like, which could be as simple as copying the value of the formula over your previous qty 2 values. You could expand the formula to compare what was pulled to the qty 2 values and produce results that better fit your needs, IE having it only return/show the number from VLOOKUP when it is different than existing qty 2.

    If VLOOKUP returns N/A error it means the lookup value was not in the lookup array, ie it cant find "ABC" in the 1st set. This could be valid, its really not there, or it could be due to differences in how they are entered. Ex: 1 of them has an extra space in it ("ABC" is not the same as "ABC "). It could be data type issue if the lookup values are numeric (1 as a number and 1 as text are not the same).

    Hope this helps

+ 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 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
  2. how do I align two sets of data that have different time stamps?
    By snydeeri in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-23-2013, 02:22 PM
  3. EXCEL align data from many rows into a single row
    By jstoughafb in forum Excel General
    Replies: 7
    Last Post: 09-18-2013, 08:36 PM
  4. Replies: 2
    Last Post: 04-15-2013, 08:50 AM
  5. complex compare and align data help.
    By scriblesvurt in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-20-2007, 10:24 AM
  6. compare and align data
    By scriblesvurt in forum Excel General
    Replies: 1
    Last Post: 03-19-2007, 01:27 PM
  7. [SOLVED] Compare and align columns of data
    By JGouger in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-11-2005, 12:30 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