If anyone could help that would be great.
In need data validation in a range of cells (lets keep it to A1 for the example please). The data being entered is a 9 digit number, which needs to satisfy the following:
The 7th and 8th characters should be equal to an even number and be greater than zero, but less than 35.
Example 1: If 123456789 is entered in the cell, this would return an ...
What happens when you put that formula in a cell. Does it return TRUE/FALSE as it should.
Are the entries being validated numbers formatted as text or normal number numbers.
Quote:
Originally Posted by mikerickson
What happens when you put that formula in a cell. Does it return TRUE/FALSE as it should.
Are the entries being validated numbers formatted as text or normal number numbers.
Should I be putting the formula in 'custom data validation' or directly in the cell? It comes up ...
That formula should go in the Validation box, but putting potential validation formulas in a cell is a way to test them and to catch typos, like the one in that formula. Try
=AND(MOD(INT(A1)/100,100) < 35, ISEVEN(INT(A1)/100))
Quote:
Originally Posted by mikerickson
That formula should go in the Validation box, but putting potential validation formulas in a cell is a way to test them and to catch typos, like the one in that formula. Try
=AND(MOD(INT(A1)/100,100) < 35, ISEVEN(INT(A1)/100))
It comes back with the message - 'A named ...
Two comments:
1. I think Mike slightly misread the specs. The OP is testing the 7th and 8th digits, not the 8th and 9th.
2. ISEVEN is part of Analysis ToolPak & I don't think Data Validation likes it, although I don't get the particular error message the OP reported.
Therefore, my suggestion:
=AND(MOD(MID(A1,7,2)+0,2)=0,MID(A1,7,2)+0
Re: Data Validation: This could get messy...
Two comments:
1. I think Mike slightly misread the specs. The OP is testing the 7th and 8th digits, not the 8th and 9th.
2. ISEVEN is part of Analysis ToolPak & I don't think Data Validation likes it, although I don't get the particular error message the OP reported.
...
Quote:
Originally Posted by mikerickson
There are no named ranges in that formula
try
=AND(MOD(INT(A1/100),100) < 35, ISEVEN(INT(A1)/100))
Sorry mate, same problem, but Peter_SSs seems to have got it. Thanks for your help. Any ideas on this one:
http://www.mrexcel.com/forum/showthread.php?t=4274 72
...
Quote: Originally Posted by Peter_SSs Not sure if this needs to be included with the previous Validation or not but you should be able to combine the two if needed - although you might possibly start to run into problems with the length of the formula. You are starting to ask an awful lot of the data Validation. Anyway, for this tasktry...
Quote: Originally Posted by monkeychuff It comes back with an error - 'A Named Range You Specified Cannot Be Found'. For some reason, when I posted, the board has inserted a space in my formula. I have checked my source and it has no space so don't really know what happened there. Anyway remove the space from "EXA CT" Quote: Originally Posted by monkeychuff And Yes, I would like to combine with previous validation...
Messy Homes could make healthier kids -... Messy Homes could make healthier kids - http://bit.ly/44bGAI (@ thebigjc @ joubin could messy codebases make healthier developers? :P )
8:45 AM Nov 10th
from TweetDeck
Thread profile page for "Data Validation: This could get messy..." on http://www.mrexcel.com.
This report page is a snippet summary view from a single thread "Data Validation: This could get messy...", located on the Message Board at http://www.mrexcel.com.
This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity