jase71ds
Board Regular
- Joined
- Oct 23, 2006
- Messages
- 137
- Office Version
- 365
- Platform
- Windows
Hi kind folks.
As I've been learning the CHOOSE function, I've fallen in love. It's such a humble, but powerful, little function.
The arguments (according to intelli-sense) are:
CHOOSE(index_num, value1, [value2], [value3], [value4],...)
The index_num argument can be a cell reference, but apparently only if the cell in reference is a single value (not an array)
Is there a way around this??
For example:
This is a valid formula: =CHOOSE( {1,2}, A1:A2, B1:B2 )
But, if D1 is set to {1,2}, and the formula is =CHOOSE( D1, A1:A2, B1:B2 ), it breaks, because D1 gets evaluated as "{1,2}" with the quotes!
It would work if D1 would be evaluated, sans the strings (quotes).
Is there a way to evaluate D1 and strip the quotes (")???
When evaluated, I need D1 to be parsed as literally {1,2}, not as "{1,2}"
Hope that made sense.
Maybe a shorter version of the question: How to evaluate a cell reference that is an array, as an actual array and not a string?
As I've been learning the CHOOSE function, I've fallen in love. It's such a humble, but powerful, little function.
The arguments (according to intelli-sense) are:
CHOOSE(index_num, value1, [value2], [value3], [value4],...)
The index_num argument can be a cell reference, but apparently only if the cell in reference is a single value (not an array)
Is there a way around this??
For example:
This is a valid formula: =CHOOSE( {1,2}, A1:A2, B1:B2 )
But, if D1 is set to {1,2}, and the formula is =CHOOSE( D1, A1:A2, B1:B2 ), it breaks, because D1 gets evaluated as "{1,2}" with the quotes!
It would work if D1 would be evaluated, sans the strings (quotes).
Is there a way to evaluate D1 and strip the quotes (")???
When evaluated, I need D1 to be parsed as literally {1,2}, not as "{1,2}"
Hope that made sense.
Maybe a shorter version of the question: How to evaluate a cell reference that is an array, as an actual array and not a string?