i x j matrices and vlookup function
- February 17, 2025
- 1 reply
- 1330 views
I am having trouble figuring out how to use LOOKUP with matrices. I am using Prime 10.0.
"a" is an i x j matrix generated from numerous previous calculations.
"b" is also an i x j matrix, with each value being a constant in the attached file, but will also be non-constant in future calculations.
"c" is a 2 column matrix that is generated by reading a 2 column Excel table.
What I am trying to generate an i x j "d" matrix that is calculated as follows:
- if value in "a" is less than the value in "b" (same position in each matrix), then lookup the "a' value in the first column of "c" and return the value in the associated 2nd column in "c", or
- if value in "a" is greater or equal to the value in "b" return zero.
If tried a couple of different methods, but either get an error with the vlookup function (see attached), or i get all the values in the i x j "c" matrix equal to the calculated results of the "a" matrix 0,0 position (although calculated correctly for the 0,0 position).
Thanks in advance.



