Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 3
Default Validating a Not Equal To Condition

Given a column that is named "Type" (G1:G50), I tried to enter a validation
rule that does not allow "ULT" to be entered, I tried <"ULT" but that
doesn't work also tried
=if(g1<"ULT","") and that doesn't work. I would ultimately like to have 5
phrases that would not be allowed. Am I restricted to using VBA? I'm just
trying to find the easiest way without alot of code. Any help would be
appreciated....

Thanks
Ambassador

  #2   Report Post  
Posted to microsoft.public.excel.newusers
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Validating a Not Equal To Condition

Select G1:G50 (G1 active, then apply DV,
using Allow: Custom,
Formula: =--EXACT(G1,"ULT")<0

Should work fine
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---
"Mike Josephson" wrote in message
...
Given a column that is named "Type" (G1:G50), I tried to enter a
validation rule that does not allow "ULT" to be entered, I tried <"ULT"
but that doesn't work also tried
=if(g1<"ULT","") and that doesn't work. I would ultimately like to have 5
phrases that would not be allowed. Am I restricted to using VBA? I'm just
trying to find the easiest way without alot of code. Any help would be
appreciated....

Thanks
Ambassador



  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,510
Default Validating a Not Equal To Condition

Hi Mike,

When applying Data Validation, select then entire range to have the
validation and then apply the validation as if only for the first cell of the
selection. Excel looks after applying correct formula to remaining cells in
the selection.

Select the range G1:G50 and then Data Validation - Custom.

Use the following formula for multiple strings to be excluded. (I have used
3 strings to exclude. Add as many as you like with comma between them
although there is an upper limit but not sure what that is.)

=AND(G1<"ULT",G1<"ABC",G1<"DEF")


--
Regards,

OssieMac


  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 15,768
Default Validating a Not Equal To Condition

=AND(G1<"ULT",G1<"ABC",G1<"DEF")
Add as many as you like with comma between
them although there is an upper limit but not
sure what that is.


The limit would be the number of arguments the AND function takes which is
version dependent* or a total formula length of 255 characters. Whichever
occurs first.

Excel 2007 = 255 arguments
All other versions = 30 arguments

--
Biff
Microsoft Excel MVP


"OssieMac" wrote in message
...
Hi Mike,

When applying Data Validation, select then entire range to have the
validation and then apply the validation as if only for the first cell of
the
selection. Excel looks after applying correct formula to remaining cells
in
the selection.

Select the range G1:G50 and then Data Validation - Custom.

Use the following formula for multiple strings to be excluded. (I have
used
3 strings to exclude. Add as many as you like with comma between them
although there is an upper limit but not sure what that is.)

=AND(G1<"ULT",G1<"ABC",G1<"DEF")


--
Regards,

OssieMac




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
can I make cell "yes" equal 1, "no" equal 0 can I make cell yes equal 1, no equa Excel Discussion (Misc queries) 4 April 22nd 23 06:09 AM
Sum if Week Number and style is equal to any condition ldiaz Excel Discussion (Misc queries) 2 December 11th 07 12:59 AM
Sum range of a week if condition is equal to.. ldiaz Excel Discussion (Misc queries) 3 December 7th 07 10:54 PM
validating Ayesha Excel Worksheet Functions 2 April 26th 06 02:56 PM
Validating Sdbenn90 Excel Discussion (Misc queries) 0 March 27th 06 12:05 AM


All times are GMT +1. The time now is 12:18 AM.

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

About Us

"It's about Microsoft Excel"