Popup message if duplicate values except if duplicate value is "-" or blank

atisyam

New Member
Joined
Sep 19, 2018
Messages
37
Hello, hope that someone could help


What I want to do is that use an Excel formula to trigger a popup if the value entered in a particular column is a duplicate unless if the duplicate value is a "-" or a blank cell. The function would be able to run for the whole column.


For example below: Only F7 will have a popup.


1F
2Number
31234
4-
51233
6
71234
8-

<tbody>
</tbody>


I am currently using data validation and I checked the Ignore blank to ensure that if the cell is blank, the data validation would not run.
I chose custom and initially, I wrote: =COUNTIF(F:F,F2=1) Writing this runs for all duplicated values, which is not what I want.


Then I wrote: =(COUNTIF(F:F,F2=1)<>"-")Writing this suddenly stop checking duplicated values. No popup even when there are duplicated values.


Hope that I could get some help. Thank youuu
 
Last edited:

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

Forum statistics

Threads
1,213,544
Messages
6,114,249
Members
448,556
Latest member
peterhess2002

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