Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default Custom Cell Validation

Is there a way, using custom cell validation, to check for the results
of two other cells and then determine if it will allow text or numbers
into the field?

Example

A B C D
1 4
2
3 5

In Cell c3 allow text entries only if c1<a3 but if c1=a3 then allow
numbers only.

I tried the first part of it like: =IF(C1<A3,TRUE,FALSE)
this only lets it enter any into it if the conditions are true. I am
trying to get it to differentiate the type of data entered though. I
know this can be done with VBA, but I am trying to avoid that because
of macro restrictions on our systems.


Thanks for any help you can provide.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Custom Cell Validation

This is one way:

=OR(AND(C1<A3,ISTEXT(C3)),AND(C1=A3,ISNUMBER(C3)) )

(Custom|formula stuff)

Random wrote:

Is there a way, using custom cell validation, to check for the results
of two other cells and then determine if it will allow text or numbers
into the field?

Example

A B C D
1 4
2
3 5

In Cell c3 allow text entries only if c1<a3 but if c1=a3 then allow
numbers only.

I tried the first part of it like: =IF(C1<A3,TRUE,FALSE)
this only lets it enter any into it if the conditions are true. I am
trying to get it to differentiate the type of data entered though. I
know this can be done with VBA, but I am trying to avoid that because
of macro restrictions on our systems.

Thanks for any help you can provide.


--

Dave Peterson

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Custom Cell Validation

Debra Dalgleish gave a nicer solution in .worksheet.functions.

Dave Peterson wrote:

This is one way:

=OR(AND(C1<A3,ISTEXT(C3)),AND(C1=A3,ISNUMBER(C3)) )

(Custom|formula stuff)

Random wrote:

Is there a way, using custom cell validation, to check for the results
of two other cells and then determine if it will allow text or numbers
into the field?

Example

A B C D
1 4
2
3 5

In Cell c3 allow text entries only if c1<a3 but if c1=a3 then allow
numbers only.

I tried the first part of it like: =IF(C1<A3,TRUE,FALSE)
this only lets it enter any into it if the conditions are true. I am
trying to get it to differentiate the type of data entered though. I
know this can be done with VBA, but I am trying to avoid that because
of macro restrictions on our systems.

Thanks for any help you can provide.


--

Dave Peterson


--

Dave Peterson

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
custom data validation on cells with data validation values AKrobbins Excel Worksheet Functions 2 June 21st 11 04:20 PM
custom validation SYBS Excel Worksheet Functions 0 June 16th 06 10:19 AM
relative cell reference in custom validation GoBobbyGo Excel Discussion (Misc queries) 2 April 24th 06 11:17 PM
Using custom functions within custom validation Neil Excel Discussion (Misc queries) 4 December 14th 05 10:40 PM
Custom Validation kalz Excel Worksheet Functions 1 January 26th 05 04:19 AM


All times are GMT +1. The time now is 05:32 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"