Guess the VBA solution is the prettiest. Kind of sad these things are not
standard functions...
Thanks,
Johannes
"Andy Wiggins" o m schreef in bericht
...
This file might be a help:
http://www.bygsoftware.com/examples/.../xindexvba.zip
It's in the "Excel for Lotus 123 Users" section on page:
http://www.bygsoftware.com/examples/examples.htm
In Excel there is no direct equivalent for Lotus 123's XINDEX function.
This
workbook shows two Excel formula constructions that achieve the same
result.
The first example uses two additional inputs. It uses the Excel functions:
INDEX and MATCH The second example uses the same inputs as the Lotus
XINDEX
function. It uses the Excel functions: INDEX, MATCH and OFFSET.
There are also two additional pieces of VBA showing how to use this in
code
and capture an error condition.
The code is open and commented.
There is also an alternative construction using SUMPRODUCT at:
http://www.bygsoftware.com/Excel/fun...sumproduct.htm
--
Regards
-
Andy Wiggins FCCA
www.BygSoftware.com
Excel, Access and VBA Consultancy
"Johannes" wrote in message
...
Hello all,
How can I look up a value in a matrix. First column has countries, first
row
has years. Am looking for value of specific country in specific year.
Thought about combinations of lookup and matches, but that does not make
it
any prettier. Any suggestions?
Any suggestions?