Highlight Row with Duplicate Value in Cell

srj1359

New Member
Joined
Mar 5, 2015
Messages
46
Office Version
  1. 2016
Platform
  1. Windows
I have a data sheet in which column V is hidden, but it contains the formula "A9&F9" (data in the entire sheet starts at row 9). At the moment, I have VBA written to check column V for duplicates and remove the entire row if there is a duplicate value.

I want to change this to check column V for duplicates and highlight the entire row if there is a duplicate value. Can someone please help me with this?

Thank you so much!
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
countif($V9:$V200,$V9)>0

select the range A9 to V ???? I have set to row 200 - but change to your max rows

then add the formula as a conditional format rule
 
Upvote 0
Hi @etaf ,

Columns A-AK are in use, though there are a few hidden throughout that range.

The number of rows will vary, so I think I would need to include something like:

endrow = Range("A" & Rows.count).End(xlUp).Row

Though I'm not quite sure how to fit that in to your proposed idea.
 
Upvote 0
its been so long since i worked with VBA , I missed that in the question , sorry about that
 
Upvote 0

Forum statistics

Threads
1,214,543
Messages
6,120,123
Members
448,947
Latest member
test111

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