Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Neil
 
Posts: n/a
Default Using custom functions within custom validation

When creating a custom validation rule using DATA-VALIDATION-CUSTOM menu, is
it possible to use a custom function that I have written?

E.g. =customfunc(A1)=true

Whenever I try this I get the error "A named range you specified cannot be
found". Presumably it is referring to the custom function name? Surely it is
possible?

Thanks for any help with this.

Neil


  #2   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom
 
Posts: n/a
Default Using custom functions within custom validation

You need to refer to it indirectly, you can put it away somewhere not
normally visible like in IV1 then refer to IV1 or create a defined name
and refer to that name



--

Regards,

Peo Sjoblom

"Neil" wrote in message
...
When creating a custom validation rule using DATA-VALIDATION-CUSTOM menu,

is
it possible to use a custom function that I have written?

E.g. =customfunc(A1)=true

Whenever I try this I get the error "A named range you specified cannot

be
found". Presumably it is referring to the custom function name? Surely it

is
possible?

Thanks for any help with this.

Neil




  #3   Report Post  
Posted to microsoft.public.excel.misc
Neil
 
Posts: n/a
Default Using custom functions within custom validation

Thanks Peo, but I am not sure that I fully understand you.

What exactly do you mean by referring to it indirectly and what is IV1 or a
defined name?

Thanks
Neil

"Peo Sjoblom" wrote in message
...
You need to refer to it indirectly, you can put it away somewhere not
normally visible like in IV1 then refer to IV1 or create a defined name
and refer to that name



--

Regards,

Peo Sjoblom

"Neil" wrote in message
...
When creating a custom validation rule using DATA-VALIDATION-CUSTOM menu,

is
it possible to use a custom function that I have written?

E.g. =customfunc(A1)=true

Whenever I try this I get the error "A named range you specified cannot

be
found". Presumably it is referring to the custom function name? Surely it

is
possible?

Thanks for any help with this.

Neil






  #4   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom
 
Posts: n/a
Default Using custom functions within custom validation

OK, assume you want to validate an entry in A1 using a custom function, so
instead you can do insertnamedefine and call it something
MyFunction
in the source box put

=customfunction(Sheet1!$A$1)

then in datavalidationcustom use

=MyFunction=TRUE

make sure ignore blanks is not checked and it should work

or use another cell somewhere not visible (I chose IV1 since it is away of
the normal display) in IV4 put

=customfunction($A$1)

then in the datavalidation use

=$IV$1=TRUE


--

Regards,

Peo Sjoblom

"Neil" wrote in message
...
Thanks Peo, but I am not sure that I fully understand you.

What exactly do you mean by referring to it indirectly and what is IV1 or

a
defined name?

Thanks
Neil

"Peo Sjoblom" wrote in message
...
You need to refer to it indirectly, you can put it away somewhere not
normally visible like in IV1 then refer to IV1 or create a defined name
and refer to that name



--

Regards,

Peo Sjoblom

"Neil" wrote in message
...
When creating a custom validation rule using DATA-VALIDATION-CUSTOM

menu,
is
it possible to use a custom function that I have written?

E.g. =customfunc(A1)=true

Whenever I try this I get the error "A named range you specified

cannot
be
found". Presumably it is referring to the custom function name? Surely

it
is
possible?

Thanks for any help with this.

Neil








  #5   Report Post  
Posted to microsoft.public.excel.misc
Neil
 
Posts: n/a
Default Using custom functions within custom validation

Thankyou Peo,
That makes sense and it works now.
Cheers!
Neil

"Peo Sjoblom" wrote in message
...
OK, assume you want to validate an entry in A1 using a custom function, so
instead you can do insertnamedefine and call it something
MyFunction
in the source box put

=customfunction(Sheet1!$A$1)

then in datavalidationcustom use

=MyFunction=TRUE

make sure ignore blanks is not checked and it should work

or use another cell somewhere not visible (I chose IV1 since it is away of
the normal display) in IV4 put

=customfunction($A$1)

then in the datavalidation use

=$IV$1=TRUE


--

Regards,

Peo Sjoblom

"Neil" wrote in message
...
Thanks Peo, but I am not sure that I fully understand you.

What exactly do you mean by referring to it indirectly and what is IV1 or

a
defined name?

Thanks
Neil

"Peo Sjoblom" wrote in message
...
You need to refer to it indirectly, you can put it away somewhere not
normally visible like in IV1 then refer to IV1 or create a defined name
and refer to that name



--

Regards,

Peo Sjoblom

"Neil" wrote in message
...
When creating a custom validation rule using DATA-VALIDATION-CUSTOM

menu,
is
it possible to use a custom function that I have written?

E.g. =customfunc(A1)=true

Whenever I try this I get the error "A named range you specified

cannot
be
found". Presumably it is referring to the custom function name? Surely

it
is
possible?

Thanks for any help with this.

Neil












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
Need to reference existing functions in a custom function: possibl dofnup Excel Worksheet Functions 5 August 6th 05 11:42 AM
custom functions stop working in PivotTable in Excel2003 Mike Melnikov Excel Discussion (Misc queries) 0 February 10th 05 12:38 PM
Custom Format and Data Validation Q John Excel Worksheet Functions 1 January 6th 05 05:56 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 04:31 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"