Here's my input
code US UK Germany Japan
AR5 13 NaN 7 NaN
A85 NaN 9 NaN 8
Here's my Output, anything not null will be registered
code country
A85 UK
A85 Japan
AR5 US
AR5 Germany
Regards