Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Brett
 
Posts: n/a
Default Data Validation Not Working

Is there a problem with Data Validation using Defined Names? I created a
Defined Name and then used it as a Validation Criteria Formula, but it didn't
work. Then I tried troubleshooting the problem by entering the Defined Name's
formula instead, and it worked?
  #2   Report Post  
Debra Dalgleish
 
Posts: n/a
Default

In the Source box, type an equal sign, then the range name, e.g.: =MonthList

There are instructions and examples he

http://www.contextures.com/xlDataVal01.html

Brett wrote:
Is there a problem with Data Validation using Defined Names? I created a
Defined Name and then used it as a Validation Criteria Formula, but it didn't
work. Then I tried troubleshooting the problem by entering the Defined Name's
formula instead, and it worked?



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

  #3   Report Post  
Brett
 
Posts: n/a
Default

OK, I figured it out for myself. All I needed to do was uncheck the "Ignore
blanks" check box. For some reason, validation criteria formulas with defined
names won't work unless this is uncheked. Go figure?
  #4   Report Post  
Debra Dalgleish
 
Posts: n/a
Default

Data Validation lists will work, even if 'Ignore blanks' is checked.

Brett wrote:
OK, I figured it out for myself. All I needed to do was uncheck the "Ignore
blanks" check box. For some reason, validation criteria formulas with defined
names won't work unless this is uncheked. Go figure?



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

  #5   Report Post  
Brett
 
Posts: n/a
Default

Well it didn't work in my spreadsheet. I can try to enter the exact same
thing, first time with the box checked and it doesn't work, the second time
with the box unchecked and it does work.

"Debra Dalgleish" wrote:

Data Validation lists will work, even if 'Ignore blanks' is checked.

Brett wrote:
OK, I figured it out for myself. All I needed to do was uncheck the "Ignore
blanks" check box. For some reason, validation criteria formulas with defined
names won't work unless this is uncheked. Go figure?



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html




  #6   Report Post  
Brett
 
Posts: n/a
Default

Try this:
Open a new workbook. With the active cell at A1, create the defined name
Valid_Data =isnumber(A1). Then create Data Validation for A1 as Settings /
Validation criteria / Allow: Custom ; Formula: =Valid_Data.

Now enter a number in A1 - Result: no error - correct.
Now enter a letter in A1 - Result: no error - incorrect

Now go back to the Data Validation dialog box and uncheck 'Ignore blanks'.

Now enter a number in A1 - Result: no error - correct.
Now enter a letter in A1 - Result: error - correct


"Debra Dalgleish" wrote:

Data Validation lists will work, even if 'Ignore blanks' is checked.

Brett wrote:
OK, I figured it out for myself. All I needed to do was uncheck the "Ignore
blanks" check box. For some reason, validation criteria formulas with defined
names won't work unless this is uncheked. Go figure?



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html


  #7   Report Post  
Debra Dalgleish
 
Posts: n/a
Default

I agree, for data validation to work with your defined formula, you have
to uncheck Ignore blanks. However, it's not a general requirement for
data validation to work, when defined names are used.

Brett wrote:
Try this:
Open a new workbook. With the active cell at A1, create the defined name
Valid_Data =isnumber(A1). Then create Data Validation for A1 as Settings /
Validation criteria / Allow: Custom ; Formula: =Valid_Data.

Now enter a number in A1 - Result: no error - correct.
Now enter a letter in A1 - Result: no error - incorrect

Now go back to the Data Validation dialog box and uncheck 'Ignore blanks'.

Now enter a number in A1 - Result: no error - correct.
Now enter a letter in A1 - Result: error - correct


"Debra Dalgleish" wrote:


Data Validation lists will work, even if 'Ignore blanks' is checked.

Brett wrote:

OK, I figured it out for myself. All I needed to do was uncheck the "Ignore
blanks" check box. For some reason, validation criteria formulas with defined
names won't work unless this is uncheked. Go figure?



--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html





--
Debra Dalgleish
Excel FAQ, Tips & Book List
http://www.contextures.com/tiptech.html

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
Data Validation DLM Excel Discussion (Misc queries) 2 February 22nd 05 02:26 AM
Effect of Conditional Formatting, Data Validation Bill Sturdevant Excel Discussion (Misc queries) 1 January 25th 05 11:50 PM
Pulling data from 1 sheet to another Dave1155 Excel Worksheet Functions 1 January 12th 05 05:55 PM
Data Validation Window? Ken Excel Discussion (Misc queries) 1 January 11th 05 10:48 PM
Excel2K: Is it possible to use dynamic named ranges in custom data validation formula? Arvi Laanemets Excel Discussion (Misc queries) 0 December 2nd 04 11:29 AM


All times are GMT +1. The time now is 10:05 AM.

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"