Hi @Luca Gallarate
Could you please share us with a simple sample for more details? I have some questions:
How did you put the "criteria"?
Does the "criteria" of column and rows data mean the data of cells in a certain row and column, or just the row number and column number?
Are there duplicate values in row data and column data?
Generally, we can use Index and Match function to find the cell value at their intersection in the table based on the given column number and row number.
I created a simple sample as following image:
- We can use the formula
=INDEX($A$1:$D$3, MATCH(INDEX(A:A,MIN(IF($B$1:$D$3=F2,ROW($A$1:$A$3),""))), $A$1:$A$3, 0), MATCH(INDEX($1:$1,MIN(IF($A$1:$D$3=G2,COLUMN(A:D),""))), $A$1:$D$1, 0))
to get the cell value. - Among them, this part of the formula
INDEX(A:A,MIN(IF($B$1:$D$3=F2,ROW($A$1:$A$3),"")))
is used to obtain the data in the first column corresponding to the number of row where the data is located. In the first column, the data value with the row number for the data "200" is "a". - The part of the formula
INDEX($1:$1,MIN(IF($A$1:$D$3=G2,COLUMN(A:D),"")))
is used to obtain the data in the first row corresponding to the number of column where the data is located. In the first row, the data value with the column number for the data "701" is "301". - Then we get the row number and column of the value respectively to query the data.
Any misunderstandings, welcome to post back.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.