VBA to Find Unique Records

jwburritt

New Member
Joined
May 22, 2019
Messages
49
Office Version
  1. 365
Platform
  1. Windows
Hello: I have a large table where I need to find and then highlight the records that appeared for the first time last month. In case of the sample below, that would be to find records that include Resource C.

Thanks for any ideas!



Date Resource
[TABLE="width: 144"]
<tbody>[TR]
[TD="class: xl64, width: 72"]4-30-19[/TD]
[TD="class: xl65, width: 72"]A[/TD]
[/TR]
[TR]
[TD="class: xl64, width: 72"]4-30-19[/TD]
[TD="class: xl65"]B[/TD]
[/TR]
[TR]
[TD="class: xl64, width: 72"]5-31-19[/TD]
[TD="class: xl65"]A[/TD]
[/TR]
[TR]
[TD="class: xl64, width: 72"]5-31-19[/TD]
[TD="class: xl65"]B[/TD]
[/TR]
[TR]
[TD="class: xl64, width: 72"]6-30-19[/TD]
[TD="class: xl65"]A[/TD]
[/TR]
[TR]
[TD="class: xl64, width: 72"]6-30-19[/TD]
[TD="class: xl65"]B[/TD]
[/TR]
[TR]
[TD="class: xl64, width: 72"]6-30-19[/TD]
[TD="class: xl65"]C[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
How about just adding conditional formatting? Select column B and add '=(COUNTIF($B$1:B1,B1)=1)*(MONTH(A1)=6)' as the formula for the conditional format.
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,633
Latest member
DougMo

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