Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Named Ranges Not Working in Data Validation

I want to use a named range in the Custom Data Valiadtion dialog.

If the Formula = "=COUNTIF(cells_EMPLNO,A2)<=1" it does not work.

However, if the formula = "=COUNTIF($A$2:$A$28,A2)<=1" it works.

Is there any way to get the Named Range option to work?


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Named Ranges Not Working in Data Validation

Try it with the sheet name in front of the named range, i.e.:

Sheet1!cells_EMPLNO

Hope this helps.

Pete

On Nov 22, 9:07 pm, dplum wrote:
I want to use a named range in the Custom Data Valiadtion dialog.

If the Formula = "=COUNTIF(cells_EMPLNO,A2)<=1" it does not work.

However, if the formula = "=COUNTIF($A$2:$A$28,A2)<=1" it works.

Is there any way to get the Named Range option to work?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Named Ranges Not Working in Data Validation

Sorry Pete this did not work.

"Pete_UK" wrote:

Try it with the sheet name in front of the named range, i.e.:

Sheet1!cells_EMPLNO

Hope this helps.

Pete

On Nov 22, 9:07 pm, dplum wrote:
I want to use a named range in the Custom Data Valiadtion dialog.

If the Formula = "=COUNTIF(cells_EMPLNO,A2)<=1" it does not work.

However, if the formula = "=COUNTIF($A$2:$A$28,A2)<=1" it works.

Is there any way to get the Named Range option to work?



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 17
Default Named Ranges Not Working in Data Validation

On Nov 22, 10:37 pm, dplum wrote:
Sorry Pete this did not work.



"Pete_UK" wrote:
Try it with the sheet name in front of the named range, i.e.:


Sheet1!cells_EMPLNO


Hope this helps.


Pete


On Nov 22, 9:07 pm, dplum wrote:
I want to use a named range in the Custom Data Valiadtion dialog.


If the Formula = "=COUNTIF(cells_EMPLNO,A2)<=1" it does not work.


However, if the formula = "=COUNTIF($A$2:$A$28,A2)<=1" it works.


Is there any way to get the Named Range option to work?- Hide quoted text -


- Show quoted text -


I played around with this and found that Pete was close, but instead
of the sheet name, try the book name;

"=COUNTIF(book1!cells_EMPLNO,A2)<=1"

... where "cells_EMPLNO" is the name of your named range. It worked
for me using "emplno" as the named range.

--Jim
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Named Ranges Not Working in Data Validation

Hey Spike,
Tried thge Book name and got a message that Book and Sheet names cannot be
used in the formula -- so not sure what you did to make it work, but still a
no go here.

"Spike9458" wrote:

On Nov 22, 10:37 pm, dplum wrote:
Sorry Pete this did not work.



"Pete_UK" wrote:
Try it with the sheet name in front of the named range, i.e.:


Sheet1!cells_EMPLNO


Hope this helps.


Pete


On Nov 22, 9:07 pm, dplum wrote:
I want to use a named range in the Custom Data Valiadtion dialog.


If the Formula = "=COUNTIF(cells_EMPLNO,A2)<=1" it does not work.


However, if the formula = "=COUNTIF($A$2:$A$28,A2)<=1" it works.


Is there any way to get the Named Range option to work?- Hide quoted text -


- Show quoted text -


I played around with this and found that Pete was close, but instead
of the sheet name, try the book name;

"=COUNTIF(book1!cells_EMPLNO,A2)<=1"

... where "cells_EMPLNO" is the name of your named range. It worked
for me using "emplno" as the named range.

--Jim



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 17
Default Named Ranges Not Working in Data Validation

On Nov 23, 10:01 am, dplum wrote:
Hey Spike,
Tried thge Book name and got a message that Book and Sheet names cannot be
used in the formula -- so not sure what you did to make it work, but still a
no go here.



"Spike9458" wrote:
On Nov 22, 10:37 pm, dplum wrote:
Sorry Pete this did not work.


"Pete_UK" wrote:
Try it with the sheet name in front of the named range, i.e.:


Sheet1!cells_EMPLNO


Hope this helps.


Pete


On Nov 22, 9:07 pm, dplum wrote:
I want to use a named range in the Custom Data Valiadtion dialog.


If the Formula = "=COUNTIF(cells_EMPLNO,A2)<=1" it does not work.


However, if the formula = "=COUNTIF($A$2:$A$28,A2)<=1" it works.


Is there any way to get the Named Range option to work?- Hide quoted text -


- Show quoted text -


I played around with this and found that Pete was close, but instead
of the sheet name, try the book name;


"=COUNTIF(book1!cells_EMPLNO,A2)<=1"


... where "cells_EMPLNO" is the name of your named range. It worked
for me using "emplno" as the named range.


--Jim- Hide quoted text -


- Show quoted text -


What version of Excel are you using? Does it have the latest available
update?
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Named Ranges Not Working in Data Validation

Maybe you defined cells_emplno incorrectly.

I'd try
Edit|Goto and type in cells_emplno
and hit enter

What was selected?

dplum wrote:

I want to use a named range in the Custom Data Valiadtion dialog.

If the Formula = "=COUNTIF(cells_EMPLNO,A2)<=1" it does not work.

However, if the formula = "=COUNTIF($A$2:$A$28,A2)<=1" it works.

Is there any way to get the Named Range option to work?


--

Dave Peterson
  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Named Ranges Not Working in Data Validation

Dave,
The name correctly defines the range...

"Dave Peterson" wrote:

Maybe you defined cells_emplno incorrectly.

I'd try
Edit|Goto and type in cells_emplno
and hit enter

What was selected?

dplum wrote:

I want to use a named range in the Custom Data Valiadtion dialog.

If the Formula = "=COUNTIF(cells_EMPLNO,A2)<=1" it does not work.

However, if the formula = "=COUNTIF($A$2:$A$28,A2)<=1" it works.

Is there any way to get the Named Range option to work?


--

Dave Peterson

  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Named Ranges Not Working in Data Validation

I've never seen it fail.

Maybe you want to give more details.

What's the cells_emplno address?
What does it refer to?
Is the sheet with the cell with data validation the same sheet as cells_emplno?

What "doesn't work" mean?
What happens when you try to use it?

dplum wrote:

Dave,
The name correctly defines the range...

"Dave Peterson" wrote:

Maybe you defined cells_emplno incorrectly.

I'd try
Edit|Goto and type in cells_emplno
and hit enter

What was selected?

dplum wrote:

I want to use a named range in the Custom Data Valiadtion dialog.

If the Formula = "=COUNTIF(cells_EMPLNO,A2)<=1" it does not work.

However, if the formula = "=COUNTIF($A$2:$A$28,A2)<=1" it works.

Is there any way to get the Named Range option to work?


--

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
How do I use Named Ranges as Data Validation Lists? Chris Mitchell Excel Worksheet Functions 2 June 23rd 07 12:15 PM
Validation protection with named ranges Ben H Excel Worksheet Functions 1 March 17th 06 03:49 AM
Problem Working with Named Ranges montgomerymouse Excel Discussion (Misc queries) 1 January 10th 05 10:45 PM
Excel2000: Custom data validation and named ranges Arvi Laanemets Excel Discussion (Misc queries) 9 December 10th 04 07:05 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 06:24 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"