I have a formula that works, and I am dragging it across a field of things.
=VLOOKUP($AP$6,DaysEditor!$A:$ND,COLUMN(AH:AH), FALSE)
So i am using the Value in AP6 (Employee name) to search in column A (Employee names) on DaysEditor sheet, and then return the value in column AH. This works perfectly. But we are changing it to lookup via our employee code, which is now located in column NL. I have a bunch of macros written referencing cell columns, so i would VERY MUCH prefer not to have to move column NL to before column A. So i found INDEX(MATCH()). I thought this would solve my issue, but I cannot seem to get it to work. It keeps returning #N/A.
=INDEX(DaysEditor!AH:AH,MATCH($AP$6,DaysEditor!$NL:$NL,0))
From my understanding of this, I am returning the value in column AH for the match of A6 in column NL. But it doesnt seem to work. Any help is appreciated!
edit: The new value that will be in AP6 that we will look for in NL will be a either 8 letters or 7 letters and 2 numbers at the end. For instance dogscatt or catsdog01. The value in the column we are returning (AH in this instance) will be 1 letter only. No numbers.
Edit2: I was able to figure it out by changing the ranges to actual ranges and not columns worked.
=INDEX(DaysEditor!AH$6:AH$200,MATCH($AP$8,DaysEditor!$NL$6:$NL$200,0))