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.


[TABLE="class: grid, width: 497"]
<tbody>[TR]
[TD]1[/TD]
[TD]F[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Number[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]1234[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]-[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]1233[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]
[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]1234[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]-[/TD]
[/TR]
</tbody>[/TABLE]


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

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

Forum statistics

Threads
1,223,897
Messages
6,175,269
Members
452,628
Latest member
dd2

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