I ended up finding what I needed, not sure how to delete or pause a post once it's been up on the site? Thank you for responding, sorry I couldn't understand how to remove it before you visited.Your formula is not making sense. The format for a VLookup is:
=vlookup(lookup_value, table_array, col_index_num, range_lookup)
You have a match statement where it is looking for a column index number. This should be looking in just 1 row being the header row.
Also for the column index to be anything other than 1 your table array would need to be more than one column (currently column D - $D$2:$D$40)
You might want to explain what you are trying to do and show an image of the data (include the column and row references)
No problem. Appreciate you coming back and closing the loop on this.
If you want to post what you ended up using you can mark that post (your own) as a solution. It may help others.
=XLOOKUP( D6, Images!E:E, Images!D:D, "")
I know which is why strictly speaking you should not use IFERROR with a Vlookup or Index Match, you should use IFNA.Slight difference between IFERROR vs. the [if_not_found] of XLOOKUP.
XLOOKUP can still return an error.
My comment was aimed toward the OP for reconsidering using XLOOKUPI know which is why strictly speaking you should not use IFERROR with a Vlookup or Index Match, you should use IFNA.
You really don't want to be masking errors other than the not found error which returns #NA.
Although IFERROR returned a black cell when D6 was left empty whereas XLOOKUP resulted in there being a "0" where the formula was entered, not a big issue, changing the zero view setting eliminated the "0".Slight difference between IFERROR vs. the [if_not_found] of XLOOKUP.
XLOOKUP can still return an error.