If I have vertical named arrays that are 5 rows each: array_1 and array_2 (not next to eachother in the worksheet), how do I combine them into a 5 row by 2 column named array?
Thank you.
If I have vertical named arrays that are 5 rows each: array_1 and array_2 (not next to eachother in the worksheet), how do I combine them into a 5 row by 2 column named array?
Thank you.
Last edited by luv2glyd; 06-19-2010 at 01:41 PM.
You either quit or become really good at it. There are no other choices.
what do you intend doing with it if you could?
"Unless otherwise stated all my comments are directed at OP"
Mojito connoisseur and now happily retired
where does code go ?
look here
how to insert code
how to enter array formula
why use -- in sumproduct
recommended reading
wiki Mojito
how to say no convincingly
most important thing you need
Martin Wilson: SPV
and RSMBC
To reference the two areas by one name, select both and enter a name in the Names box, left of the formula bar.
For computational purposes, though, it will still not be a 5x2 range. You couldn't do matrix multiplication with it, for example. To do that would require some UDF that fleetingly combines them into a variant array.
Entia non sunt multiplicanda sine necessitate
Use INDEX/MATCH
not sure how to do that.........
post sample
Люди, питающие благие намерения, как раз и становятся чудовищами.
Regards, ?Born in USSR?
Vusal M Dadashev
Baku, Azerbaijan
I figured it out!
=VLOOKUP(E11,(r_1:r_4),2,FALSE)
(r_1:r_4) puts the two arrays side by side so that VLOOKUP can be applied to them as though they are in a table.
looks like if I named my new array =r_1:r_4 (call it "total_array")
=VLOOKUP(E11,total_array,2,FALSE) works as well
Last edited by luv2glyd; 06-19-2010 at 01:51 PM.
If r_1 is the top cell in one range, and r_4 is the bottom cell in the other, I don't think that does what you're thinking.
=INDEX(Array2, Match(E11, Array1, 0))
Thank you - I'll keep your formula for future reference.
r_1 is actually the first column (5 by 1 vertical vector) and r_2 is the second column (5 by 1 vertical vector). =r_1:r_2 seems to combine them into a 5 by 2 table, at least as far as VLOOKUP is concerned.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks