Quickly Compare Data using Row Differences

Posted on February 14th, 2011 in Excel Howtos - 22 comments

Since Financial Modeling School 2nd batch is opening next week, things have been a bit crazy at chandoo.org HQ.

So we will start the week with an ultra quick tip. It always surprises me that not many people know this. So here it goes,

Lets say you have some data in 2 columns and you want to compare row by row to spot the differences. Of course you can write a formula or apply conditional formatting. But there is a quick and dirty solution that works just as fine.

  1. Select both columns with data
  2. Press F5 and select special (alternatively, from home ribbon, click on Find & Select and then choose Goto Special)
  3. Now, click on “row differences” and press OK.
  4. Excel instantly highlights all the cells in 2nd column that do not match with first column.
  5. Just change their color or something so you know where to focus your attention.
  6. Done!

See this demo to follow the steps:

Quick compare data and find mismatches using Row Differences feature - MS Excel

Want more? Here is more:

22 Responses to “Quickly Compare Data using Row Differences”

  1. [...] This post was mentioned on Twitter by Chandoo.org and Stray__Cat, Excel Insider. Excel Insider said: Quickly Compare Data using Row Differences: Since Financial Modeling School 2nd batch is opening next week, thin… http://bit.ly/ii5AOk [...]

  2. Fred says:

    Thanks for the tips! I also found out that if there are 3 or more columns of data, it will hi-light the ones that are not the same as in the first column on the left.

  3. Gregory says:

    I always wondered what the “row differences” features was about. You’ve solved the mystery. Nice tip.

  4. Nadine Cohen says:

    excellent tip, thanks.

  5. Rim Al Hindi says:

    Awesome tip. Time and effort saver. Thanks!

  6. Malvinder Virdi says:

    Really, It has been an year or two.. since i am reading this blog.. but never though of commenting on any of the post.. but recently… learnt that by posting I can interact more with the excel lover around the world and learn more and more…

    Never saw anything else… “Blank Cell” after pressing goto special or F5…

    Thanks.. this is want it makes you higher then others… you explore and explore.. we just do what we know……

    Onces again Thanks… would be interacting more often now onwards on Chadooo……..

  7. Ghazanfar J says:

    wow that was oddly specific. there should be to a goto special for everything..

    thanks Chandoo..

  8. Gregor Erbach says:

    also works in Excel 2003 (shortcut: CTRL-G, alt-s).
    can’t believe I have overlooked this for so many years, never found it mentioned in any Excel courses or manuals. many thanks!

  9. Vineet says:

    Dear Chandoo…

    i got to know about your blog from a newspaper…and since then its been very valuable addition of my daily visits to blogs…..u rock

    recently i encountered a small hiccup with my excel work…..it was a long multi thousand rows spreadsheet with a heading on top…and my manager wanted it in print with one top row for headings of each column on each page…..is there a way we can fix some thing to be printed on top or bottom on every page and remaining text gets printed below on excel….

    in word its easy as header and footer….but in excel…no header footer.. any suggestions??

  10. Matt says:

    I use the Goto Special dialog every day and can honestly say I’ve never even set eyes on this option before, and here’s me thinking I’m pretty clued up in Excel. I guess it only proves that you don’t know what you don’t know! Cheers, Chandoo!

  11. Ankur says:

    Dear Vineet,

    I think your requirement is to have a header and footer on every page for your few thousand rows when they get printed. Its easy…please follow the following simple steps:

    1) Arrange your data for the print
    2) In Excel 2007, Select Insert Menu and insert Header & Footer from the menu
    3) You can now add your desired text in the header and/or footer.

    When printing it will be displayed properly on each printed page.
    Let me know if you need any further help on this.

    Cheers
    Ankur

  12. Statuescher says:

    Chandoo you are the Daddy! That is such a great timesaver. Love your site and your spirit which shines through. In answer to the guys query about printing there is also the option in Page setup to select Rows to print on each sheet which might work better than header or footer. Not in front of Excel now so tricky to explain from memory but maybe a post on printing options would be useful?
    Thanks

  13. Karen says:

    Great tip. How would this work for 2 list of names?

  14. Pete Crich says:

    Vineet,
    in Excel 2003, click on File >page set up> sheet and in print titles, next to rows to repeat at top, choose your header row, when your report prints this will print your header row on each page

    Cheers

  15. Ganesh Khedkar says:

    Thnks dude for this tip

  16. Alejandro says:

    simply awesome….thanks for nice trick!

  17. Prem Sivakanthan says:

    I know I’m a little late to the party, but the GoTo Special menu has some real nuggets of gold in there, especially when you combine it with some VBA…for example, if your code is something like this:

    For each cell in Range(“A:A”)
    ‘do something here
    Next

    A more efficient option would be to use:
    For each cell in Range(“A:A”).SpecialCells(xlCellTypeContstants)
    ‘do something else here
    Next

  18. Sudhir says:

    We can use Ctrl +\ after selecting data

  19. Lisa says:

    Can this be done for 2 columns in different sheets of the same workbook?

  20. Sudip says:

    Awesome

  21. Milind says:

    Please see if you or someone can help me in this.
    I have workbook1 with many rows. I have another workbook with few of these rows. Rows in workbook2 are not in any order or as per any sequence with respect to workbook1. These are derived/output from some application. My job is to find uncommon rows in workbook1.

  22. Manjunath says:

    Awesome………………..

Leave a Reply