#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Validation Formula

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default Validation Formula

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 76
Default Validation Formula

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default Validation Formula

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
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
Deleting formula in data validation list Dannycol Excel Worksheet Functions 2 April 15th 06 10:01 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM
conditional validation formula Larry Excel Worksheet Functions 1 April 19th 05 04:20 AM
HELP: Data > Validation ---List ----Formula amit Excel Worksheet Functions 3 April 15th 05 01:38 PM
Data Validation Formula Help Steve H. Excel Worksheet Functions 2 November 11th 04 09:38 PM


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

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

About Us

"It's about Microsoft Excel"