Data Validation Not Allowing Formula

excelbytes

Active Member
Joined
Dec 11, 2014
Messages
251
Office Version
  1. 365
Platform
  1. Windows
Is this formula allowed for a List in Data Validation? It works fine outside of Data Validation, but won't let me include it within:

=IF($C$4<>"NDIA",INDIRECT($C$4&"_item"),OFFSET(NDIA[[#Headers],[Description]],MATCH($B$8,NDIA[Description],0),1,COUNTIF(NDIA[Description],$B$8),1))

I get the "There is a problem with your formula" dialog box pop up.
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Make a new range name (myList) with: =OFFSET(NDIA[[#Headers],[Description]],MATCH($B$8,NDIA[Description],0),1,COUNTIF(NDIA[Description],$B$8)
Use the range name for your list: =IF($C$4<>"NDIA",INDIRECT($C$4&"_item"),myList)
 
Upvote 0
Solution
Is this formula allowed for a List in Data Validation? It works fine outside of Data Validation, but won't let me include it within
There are a few things that do not work in validation rules, table names being one of them.
If you need to use a table range then you have to use a workaround such as the one @mart37 has suggested.
 
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