Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Validate Whole Number Series with Exclusions
I need to validate an entry to ensure that it is a whole number which falls
within a certain series but with some entries excluded. For example, it must be a whole number which falls between 1000 and 1099, but where 1050 is excluded. If I use validation -- whole number -- I cannot take into account the exclusion. If I use validation -- custom -- =AND(A1=1000,A1<=1099,A1<1050) then I get the exclusion check, but decimal entries can slip by. I'm using Excel 2003. Thanks |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Validate Whole Number Series with Exclusions
To only allow whole numbers, modify your formula to:
=AND(A1=1000,A1<=1099,A1<1050,A1=INT(A1)) HTH, Bernie MS Excel MVP "QLT1120" wrote in message ... I need to validate an entry to ensure that it is a whole number which falls within a certain series but with some entries excluded. For example, it must be a whole number which falls between 1000 and 1099, but where 1050 is excluded. If I use validation -- whole number -- I cannot take into account the exclusion. If I use validation -- custom -- =AND(A1=1000,A1<=1099,A1<1050) then I get the exclusion check, but decimal entries can slip by. I'm using Excel 2003. Thanks |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Validate Whole Number Series with Exclusions
It works! Thank you!
"Bernie Deitrick" wrote: To only allow whole numbers, modify your formula to: =AND(A1=1000,A1<=1099,A1<1050,A1=INT(A1)) HTH, Bernie MS Excel MVP "QLT1120" wrote in message ... I need to validate an entry to ensure that it is a whole number which falls within a certain series but with some entries excluded. For example, it must be a whole number which falls between 1000 and 1099, but where 1050 is excluded. If I use validation -- whole number -- I cannot take into account the exclusion. If I use validation -- custom -- =AND(A1=1000,A1<=1099,A1<1050) then I get the exclusion check, but decimal entries can slip by. I'm using Excel 2003. Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Pulling Data off Web - Need Function Help | Excel Worksheet Functions | |||
How do I change a number in one cell to change a series of cells? | Excel Discussion (Misc queries) | |||
vlookup with more than number to be retrieved | Excel Worksheet Functions | |||
Quasi Transpose / Stacking Columns | Excel Worksheet Functions | |||
How do I increment a fill series by a number other than 1? Say I. | Excel Worksheet Functions |