I almost cried when I saw the word return_array. Then I realized my mistake. Return_array is the name of an input parameter.
How I long for the day I can return multiple values from an excel lookup function. Few users know of such a thing. But it is amazing. So far I have gotten it to work using the most complex formula string I ever made.
Excel has allowed array formulas for literally decades. It’s not as complicated as the link you posted makes it seem. You just need:
1. A formula that supports array returns (like MMULT)
2. Know how big the returned array dimensions are
3. Highlight that array size, type in the formula, and press ctrl+shift+enter
Returning multiple matches from a single criteria isn’t what VLOOKUP was designed for, so rather than complain that a hammer does a bad job at screwing in nails, search for a screwdriver. Excel has tons of data filtering and table features, and allows DB connections for SQL queries.
Never knew of mmult. Will try to look at that technique to simplify the formula.
Aside from that, another user posted excel campus example of filter function. That also returns an array. And pretty much does what I need. However, it is only for office 365 insider and not to be released anytime soon.
How I long for the day I can return multiple values from an excel lookup function. Few users know of such a thing. But it is amazing. So far I have gotten it to work using the most complex formula string I ever made.
Link: https://www.get-digital-help.com/2009/10/25/how-to-return-mu...