The way that I understand your problem you are wanting to match the values in columns D & F against columns A & B and return values in column C into column E. Column G is a mystery to me. I don't know what you mean by "closest" match as all your examples are exact matches. In addition, closest matches require data to be in order which yours is not.
This array formula will return an exact match for combined values in columns D and F against combined values in B and A.
...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
Bookmarks