Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6644739
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:12:07+00:00 2026-05-26T00:12:07+00:00

I have 2 excel files with a lot of data in each. The data

  • 0

I have 2 excel files with a lot of data in each. The data is structured exactly the same in both files but the values might have changed as the data is from two different times.

Basically I want to find some way to automatically compare values in each cell for the two files and highlight the cells that have changed values in file #2.

Kindly share your ideas!

Example:

File 1 :

a / 1 / 2

File 2 :

a / 1 / 8

(/ – indicates new cell)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T00:12:08+00:00Added an answer on May 26, 2026 at 12:12 am

    This may not be the most efficient way (can handle 25k cells in a few seconds, though), but it more than makes up for it in simplicity.

    This will look at every cell in Sheet2 and compare it against the value in the cell at the same address in Sheet1 of the file you specify. If it’s different, the cell in Sheet2 is highlighted yellow.

    Sub FindDifferences()
    
    Application.ScreenUpdating = False
    Dim cell As Range
    Dim wkb1 As Workbook
    Dim wks1 As Worksheet
    
    Set wkb1 = Workbooks.Open(Filename:="C:\MyBook.xls")
    Set wks1 = wkb1.Worksheets("Sheet1")
    
    For Each cell In ThisWorkbook.Sheets("Sheet2").UsedRange
        If cell.Value <> wks1.Cells(cell.Row, cell.Column).Value Then
            cell.Interior.Color = vbYellow
        End If
    Next
    
    wkb1.Close
    Application.ScreenUpdating = True
    End Sub
    

    Note:
    You could easily tailor this to compare 2 sheets in the same file by simple removing the wkb1 and wks1 variables and changing wks1.Cells... to Sheets("Sheet1").Cells…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am creating Excel file download using NOPI libraries. I have lot of data
I have two excel files. Among many columns in both these files, they have
I have data in Excel files that I am pulling out using the MS
I have a series of big excel files that work like a program, but
I have an Excel file that gets external data from database table. I need
I have a Excel work sheet with a lot of hyperlinks (both to external
I have an Excel file with a lot of data in it . i
I have a folder with lot of files like doc, excel, ppt etc. Once
I have a lot of measured values in each column. I use formulas under
I have lot of excel files to import in mysql table. Is there any

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.