Skip to main content

Kutools for Office — One Suite. Five Tools. Get More Done.

How to highlight the modified/updated cells in Excel?

Author Sun Last modified

Sometimes, you may want to highlight the modified cells while you edit a sheet/workbook to follow the changes, but how can you handle it in Excel?

Highlight the modified cells with Track Changes

Highlight the modified cells with VBA code

Highlight the modified cells in tables with Tables Merge


Highlight the modified cells with Track Changes

In Excel, the Track Changes function can highlight the changes.

1. Save the workbook before you apply the Track Changes feature, and then click Review > Track Changes > Highlight Changes.
A screenshot of Track Changes option in the Review tab of Excel

2. In the Highlight Changes dialog, check both Track changes while editing. This also shares your workbook and Highlight changes on screen options. Also, you can specify the limitation of time, users and range while tracking change.
A screenshot showing the Highlight Changes dialog box

3. Click OK. Now the Microsoft Excel dialog box comes out and prompts you to save the workbook.
A screenshot of the prompt to save the workbook before tracking changes in Excel

4. Click OK. Now each modification will be highlighted with an angle indicator.

A screenshot of an unmodified table Arrow right A screenshot of a modified table with highlighted changes

Tip: this function works for the whole workbook.


Highlight the modified cells with VBA code

If you need VBA code to handle the job, you can do as follows:

1. Press Alt + F11 keys to enable the Microsoft Visual Basic for Applications window.

2. Click Insert > Module, and then double click at ThisWorkbook in VBAProject pane and paste below code to the script.

VBA:Copy and paste cell address

'UpdatebyExtendoffice20180307
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
    If Target.Value <> "" Then
        Target.Interior.ColorIndex = 6
    End If
End Sub

A screenshot of the VBA editor with the pasted VBA code

3. Save the code and go back to the workbook, while you modified the sheet, the cells will be highlighted with a background color.
A screenshot of highlighted cells in Excel after using VBA code

Note: If you just want to apply the highlight in current sheet, just right click at the sheet tab and click View Code in the context menu, then paste below code to the script.
A screenshot of VBA editor with a right-click to view code

Private Sub WorkSheet_Change(ByVal Target As Range)
'UpdatebyExtendoffice20180307
    If Target.Value <> "" Then
        Target.Interior.ColorIndex = 6
    End If
End Sub

Highlight the modified cells in tables with Tables Merge

If you want to update a main table based on another one, and then highlight the modified/new data in the main table, you can try Kutools for Excel’s Tables Merge feature.

Kutools for Excel offers over 300 advanced features to streamline complex tasks, boosting creativity and efficiency. Itegarate with AI capabilities, Kutools automates tasks with precision, making data management effortless. Detailed information of Kutools for Excel...         Free trial...

1. Select the main table which needs to be modified or updated by other table, and click Kutools Plus > Tables Merge.
A screenshot showing Tables Merge option in Kutools Plus tab in Excel

2. Select the table range you want to update the main table based on in Tables Merge wizard.
A screenshot of Tables Merge wizard for selecting a comparison table range

3. Click Next, and select the key column you want to compare two tables based on.
A screenshot of Tables Merge step to select key columns for table comparison

4. Click Next, select the columns you want to update.
A screenshot of Tables Merge wizard to select update columns

5. Click Next, in the Highlight options section, select the background color and font color you want to use for the modified cells.
A screenshot of Kutools highlight options for modified cells in the Tables Merge wizard

6. Click Finish and Yes close dialogs. Now the modified cells have been highlighted.
A screenshot showing final highlighted modified cells in Excel using Tables Merge feature

Kutools for Excel - Packed with over 300 essential tools for Excel. Enjoy permanently free AI features! Download now!

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more
Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!

All Kutools add-ins. One installer

Kutools for Office suite bundles add-ins for Excel, Word, Outlook & PowerPoint plus Office Tab Pro, which is ideal for teams working across Office apps.

Excel Word Outlook Tabs PowerPoint
  • All-in-one suite — Excel, Word, Outlook & PowerPoint add-ins + Office Tab Pro
  • One installer, one license — set up in minutes (MSI-ready)
  • Works better together — streamlined productivity across Office apps
  • 30-day full-featured trial — no registration, no credit card
  • Best value — save vs buying individual add-in