Custom Data Validation: Formula result is correct, but the cell won't allow the correct result?

gravanoc

Active Member
Joined
Oct 20, 2015
Messages
347
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
I may be misunderstanding the arcane art of custom formula data validation. I have a column that should only accept the name of its tab as valid data. I use the formula:

Excel Formula:
=MID(CELL("filename",D2), FIND("]",CELL("filename",D2))+1,100)

The result is indeed what I am looking for from the formula, but when I use it as a custom data validation formula, it rejects the desired answer.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
If you are trying to put that DV into cell D2 then you need to include this in the custom DV formula.


=D2=MID(CELL("filename",D2), FIND("]",CELL("filename",D2))+1,100)
 
Upvote 0
Solution
If you are trying to put that DV into cell D2 then you need to include this in the custom DV formula.


=D2=MID(CELL("filename",D2), FIND("]",CELL("filename",D2))+1,100)
Thanks!
 
Upvote 0

Forum statistics

Threads
1,214,922
Messages
6,122,281
Members
449,075
Latest member
staticfluids

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