before reading note I have not tried to use 100% accurate terminology - it's in donkey speak - ie written in a way I *think* makes sense and won't cause confusion...
c/o daddylonglegs we know that we can use CHOOSE to create contiguous "ranges" from non-contiguous ranges where those ranges share the same dimensions, eg:
the above in essence being a right to left VLOOKUP
As illustrated by daddylonglegs here in post # 5 we know that we can also use CHOOSE to construct contiguous "ranges" from non-contiguous ranges with differing dimensions by processing each cell individually, eg:
so here we are conducting a MATCH against 2 non-contiguous ranges of different dimensions (B1:B2, B5:B7) but as a single contiguous "range" of 5 cells.
So here's my question... can we create a single contiguous "range" from multiple non-contiguous ranges of differing dimensions but on an area by area basis rather than cell by cell ?
Please read post in full before posting suggestions re: restrictions etc...
Consider:
The aim is to replicate the earlier MATCH but rather than using CHOOSE on a cell by cell basis we want to use the Areas (B1:B4, B6:B7, B9:B10) ... in pseudo terms:
A CHOOSE construct here won't work:
as we will end up with #N/As given different dimensions...
For sake of clarity - given the sample values the answer we expect is 8 given "apple" is the 8th item to appear within the 8 valid items.
To reiterate - the aim is to create a single contiguous array of 8 items for use in a single MATCH function with following restrictions:
a) we are
not looking to operate 3 different tests (1 per area)
b) we are
not looking to create an array of 10 items in which the 2 values to be discounted are erased/modified (B5, B8)
c) UDF / VBA is not permitted
d) 3rd Party Function are not permitted (eg ARRAY.JOIN morefunc)
edit:
e) solution should be scalable (within reason) though not nec. truly dynamic
I don't think it's possible given the fact the various arrays are of different dimensions but I'm perhaps not thinking outside the box enough.
I would love to see a workaround if one exists however inefficient / ugly / long winded it might be.
Bookmarks