I would like to use compound condition as follows:
If Range(a) = smth1 And Range(b) = smth2 And Range(c) <> smth3 Then
....
Else
....
End If
Is it somehow possible without nesting If statements?
I would like to use compound condition as follows:
If Range(a) = smth1 And Range(b) = smth2 And Range(c) <> smth3 Then
....
Else
....
End If
Is it somehow possible without nesting If statements?
Maybe
=IF(AND(A2="smth1",B2="smth2",C2<>"smth3"),D2,"")
in VBA
Change the Val Values as required and the ranges tooPlease Login or Register to view this content.
Last edited by NeedForExcel; 08-17-2015 at 08:21 AM.
Cheers!
Deep Dave
Yes in VBA macro otherwise I would post it elswhere.
See post#2
Thanks, now I know that it works as I thought. Strangely in my macro it evaluated only first two condtions. Is it somehow possible to compound condition like this?:
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks