ColA ColB ColC ColD ColE
DATE COUNTRY 1 COUNTRY 2 COUNTRY 3 COUNTRY 4
01/xx/2017 INDONESIA GERMANY PHILIPPINES PAKISTAN
01/xx/2017 MOROCCO MOROCCO MOROCCO ITALY
23/xx/2017 USA UK NETHERLANDS MOROCCO
23/xx/2017 MOROCCO TANZANIA AUSTRALIA SWEDEN
What formula can I use to count the occurrences of a country (let's say Morocco
) in ColB:ColE
but only counting it ONCE if more than an occurrence appear in the same row? In this case for example the result should be 3
.