There is another way. Create a dynamically expanding named range. Then use a range to define a data validation list.
To create a dynamically expanding range, paste this into the named range field and give it a name:
=OFFSET($A$1,0,0,COUNTA($A:$A),1)
$ A $ 1 should be replaced with the top cell of your range. $ A $ A should be replaced with the column (s) that the range is in.
OFFSET indicates the specified range in a range of cells. COUNTA () is in the fourth position of the OFFSET formula, which sets the height of the range. It counts the number of non-empty cells. As a result, when you add a value, the fourth value of the OFFSET formula increases, and you get an expanding range.
Please note: this does not work if your named range contains empty cells.
The OFFSET formula from excel-easy.com .
source share