I have a list box in A3 which depending on the selection and the date in B3 needs to return a different result in D3. I've broken out the statements but have had no success trying to combine them all together. Is there a way.
[pre]
[/pre]
This all takes place in Row 3 and the formula needs to be in H3
[pre]
Code:
Type Date Status
O 04-Jun-13 if A3 = "O" then Status = A A
E if A3 = "E" then Status = U
I if A3="I" AND B3 > than Today() then Status = A
if A3="I" AND B3 <= than Today() then Status = U
P if A3="P" AND B3 > than Today() then Status = A
if A3="P" AND B3 <= than Today() then Status = U
S If A3="S" AND B3 > than Today() then Status = A
if A3="S" AND B3 <= than Today() then Status = U
B if A3="B" AND DAY(B3)>20 then Status = A
if A3="B" AND DAY(B3)<20 then Status = U
This all takes place in Row 3 and the formula needs to be in H3