Forum Discussion

ITTom365's avatar
ITTom365
Brass Contributor
Nov 04, 2022

CONCAT in data validation list

Hello,    I am trying to dynamically select a table column as a validation list (without using indirect) based on text in an adjacent column.    I have created two named ranges valA =TableA[ColA]...
  • PeterBartholomew1's avatar
    PeterBartholomew1
    Nov 07, 2022

    ITTom365 

    That would do it.  There are a number of functions that return a range reference given a name or an index. These include IF, CHOOSE, XLOOKUP, INDEX/XMATCH, OFFSET.  Using a default Table

    = CHOOSE(XMATCH(listName,Table1[#Headers]),Table1[Column1],Table1[Column2])
    
    = XLOOKUP(listName, Table1[#Headers], Table1)
    
    = INDEX(Table1, , XMATCH(listName,Table1[#Headers]))
    
    = OFFSET(Table1, 0, XMATCH(listName,Table1[#Headers]) - 1, ,1)

     

Resources