Limit in data validation list

jaryszek

Board Regular
Joined
Jul 1, 2016
Messages
213
Hi,

i have formula in data validation list like here:

Code:
=IF(AND(Vn_Input_HANA_Workload="BWoH";Vn_Input_HANA_Production="Yes");S_ConditionBWoHYes;IF(AND(Vn_Input_HANA_Workload="BWoH";Vn_Input_HANA_Production="No");S_ConditionBWoHNo;IF(AND(Vn_Input_HANA_Workload="SoH";Vn_Input_HANA_Production="Yes");S_ConditionSoHYes;S_ConditionSoHNo)))

Problem is that there is an entry limit!
How to avoid this?

Or workaround?

Best,
Jacek
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
It looks like you could use this instead:

=INDIRECT("S_Condition"&Vn_Input_HANA_Workload&Vn_Input_HANA_Production)

given your naming convention.
 
Upvote 0
thank you RoryA.

excellent idea.

I do not know why there is an REF! error:

Code:
=INDIRECT("S_Condition"&Vn_Input_HANA_Workload&Vn_Input_HANA_Production)

=INDIRECT("S_ConditionBWoHYes")

Where S_CondtionBWohYes = named range =

Code:
=OFFSET('Queries Source'!$U$2;;;COUNTIF('Queries Source'!$U$2:$U$172;"?*"))

Best,
Jacek
 
Upvote 0
Ah, you have dynamic ranges. INDIRECT won't work with those. You can use EVALUATE in a named formula, or use some VBA, or use Tables instead?
 
Last edited:
Upvote 0
Evaluate? What do you mean?

Evaluate(Named_Range)? :)

VBA no, i do not need.

I will think about changing ranges to tables.
Best,
Jacek
 
Upvote 0
Basically yes, but in a named formula - you cannot use it directly in a worksheet.

Using Tables is easier as it gives you the benefit of a dynamic range, but will still work with INDIRECT.
 
Upvote 0
Create a defined name called say DVList and use this formula:

=EVALUATE("S_Condition"&Vn_Input_HANA_Workload&Vn_Input_HANA_Production)

Then in your data validation, just use =DVList.

You'll need to save the workbook in a macro-enabled format as this is an old Excel 4 macro function.
 
Upvote 0
thank you RoryA!

I am trying this Evaluate.

with indirect i should create 4 independent list objects or can i do all within one table?

I have problem with this in data validation list:

Code:
=indirect(t_Condtition["S_Condition"&Vn_Input_HANA_Workload&Vn_Input_HANA_Production])

Best,
Jacek
 
Upvote 0
You should use a separate table for each list.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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