Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default 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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default 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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default 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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pulling Data off Web - Need Function Help patfergie44 Excel Worksheet Functions 9 June 22nd 06 03:27 AM
How do I change a number in one cell to change a series of cells? lance559 Excel Discussion (Misc queries) 2 January 13th 06 08:56 PM
vlookup with more than number to be retrieved martelie Excel Worksheet Functions 1 October 8th 05 07:33 AM
Quasi Transpose / Stacking Columns Mike Excel Worksheet Functions 10 April 26th 05 08:04 PM
How do I increment a fill series by a number other than 1? Say I. John Excel Worksheet Functions 3 January 6th 05 09:34 PM


All times are GMT +1. The time now is 08:16 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"