Hi people, random excel question and my first post here.
I have a massive spreadsheet with lots of data that I'm trying to extract some hard numbers from.
Let's say my spread sheet looks like this...
A1: Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_2_1 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C148 Safari/6533.18.5
A2: Mozilla/5.0 (Linux; U; Android 2.2.1; en-us; pcdadr6350 Build/FRG83D) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1
A3: Mozilla/5.0 (Linux; U; Android 2.2.1; en-us; myTouch4G Build/FRG83) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1
I want to count the occurrences of iPhone in this data and I came across this formula
=SUM(LEN(A1:A3)-LEN(SUBSTITUTE(A1:A3,"iPhone","")))/LEN("iPhone")
which would give me 2.
However, I'm looking for a formula that would only count 1 occurrence / cell and therefore would output the number 1.
Anyone know of a way to solve this problem?
Bookmarks