Data validation... Help needed!

pthdz

New Member
Joined
Feb 24, 2014
Messages
8
Hello,

I'm making an excel database with email adresses and phone numbers. I wish to receive an error alert whenever a phone number has already been put in the database.
For this, I use these steps:

Select cells (A2 until A20, for example).
Go to datavalidation -> select custom
use this formula: =COUNTIF($A$2:$A$20,A2)=1
It then prompts me I can not use '=' so I delete the equal sign (is this normal?)
I test the first cell and any number or value I typ in, it gives me an error alert.





I do not understand what is going wrong. I tried installing an older version of excel because I thought it might be some bug, but it's the same result... I use Office 2010 atm.

Help pls!

Regards,

pthdz
 
Well thats my "learn something new every day" for today. I didnt realise that comma was not a universal separator . (your post that the =MOD(A2,5) =1 didnt wrok either was a good clue along those lines

pthdz now that you know to use ; instead of , in your Dutch version you should be right .re your request to attatch a simple file illustrating this COUNTIF validation at work I'm not sure how to do that

Brian from Maui - are you able to do that ?

See Peter's reply here

http://www.mrexcel.com/forum/about-board/508133-attachments.html
 
Upvote 0

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

Forum statistics

Threads
1,216,118
Messages
6,128,939
Members
449,480
Latest member
yesitisasport

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