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

gravanoc

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

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
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,215,364
Messages
6,124,507
Members
449,166
Latest member
hokjock

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