Hello
I'm sure this is an easy one for most of you but can I use Data Validation to only allow even numbers in my cells
Thank you
Hello
I'm sure this is an easy one for most of you but can I use Data Validation to only allow even numbers in my cells
Thank you
You can apply a Custom Rule of:
where A1 is the "active" cell when the validation is first set![]()
=IF(ISNUMBER(A1),MOD(A1,2)=0)
edit: in reality the ISNUMBER test isn't required... =MOD(A1,2)=0 would suffice.
Last edited by DonkeyOte; 02-24-2011 at 07:51 AM.
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
This can be one way
regards
johnjohns
When you are not sure where to go, every road takes you there!
Thank you. Job done. Wasn't aware of the Mod function![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks