Hi all,
I have searched the forum and the internet, but I’m not finding the solution I’m after. I feel that one of you experts know of a way to do this. I am trying to do this without VBA.
Let’s say I have 2 dynamic named ranges: Range1 and Range2.
And at this point in time, this is what the ranges contain:
[TABLE="width: 128"]
<tbody>[TR]
[TD]Range1
[/TD]
[TD]Range2
[/TD]
[/TR]
[TR]
[TD]a
[/TD]
[TD]g
[/TD]
[/TR]
[TR]
[TD]d
[/TD]
[TD]h
[/TD]
[/TR]
[TR]
[TD]c
[/TD]
[TD]i
[/TD]
[/TR]
[TR]
[TD]d
[/TD]
[TD]j
[/TD]
[/TR]
[TR]
[TD]e
[/TD]
[TD]k
[/TD]
[/TR]
[TR]
[TD]f
[/TD]
[TD]l
[/TD]
[/TR]
</tbody>[/TABLE]
Since both ranges are dynamic, the data above could change at anytime, of course. But I needed somewhere to start for this example.
I want to created a third named range, let’s call it Range1&2 (which would inherently be dynamic as well, since Range1 & Range2 are dynamic).
Range1&2 would then contain the following data:
[TABLE="width: 64"]
<tbody>[TR]
[TD]Range1&2
[/TD]
[/TR]
[TR]
[TD]a
[/TD]
[/TR]
[TR]
[TD]d
[/TD]
[/TR]
[TR]
[TD]c
[/TD]
[/TR]
[TR]
[TD]d
[/TD]
[/TR]
[TR]
[TD]e
[/TD]
[/TR]
[TR]
[TD]f
[/TD]
[/TR]
[TR]
[TD]g
[/TD]
[/TR]
[TR]
[TD]h
[/TD]
[/TR]
[TR]
[TD]i
[/TD]
[/TR]
[TR]
[TD]j
[/TD]
[/TR]
[TR]
[TD]k
[/TD]
[/TR]
[TR]
[TD]L
[/TD]
[/TR]
</tbody>[/TABLE]
Range1&2 could then be used for Data Validation lists, with the index, count, sum functions, etc.
I found these two methods at get-digital-help which essentially accomplish what I’m after:
First there is this one (Merge two columns into one list in excel | Get Digital Help - Microsoft Excel resource ):
=IFERROR(INDEX(List1, ROWS(C1:$C$1)), IFERROR(INDEX(List2, ROWS(C1:$C$1)-ROWS(List1)), ""))
Or this one, which is cool because it eliminates blanks (Merge two columns with possible blank cells in excel (formula) | Get Digital Help - Microsoft Excel resource):
=IFERROR(INDEX(List1, SMALL(IF(ISBLANK(List1), "", ROW(List1)-MIN(ROW(List1))+1), ROW(A1))), IFERROR(INDEX(List2, SMALL(IF(ISBLANK(List2), "", ROW(List2)-MIN(ROW(List2))+1), ROW(A1)-SUMPRODUCT(--NOT((ISBLANK(List1)))))), ""))
Note: both are array formulas.
The problem with these is that they only work when input into a cell, and then dragged down. I was looking for method to do this inside a named range, without using any cells. Maybe there is way to adjust the formulas above to do the same. Also, I figured if this could be solved, that any number of named rnages could be combined (I may need to do this shortly down the road)
I’m open to all suggestions and thanks for looking!
I have searched the forum and the internet, but I’m not finding the solution I’m after. I feel that one of you experts know of a way to do this. I am trying to do this without VBA.
Let’s say I have 2 dynamic named ranges: Range1 and Range2.
And at this point in time, this is what the ranges contain:
[TABLE="width: 128"]
<tbody>[TR]
[TD]Range1
[/TD]
[TD]Range2
[/TD]
[/TR]
[TR]
[TD]a
[/TD]
[TD]g
[/TD]
[/TR]
[TR]
[TD]d
[/TD]
[TD]h
[/TD]
[/TR]
[TR]
[TD]c
[/TD]
[TD]i
[/TD]
[/TR]
[TR]
[TD]d
[/TD]
[TD]j
[/TD]
[/TR]
[TR]
[TD]e
[/TD]
[TD]k
[/TD]
[/TR]
[TR]
[TD]f
[/TD]
[TD]l
[/TD]
[/TR]
</tbody>[/TABLE]
Since both ranges are dynamic, the data above could change at anytime, of course. But I needed somewhere to start for this example.
I want to created a third named range, let’s call it Range1&2 (which would inherently be dynamic as well, since Range1 & Range2 are dynamic).
Range1&2 would then contain the following data:
[TABLE="width: 64"]
<tbody>[TR]
[TD]Range1&2
[/TD]
[/TR]
[TR]
[TD]a
[/TD]
[/TR]
[TR]
[TD]d
[/TD]
[/TR]
[TR]
[TD]c
[/TD]
[/TR]
[TR]
[TD]d
[/TD]
[/TR]
[TR]
[TD]e
[/TD]
[/TR]
[TR]
[TD]f
[/TD]
[/TR]
[TR]
[TD]g
[/TD]
[/TR]
[TR]
[TD]h
[/TD]
[/TR]
[TR]
[TD]i
[/TD]
[/TR]
[TR]
[TD]j
[/TD]
[/TR]
[TR]
[TD]k
[/TD]
[/TR]
[TR]
[TD]L
[/TD]
[/TR]
</tbody>[/TABLE]
Range1&2 could then be used for Data Validation lists, with the index, count, sum functions, etc.
I found these two methods at get-digital-help which essentially accomplish what I’m after:
First there is this one (Merge two columns into one list in excel | Get Digital Help - Microsoft Excel resource ):
=IFERROR(INDEX(List1, ROWS(C1:$C$1)), IFERROR(INDEX(List2, ROWS(C1:$C$1)-ROWS(List1)), ""))
Or this one, which is cool because it eliminates blanks (Merge two columns with possible blank cells in excel (formula) | Get Digital Help - Microsoft Excel resource):
=IFERROR(INDEX(List1, SMALL(IF(ISBLANK(List1), "", ROW(List1)-MIN(ROW(List1))+1), ROW(A1))), IFERROR(INDEX(List2, SMALL(IF(ISBLANK(List2), "", ROW(List2)-MIN(ROW(List2))+1), ROW(A1)-SUMPRODUCT(--NOT((ISBLANK(List1)))))), ""))
Note: both are array formulas.
The problem with these is that they only work when input into a cell, and then dragged down. I was looking for method to do this inside a named range, without using any cells. Maybe there is way to adjust the formulas above to do the same. Also, I figured if this could be solved, that any number of named rnages could be combined (I may need to do this shortly down the road)
I’m open to all suggestions and thanks for looking!