0

"Last" (-1) doesn't work with filter to cell

In the "Comment Line" table I have several records. I want to do this:

Cell AH48: The last record, field "Comment"
Cell AH49: The second to last record, field "Comment"


Cell E24 = 4854

In AH48 I have: =NL(-1;"Comment Line";"Comment";"Table Name";"Job";"No.";4854) This works and gives me the last record.
In AH49 I have: =NL(-2;"Comment Line";"Comment";"Table Name";"Job";"No.";$E$24) This gives me the first record.
In AH50 I have: =NL(-3;"Comment Line";"Comment";"Table Name";"Job";"No.";$E$24) This gives me the first record.

What number i put in the "what", (-1, -2, 5) doesn't have any effect when job nr is refered to a cell, not the actual number.

Any tips?

2 comments

Please sign in to leave a comment.