View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Spiky Spiky is offline
external usenet poster
 
Posts: 622
Default Multiple Level "and" fucntion help!

On Sep 12, 2:20 pm, MarvInBoise
wrote:
=IF(AND(A311=A312,I311=I312),(J311=OTP,J312=REG),L 311/1.5=L312)

What I'm attempting to do…
If the EmplID is the same on A2 and A3 and the and Pay dates are equal on I2
and I3 and the Paycode on line J2 is OPT and J3 is REG then (and only then)
divide the payrate L2(OTP) by 1.5.
--
Marv Lusk


Couple changes, and I threw in an instruction if False:

=IF(AND(A311=A312,I311=I312,J311="OTP",J312="REG") ,L311/1.5,"")