Function DiffWord(rng As Range, word As String) As Integer
DiffWord = 0
For Each c In rng
DiffWord = DiffWord + 1
If c.Value <> word Then Exit For
Next
End Function
Hi,
I have a column of cells all containing the word OUT except for 1 cell.
What is the MATCH syntax to find the cell without this word?
Many Thanks,
Is this what you had in mind...Hi,
I have a column of cells all containing the word OUT except for 1 cell.
What is the MATCH syntax to find the cell without this word?
Many Thanks,
Book1 | |||
---|---|---|---|
A | |||
2 | out | ||
3 | out | ||
4 | out | ||
5 | out | ||
6 | out | ||
7 | out | ||
8 | _ | ||
9 | out | ||
10 | out | ||
Sheet1 |