![]() |
#1
|
|||
|
|||
![]()
In a data validation setting I want to show the concatenation of two named ranges.
I can do this by concatenating them on a worksheet with the VSTACK funtion, applying a new range name to the result, and referencing the new range name in the data validation. That works, but is clumsy and takes some maintenance if the constituent ranges change in size. I tried creating a named range with the definition =VSTACK(Range 1,Range2) then referencing that name in the data validation, but it wasn't accepted. Neither did entering this in the data validation setting =Range1 & Range2 Is there another simple way to have two ranges in a data validation setting ? |
#2
|
||||
|
||||
![]()
In the attached file, I created a list in columns A and B. I then imported them to Power Query and merged them with a space separator. I then closed them to a table in column D. I then created a data validation in 1F for the values in Column D. I then added values to Column A and B. Clicked on Data Refresh All and the table in Column D is updated. The data validation is also updated in Column F.
__________________
Alan עַם יִשְׂרָאֵל חַ Using O365 v2505 |
#3
|
|||
|
|||
![]()
Thank you.
Not simple, but it works |
#4
|
||||
|
||||
![]()
Alternatively : What you need to do is write the VSTACK formula, let's say in K1. Then, point the DV list to =K1#
( VSTACK returns an array whereas DV needs a reference to a range)
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
#5
|
|||
|
|||
![]()
Thanks Pecover. That's very simple, and takes care of the varying size of the concatenated range
![]() I hadn't seen the # suffix before - what does it do ? Martin |
#6
|
||||
|
||||
![]()
The hash symbol is used to refer to a spill range in MS365 ( it cannot refer to a "non spill" range)
Any way of adding your XL version to your sig if higher than 2021? ( see mine)
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Data Validation | firozmohammed | Excel | 4 | 11-18-2023 01:55 AM |
![]() |
BoardingSUP | Excel Programming | 5 | 10-17-2021 08:05 AM |
Need to copy specific ranges column data as row data from one worksheet to another using excel VBA | ganesang | Excel Programming | 1 | 03-26-2020 06:18 AM |
![]() |
Rich18144 | Excel | 4 | 01-14-2016 04:37 AM |
Data validation with IF | Klyxrastafari | Excel | 1 | 10-03-2011 04:41 PM |