Duplicate value search

PaulJ

Board Regular
Joined
Dec 19, 2011
Messages
71
Office Version
  1. 365
Can some one please provide a formula to allow me to identify duplicates within a specific range.

I have a value in a cell H70 which is text that is selected from a drop down list. I want to know if that value has also in another cell (H4 for example). I would like the cell fill in H70 to go red if that value occurs in cell H4 through H22 inclusive.

Thank you for your patience.
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Select cell H70 and ..
click on Conditional format (Home tab) \ New Rule \ Use formula to determine cell to format \ enter formula below in the box \ click on Format \ etc ..

=COUNTIF(H4:H22,H70)>0
 
Upvote 0
=COUNTIF(H4:H22,H70)>0
FWIW the >0 is not required as this will do just as well
=COUNTIF(H4:H22,H70)

A similar result can be obtained with this CF formula
=MATCH(H70,H4:H22,0)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,056
Messages
6,122,907
Members
449,096
Latest member
dbomb1414

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