Forum Discussion
Help finding a formula in Excel
I'm looking for a formula that allows me to find a result if column C "Num. Aziendale" and column F "Data" of the first screenshot
correspond to column M "Vehicle number" and column H (Def. date) of the second screenshot
if they match, I need to display the data in column A "Claim" of the second screenshot. I tried to set the IF AND formula but I don't get the desired result.
thanks in advance for the help.
In English:
=IFERROR(INDEX(Foglio2!$A$2:$A$34890, MATCH(1, (Foglio2!$L$2:$L$34890=C2)*(Foglio2!$F$2:$F$34890=F2), 0)), "")
In Italian:
=SE.ERRORE(INDICE(Foglio2!$A$2:$A$34890; CONFRONTA(1; (Foglio2!$L$2:$L$34890=C2)*(Foglio2!$F$2:$F$34890=F2); 0)); "")
If you don't have Microsoft 365 or Office 2021, confirm the formula with Ctrl+Shift+Enter.
10 Replies
Let's say the sheet in the second screenshot is named Sheet 2.
In the cell in row 2 of the sheet in the first screenshot where you want the result:
=IFERROR(INDEX('Sheet 2'!$A$2:$A$1000, MATCH(1, ('Sheet 2'!$M$2:$M$1000=C2)*('Sheet 2'!$H$2:$H$1000=F2), 0)), "")
If you don't have Microsoft 365 or Office 2021, confirm the formula with Ctrl+Shift+Enter.
Then fill or copy down.
- marcinjudzinskiCopper Contributor
I tried to copy your formula (the names of the formulas are in Italian but they are those indicated by you), however the error appears on this part:
If you use comma as decimal separator (for example 3,14), you should use semicolon ; instead of comma , in the formula.