aragorn179
New Member
- Joined
- Nov 29, 2012
- Messages
- 7
I want to create a VBA function that returns an answer based off three different conditions. I was going to write an IF function but was wondering how to incorporate the three different columns in excel into the function. For example would I write something along the lines of:
If A > 2 and B > 2 and C > 2 Then
D = X
elseif A > 2 and B < 2 and C > 2 Then
D = y
Else D = z
Endif
I just need some help writing the three column values in to return different conditions based on those values.
Thankyou
If A > 2 and B > 2 and C > 2 Then
D = X
elseif A > 2 and B < 2 and C > 2 Then
D = y
Else D = z
Endif
I just need some help writing the three column values in to return different conditions based on those values.
Thankyou