Seeking method to identify changes month over month

auto.pilot

Well-known Member
Joined
Sep 27, 2007
Messages
734
Office Version
  1. 365
Platform
  1. Windows
I'm seeking a VBA method to identify changed values month over month. My spreadsheet has about 80,000 rows. Column H includes month-end dates, column C includes unique ID numbers that never change and column E includes values that may change every month. I am attempting to highlight rows in the current month, when the value in column E is different than the prior month (by ID numbers).

Example: There are several thousand rows used for each month-end date. Column H includes several thousand entries related to 9/30/18, then a different number of entries for 8/31/18. In total, the 80,000 rows span several years. I only need to compare value in column E for the current month to the value in column E in prior month by ID number.

Here's a small snippet of the data, with column C on the left, column E in the middle and column H on the right.

Code:
ABC     AAA     09/30/18
EFG     BBB     09/30/18  <<< highlight this row, because the value BBB differs from the value BAA on 8/31/18
ZZZ     CAA     09/30/18
LMN     AAA     09/30/18
ABC     AAA     08/31/18
EFG     BAA     08/31/18
ZZZ     CAA     08/31/18
LMN     AAA     08/31/18

If it matters, my header row is 4, with data starting in row 5

Hoping this makes sense. I've use code that compares complete columns to other columns, but this is very different and I'm stumped!

Thanks in advance.

Jim
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

Forum statistics

Threads
1,214,905
Messages
6,122,174
Members
449,071
Latest member
cdnMech

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