Use a UDF to set up al valid conditions, suggest you add the following
function to a standard module, then place in column C the following formula
=Sport(A1,B1)
then copy down all rows....
Add or amend conditions in the function as required.
Function Sport(c1 As Range, c2 As Range) As Boolean
' take value in c1 and c2 apply logic, return true or false
Dim xA, xB
xA = Trim(UCase(c1))
xB = Trim(UCase(c2))
Sport = False
If xA = 1 And xB = 1 Then Sport = True
If xA = 2 And xB = 2 Then Sport = True
If xA = "X" And xB = "X" Then Sport = True
If xA = "1X" And xB = 1 Then Sport = True
If xA = "1X" And xB = "X" Then Sport = True
If xA = "X2" And xB = 2 Then Sport = True
If xA = "X2" And xB = "X" Then Sport = True
End Function
--
Regards,
Nigel
(e-mail address removed)
Your question is not very clear, but here is my best guess...
Are you looking for a formula to put in Column C that will see if whatever
(single character) is in Column B also appears somewhere in Column A and
return 1 for True and 0 for False? If so, give this formula a try...
=--ISNUMBER(FIND(B1,A1))
If this is not what you want, you will have to restate your question and
supply a lot more detail about what is in Columns A and B (what are the
1s,
2s, and Xs), what Column C is there for, and what you are trying to get
from
them.
Rick
- Prikaži citirani tekst -
I would like fomula who will know the result of column A and B. If i
put in column A or B some of this characters