Data Validation - Named range does not exists but no named range in formula?

Ryeera

New Member
Joined
Jun 7, 2018
Messages
5
Hello everyone on this forum,

I just made a custom function that allows me to check if a string does satisfy a regular expression. If I enter the formula into an empty cell, it works perfectly fine and returns a boolean. However, if I want to use the exact same formula in Data Validation, it gives me the error message "A named range you specified cannot be found".

This is driving me insane!

This is the formula I entered into the field: =REFIND(B5,"KS(ET|MB|WI|IT)[0-9]{2}")

It just does not contain a named range. Do custom formulas not work with Data Validation?

Thanks in advance for all the help!
- Ryeera

PS: I am using Excel 2010
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Welcome to the forum.

Do custom formulas not work with Data Validation?

No, not directly. You need to define a name using the formula you want, then refer to that name in the DV settings.
 
Last edited:
Upvote 0
Welcome to the forum.



No, not directly. You need to define a name using the formula you want, then refer to that name in the DV settings.

Thanks :D

I solved it now by entering the formula into an empty cell in a hidden worksheet and then referring to that cell in the data validation.
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top