Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I am trying to allow cell validation for two different data types in a cell.
The data will be restricted to (text "N/A" OR A ten digit number) - I was able to create validation for both of these types of data (individually), but I would like excel to allow either one of these types of data ONLY in the same cell. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You can use allow custom and a formula like this
=OR(A1="N/A",AND(ISNUMBER(A1),LEN(A1)=10)) this assumes there are no leading zeros in the 10 digit number Regards, Peo Sjoblom Teddy-B wrote: I am trying to allow cell validation for two different data types in a cell. The data will be restricted to (text "N/A" OR A ten digit number) - I was able to create validation for both of these types of data (individually), but I would like excel to allow either one of these types of data ONLY in the same cell. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks Peo - That formula did the trick like magic. It made sense to me after
analyzing the formula, but I would have never had a clue on how to put it together. "Thanks" for your quick response and for lending your knowledge to help. Regards: Teddy "Teddy-B" wrote: I am trying to allow cell validation for two different data types in a cell. The data will be restricted to (text "N/A" OR A ten digit number) - I was able to create validation for both of these types of data (individually), but I would like excel to allow either one of these types of data ONLY in the same cell. |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
My Pleasure
Peo Teddy-B wrote: Thanks Peo - That formula did the trick like magic. It made sense to me after analyzing the formula, but I would have never had a clue on how to put it together. "Thanks" for your quick response and for lending your knowledge to help. Regards: Teddy "Teddy-B" wrote: I am trying to allow cell validation for two different data types in a cell. The data will be restricted to (text "N/A" OR A ten digit number) - I was able to create validation for both of these types of data (individually), but I would like excel to allow either one of these types of data ONLY in the same cell. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Deleting formula in data validation list | Excel Worksheet Functions | |||
Formula checking multiple worksheets | Excel Worksheet Functions | |||
conditional validation formula | Excel Worksheet Functions | |||
HELP: Data > Validation ---List ----Formula | Excel Worksheet Functions | |||
Data Validation Formula Help | Excel Worksheet Functions |