Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: Data Validation: This could get messy...

Started 1 month, 3 weeks ago by monkeychuff
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 ...
Site: MrExcel Message Board  MrExcel Message Board - site profile
Forum: Excel Questions  Excel Questions - forum profile
Total authors: 3 authors
Total thread posts: 51 post
Thread activity: no new posts during last week
Domain info for: mrexcel.com

Other posts in this thread:

mikerickson replied 1 month, 3 weeks ago
How about =AND(MOD(INT(A1)/100),100) < 35, ISEVEN(INT(A1)/100))

monkeychuff replied 1 month, 3 weeks ago
Quote: Originally Posted by mikerickson How about =AND(MOD(INT(A1)/100),100) < 35, ISEVEN(INT(A1)/100)) I can't get the formula to work, sorry mate.

mikerickson replied 1 month, 3 weeks ago
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.

monkeychuff replied 1 month, 3 weeks ago
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 ...

mikerickson replied 1 month, 3 weeks ago
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))

monkeychuff replied 1 month, 3 weeks ago
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 ...

mikerickson replied 1 month, 3 weeks ago
There are no named ranges in that formula try =AND(MOD(INT(A1/100),100) < 35, ISEVEN(INT(A1)/100))

Peter_SSs replied 1 month, 3 weeks ago
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

Peter_SSs replied 1 month, 3 weeks ago
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. ...

monkeychuff replied 1 month, 2 weeks ago
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 ...

 

Top contributing authors

Name
Posts
monkeychuff
27
user's latest post:
Data Validation: This could get...
Published (2009-11-14 15:27:00)
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...
Peter_SSs
20
user's latest post:
Data Validation: This could get...
Published (2009-11-15 00:07:00)
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...
mikerickson
4
user's latest post:
Data Validation: This could get...
Published (2009-11-06 23:54:00)
There are no named ranges in that formula try =AND(MOD(INT(A1/100),100) < 35, ISEVEN(INT(A1)/100))

Related threads on "MrExcel Message Board":

Related threads on other sites:

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