Share via

Not able to paste formula returning array in "list" of data validation in Excel

Anonymous
2023-06-21T11:30:46+00:00

I am trying to build a dynamic dependent list for data entry. All this works very well.

When I build a formula to return an array in the cell of the workbook, it works fine.

When I try to copy that formula in the list option in data validation, there is an error. Excel doesn't like it.

Interestingly, multiple youtube videos show the same formula being copied in list and it works. All those videos are 3 years or older. Is there a change in Office 365 now? what is the workaround?

Formula I am trying copy is =INDEX(Table7,,MATCH(R13,WA,0))

Microsoft 365 and Office | Excel | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

4 answers

Sort by: Most helpful
  1. Anonymous
    2023-06-22T06:18:36+00:00

    Data validation accept range instead of array. Though your formula can give a correct result, but it cannot be put into Data validation.

    You may put your formula in another cell like Z2, then use "=Z2#" in data validation.

    =Z2#

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2023-06-22T03:30:34+00:00

    Now I got new error " the source currently evaluates to an error."

    =SORT((FILTER(UNIQUE(INDEX(list_Countries,,MATCH(R13,WA,0))),UNIQUE(INDEX(list_Countries,,MATCH(R13,WA,0)))<>0)))

    This works well in cell but as soon as I paste it in list of data validation error pops up.

    Was this answer helpful?

    0 comments No comments
  3. HansV 462.6K Reputation points
    2023-06-21T11:43:30+00:00

    You cannot use a table name in the source of data validation of type List.

    As a workaround, select the data body of the table (i.e. the table without its header row).

    Click in the Name box on the left hand side of the formula bar. It should display Table7.

    Assign a new name, for example Table7Range.

    You can then use

    =INDEX(Table7Range,,MATCH(R13,WA,0))

    in the Source box of your data validation.

    The named range Table7Range will grow/shrink dynamically as you add or remove table rows.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2023-06-21T11:40:47+00:00

    Use cell reference instead of table name.

    Suppose you table range is A3:E6

    Change the table7 to A3:E6. Then it will work.

    =INDEX(A3:E6,,MATCH(R13,WA,0))

    Was this answer helpful?

    0 comments No comments