How to Compare Data in Two Excel Sheets

Поделиться
HTML-код
  • Опубликовано: 4 ноя 2024

Комментарии • 18

  • @LightsOnData
    @LightsOnData  3 года назад +5

    Here is the macro that I used:
    "Sub CompareDataSheets()
    Dim eachCell As Range

    For Each eachCell In Worksheets("Sheet3").UsedRange
    If Not eachCell = Worksheets("Sheet2").Cells(eachCell.Row, eachCell.Column) Then
    eachCell.Interior.Color = vbRed
    End If
    Next eachCell
    End Sub"

  • @yaraocanacalvo570
    @yaraocanacalvo570 3 года назад

    *MINDBLOWN*...Im currently ´allergic´ to VBA (lol) so I think the solution for me is the conditional formatting one! But I have given myself a good talking to...and Im going to take some ´VBA anti-histamine´and get on with learning it! ;) Then again, my previous experience of a VBA course I did a good 5 years ago was not a good one :(...the lecturer couldnt care less about the subject matter and kept getting things wrong...that just goes to show how far it goes to be personable, eloquent AND actually care about your audience. So thanks you George again!

    • @LightsOnData
      @LightsOnData  3 года назад +1

      Hahaha, I have to remember that, Yara: "VBA anti-histamine". :)))
      Sorry that you had a bad VBA teacher. Sometimes the best teacher resides in ourselves. :)
      Yeah, I think that the conditional formatting definitely works. Even better, perhaps, is not having to do it in Excel at all and have it done within a relational database.

    • @yaraocanacalvo570
      @yaraocanacalvo570 3 года назад

      @@LightsOnData lol so very true George! I consider myself a Self Starter in all aspects of my life. Nothing has ever been handed to me. Ive had to fight and research for every inch of knowledge I have. Whether its finding a course, or treading through countless hours of research! Thankfully, I am blessed with a great capability to learn and retain quickly :)....now off to research ‘relational databases’...wait! SQL is a relational database! GET IN! 💪🏻 See? Im getting there! 😅 #datageek #datalover

    • @LightsOnData
      @LightsOnData  3 года назад +1

      @@yaraocanacalvo570 you're smart and funny :)

    • @yaraocanacalvo570
      @yaraocanacalvo570 3 года назад

      @@LightsOnData lol 😂 Im glad you think so! Because i think i lost my marbles somewhere along the way...but it’s ok, Ive accepted it! ;)

  • @howardtiersky6939
    @howardtiersky6939 3 года назад +1

    Great video as always - you explained the process very eloquently too! I love how efficient this is, gonna give it a try. Thanks, George!

    • @LightsOnData
      @LightsOnData  3 года назад +1

      I appreciate that Howard. Thank you for your support. Let me know how it went after you’ve tried it out.

    • @howardtiersky6939
      @howardtiersky6939 3 года назад +1

      @@LightsOnData I sure will! Thanks again, George :)

  • @fredpox
    @fredpox 3 года назад +1

    Great content and lovely explanation congrats! I did 1 to 3 in the past. I never thought of 5 but since I'm quite acquainted with VBA I'm going to "steal" your idea and use it for future projects! Definetely the most versatile and reusable! Thanks again and keep it up! 👍

    • @LightsOnData
      @LightsOnData  3 года назад

      Thank you Paolo. I'm glad that you enjoyed the explanation. It's great to hear that you are acquainted with VBA as using it can definitely bring some efficiencies and automate some processes.
      Let me know how it goes with it and thank you again for the encouragement and support.

  • @BobOrf
    @BobOrf 4 месяца назад +1

    I too cannot read the formulas or the VBA code. I would love a copy of the VBA code if you wouldn't mind.

  • @malachichi3681
    @malachichi3681 Год назад +1

    hi, its impossible to view the formula in section 5 - Formulas, can you please share it here? thank you!:)

    • @LightsOnData
      @LightsOnData  Год назад +2

      Definitely. My apologies about that. Here it is: =IF(Sheet1!A1Sheet2!A1,"Sheet1: "&Sheet1!A1 & " vs. Sheet2: "&Sheet2!A1,"")

  • @KoreafoodsUK-kf7in
    @KoreafoodsUK-kf7in Год назад +1

    there content is blur with any of video quality

  • @hpaek1891
    @hpaek1891 Год назад

    it didn't work. I got an error saying "you may not use references to other workbooks for conditional formatting criteria"

  • @jagdeepminhas7669
    @jagdeepminhas7669 3 года назад

    Tried on every resolution but video quality seems not ok

    • @LightsOnData
      @LightsOnData  3 года назад

      I’m sorry about that. Not sure what’s happening. I’ll check the original video. I hope that you can still get some good takeaways even if the resolution is not great.