Macro for determining differences within same spreadsheet

KMJM2019

New Member
Joined
Jan 2, 2019
Messages
10
I'd like to create a macro that quickly identifies 2 datasets in the same spreadsheet and highlights any differences. I need to reconcile from a different system, so I export that data into my existing spreadsheet. They need to match exactly. I have used conditional formatting successfully, but that's not what the managers want. They want a one click macro that does the reconciling for them. I know it's ridiculous since conditional formatting will work, but some people are intimidated by having to type in a formula. Thank you!!!
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
abcdabcd
efghezgh
IjklIjxl
f and q have been colored yellow by the macro
Sub Macro4()
'
' Macro4 Macro
' Macro recorded 30/01/2019 by bob
'
'
For j = 1 To 3
For k = 1 To 4
If Cells(j, k) <> Cells(j, k + 10) Then GoTo 100 Else GoTo 200
100 Cells(j, k).Select
With Selection.Interior
.ColorIndex = 6
.Pattern = xlSolid
End With
200 Next k
Next j
End Sub

<colgroup><col width="64" span="16" style="width:48pt"> </colgroup><tbody>
</tbody>
 
Upvote 0
abcdabcd
efghezgh
IjklIjxl
f and K have been colored yellow by the macro
Sub Macro4()
'
' Macro4 Macro
' Macro recorded 30/01/2019 by bob
'
'
For j = 1 To 3
For k = 1 To 4
If Cells(j, k) <> Cells(j, k + 10) Then GoTo 100 Else GoTo 200
100 Cells(j, k).Select
With Selection.Interior
.ColorIndex = 6
.Pattern = xlSolid
End With
200 Next k
Next j
End Sub

<colgroup><col width="64" span="16" style="width:48pt"> </colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,954
Messages
6,122,461
Members
449,085
Latest member
ExcelError

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top