Issue with Index and Match logic

Greetings!
I am having issues with an index/match formula and I am hoping to receive some guidance on how to fix it.

I need to look up a value, say in cell F7 that goes to a table of data (table range is I7:AO64), MATCHES the value in cell F7, and returns the name of a country associated with the value in F7 - the names of the countries are listed in the range I4:AO4 (single row).

The formula I have right now, that is not working is:
=INDEX($I$4:$AO$4,MATCH(F7,IF($I$7:$AO$64=F7,$I$4: $AO$4),0),7)

Can anyone help me correct this formula?

Thank you!