+ Reply to Thread
Results 1 to 6 of 6

is there a way of extracting differences between two spreadsheets?

  1. #1
    Registered User
    Join Date
    06-29-2017
    Location
    LONDON
    MS-Off Ver
    2011
    Posts
    11

    Exclamation is there a way of extracting differences between two spreadsheets?

    hi all,

    we use typeform to collect member applications. Each application has approx 65+ fields of data. We delete declined applications from this service and then export the file to csv, which we upload into mailchimp.

    Unfortunately, typeform accidentally restored approx 1200 records which we had previously deleted and now they are mixed up which is a big problem for us. Some of these records are ones that we need to delete and others are applications that came in later that day. So I need a way to separate the difference between them, so that we can work through them and see what's what.

    I have an exported csv file prior to the error occurring (6.5K records) and another after the error (7.8K).

    I'm wondering if there is something that I can do in excel to extract the different cells into a third sheet?

    Also, I think we had some duplicates in our approved member csv. Is there a quick way to remove duplicates?

    Thank you in advance for any advice given.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: is there a way of extracting differences between two spreadsheets?

    Assuming you have a unique identifier for each record, or can create a unique identifier by concatenating two or more fields then you can use an =MATCH() function to match the key field in the good (old) file with the same key field in the bad file.

    If there's a match then the row number of the match will be given otherwise if there's no match the function will return a #N/A error. All you need to do then is filter the data for the #N/A rows, select them all and delete them.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    06-29-2017
    Location
    LONDON
    MS-Off Ver
    2011
    Posts
    11

    Re: is there a way of extracting differences between two spreadsheets?

    hi Richard,

    That's really helpful, thank you.

    So I could use the email addresses as a unique identifier. So would the smaller of the csv files into say, sheet 2 of the larger csv and then run that function in a new column on the latter?

    Thanks again.

  4. #4
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: is there a way of extracting differences between two spreadsheets?

    You can utilize MS Query.
    Or PowerQuery if you have access to it.

    You'll need to perform what's known as Anti-Join.

    MS Query (see section about Subtract Join for extracting data that doesn't match any record in the other table).
    https://support.microsoft.com/en-ca/...icrosoft-query

    For PowerQuery, read article written by Ken Puls.
    https://www.excelguru.ca/blog/2015/1...n-power-query/
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: is there a way of extracting differences between two spreadsheets?

    Quote Originally Posted by centraltickets View Post
    hi Richard,

    That's really helpful, thank you.

    So I could use the email addresses as a unique identifier. So would the smaller of the csv files into say, sheet 2 of the larger csv and then run that function in a new column on the latter?

    Thanks again.
    Yes the email address would be ideal.

    I see that my original was confusing and may have confused.

    You need to put the =MATCH formula in a spare column in the sheet which contains the larger number of records - i.e. the bad file. This Match will look up the email large file email address in the email field of the smaller file and find where that exists. Where it finds a match then it will return a row number and hence you know it exists in both files. Hence filter for the #N/As and delete all those rows.

  6. #6
    Registered User
    Join Date
    06-29-2017
    Location
    LONDON
    MS-Off Ver
    2011
    Posts
    11

    Re: is there a way of extracting differences between two spreadsheets?

    Thank you kindly.

    Not at all, it was very nice of you to offer any assistance. I appreciate it, thank you very much. I'll try that now.

+ 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. Finding differences from 2 different spreadsheets
    By Angdaynira in forum Excel General
    Replies: 0
    Last Post: 12-15-2011, 12:44 PM
  2. Compare two spreadsheets for differences from live CSV on web
    By noefresh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-24-2011, 01:51 PM
  3. Differences Between 2 Spreadsheets
    By ZackG in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-19-2011, 09:14 AM
  4. [SOLVED] differences between spreadsheets
    By Lisa in forum Excel General
    Replies: 1
    Last Post: 08-13-2006, 09:30 PM
  5. how do i compare two excel spreadsheets to indicate differences
    By Paul123 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-12-2006, 07:00 PM
  6. [SOLVED] How do I find the differences in two spreadsheets
    By ritalc in forum Excel General
    Replies: 0
    Last Post: 02-15-2006, 12:35 PM
  7. [SOLVED] how do I find the differences in two spreadsheets
    By ritalc in forum Excel General
    Replies: 0
    Last Post: 02-15-2006, 12:25 PM
  8. [SOLVED] Compare two spreadsheets to find differences.
    By Toby in forum Excel General
    Replies: 2
    Last Post: 03-28-2005, 09:06 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