I could use some help with this formula. First time using an IFERROR formula so not sure what I'm doing wrong. I keep getting a "too few arguments error". Any help would be appreciated.
=IFERROR(INDEX('[TICKET STEP LONG.xlsx]RAW_COMPLETIONS'!$B:$B,MATCH(G2,'[TICKET STEP LONG.xlsx]RAW_COMPLETIONS'!$A:$A,0)),IF(LEN(AM2)=8,AM2,IFERROR(INDEX('[WLS07.xlsx]WLS07'!$b:$b,MATCH(Am2,'[WLS07.xlsx]WLS07'!$a:$a,0)),IFERROR(INDEX('[wls07.xlsx]MAIN CITY'!$d:$d,MATCH(Ai2,'[wls07.xlsx]MAIN CITY'!$B:$B,0)))
=IFERROR(INDEX('[TICKET STEP LONG.xlsx]RAW_COMPLETIONS'!$B:$B,MATCH(G2,'[TICKET STEP LONG.xlsx]RAW_COMPLETIONS'!$A:$A,0)),IF(LEN(AM2)=8,AM2,IFERROR(INDEX('[WLS07.xlsx]WLS07'!$b:$b,MATCH(Am2,'[WLS07.xlsx]WLS07'!$a:$a,0)),IFERROR(INDEX('[wls07.xlsx]MAIN CITY'!$d:$d,MATCH(Ai2,'[wls07.xlsx]MAIN CITY'!$B:$B,0)))