Multiple Level "and" fucntion help!

M

MarvInBoise

=IF(AND(A311=A312,I311=I312),(J311=OTP,J312=REG),L311/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.
 
S

Spiky

=IF(AND(A311=A312,I311=I312),(J311=OTP,J312=REG),L311/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 onI2
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.

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

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

Duke Carey

maybe

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

Sheeloo

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top