I've been using Excel/VBA for years and I haven't ever come across something this frustrating.
I have a formula (see below), that results in #N/A because the MATCH function fails. I have checked formatting, TRIM() for spaces, and a CHAR() by CHAR() breakdown as well as using =cell=cell and got TRUE. Google hasn't been helpful. Please help!
Basically I'm trying to take a department name in a table, take a portion of the name out as a string, and then match that to a lookup table and display the proper name for the department from that list.
I have a formula (see below), that results in #N/A because the MATCH function fails. I have checked formatting, TRIM() for spaces, and a CHAR() by CHAR() breakdown as well as using =cell=cell and got TRUE. Google hasn't been helpful. Please help!
Code:
=IF(A2="","",IF(L2="0",INDEX(Tables!$L$3:$L$100,MATCH(LEFT(J2,FIND("!",SUBSTITUTE(J2,"~","!",2))-1),Tables!$K$3:$K$100,0)),"Project"))
Basically I'm trying to take a department name in a table, take a portion of the name out as a string, and then match that to a lookup table and display the proper name for the department from that list.