$ 0 0 i need the following thing has to be done in excel Solve this in excel Sheet =IF(AND(B4>B7,B4<B8,b4<>B7 or B4<>B8),"L", "S", "N")