Hi,
I have 4 cells of data, v4, w4, x4, y4. I want to write a formula with the following logic:
If v4=x4 AND (v4 <> w4 OR v4 <> y4), return "tError"
Else return "OK"
What is the correct syntax?
Thanks,
Aram
Hi,
I have 4 cells of data, v4, w4, x4, y4. I want to write a formula with the following logic:
If v4=x4 AND (v4 <> w4 OR v4 <> y4), return "tError"
Else return "OK"
What is the correct syntax?
Thanks,
Aram
=IF(AND(V4=X4,OR(V4<>W4,V4<>Y4)),"tError","OK")
Dom
"May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."
Use code tags when posting your VBA code: [code] Your code here [/code]
Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.
Surely the OR function
=OR(V4<>W4,V4<>Y4)
....is always TRUE.....unless Y4=W4?
Perhaps give some example values of V4, W4 , V4 and Y4 and the results you expect....
Audere est facere
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks