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

gravanoc

Active Member
Joined
Oct 20, 2015
Messages
346
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

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
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,614
Messages
6,120,533
Members
448,969
Latest member
mirek8991

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