ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   custom data validation (https://www.excelbanter.com/excel-discussion-misc-queries/129101-custom-data-validation.html)

Matt

custom data validation
 
How can I ensure that inputs in a particular cell are in one of the
following formats:

# / #
# / ##
## / ##
## / ###
### / ###

Thanks!


ShaneDevenshire

custom data validation
 
First, I assuming that you really don't mean format, because if you do you
can set the format of the cell using Format, Cells before the data is entered.

If instead you want to make sure that the user enters a 2 digit number
divided by a 2 or 3 digit number, etc. Then you will want to use a
Worksheet_Change event and write code to test the entry. Do you want a code
solution? And if so have you specified all the legal entries, for example,
#/### is not legal, nor is ###/####?

--
Thanks,
Shane Devenshire


"Matt" wrote:

How can I ensure that inputs in a particular cell are in one of the
following formats:

# / #
# / ##
## / ##
## / ###
### / ###

Thanks!




All times are GMT +1. The time now is 07:01 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com