Duplicate Value based off two columns

Ben85

New Member
Joined
Jan 9, 2017
Messages
30
I am trying to ensure that there is only one entry per day per area.

Column A is the date of entry.
The areas are a list "Anodizing", "Tumbling", "Cleaning", and "Passivation". Which are entered into Column B.

I could pretty easily use a macro to do this, but if I can just use a conditional format or possible data validation to do this it would be preferred as the sheet currently is not macro based.

Date
Area
11/1/2018
Anodizing
11/1/2018
Tumbling
11/1/2018Cleaning
11/1/2018
Cleaning
10/31/2018
Anodizing
10/31/2018
Tumbling
10/31/2018Cleaning
10/31/2018
Passivation
10/31/2018
Anodizing

<colgroup><col style="mso-width-source:userset;mso-width-alt:2742;width:56pt" width="75"> <col style="mso-width-source:userset;mso-width-alt:4278;width:88pt" width="117"> </colgroup><tbody>
</tbody>

I am having a brain fart on finding a solution for this any help would be greatly appreciated.
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Yes, you can do this by using a COUNTIFS formula in your Conditional Formatting.

So, let's say that your data is in A1:B10, where row 1 is your header/titles.
Then, select the range A2:B10, and enter this Conditional Formatting formula (EXACTLY as I have written it):
Code:
=countifs($A$2:$A2,$A2,$B$2:$B2,$B2)>1
and choose your formatting option.

This will do what you have shown above.
 
Upvote 0
Yes, you can do this by using a COUNTIFS formula in your Conditional Formatting.

So, let's say that your data is in A1:B10, where row 1 is your header/titles.
Then, select the range A2:B10, and enter this Conditional Formatting formula (EXACTLY as I have written it):
Code:
=countifs($A$2:$A2,$A2,$B$2:$B2,$B2)>1
and choose your formatting option.

This will do what you have shown above.

Thank you Joe4, That worked just as I needed. I speculated it was doable with a countifs formula, but I wasn't 100% how to correctly code it.

Thanks a ton I really appreciate it!

-Ben
 
Upvote 0
You are welcome!

The key is to lock down the starting cell ($A$2, $B$2), but set the ending row equal to the row the formula is in, and allow it to "float" as you move down the column ($A2, $B2).
That creates a running count, so the first instance is not conditionally formatted, but each duplicate it.
 
Upvote 0

Forum statistics

Threads
1,214,975
Messages
6,122,537
Members
449,088
Latest member
RandomExceller01

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