2 codes in 1

P

puiuluipui

Hi, i have this code.

=IF(AND(F5="COS",B5>--"11:00:00"),IF(K5<B5,"Late","Early")&TEXT(ABS(K5-B5),"hh:mm:ss"),IF(OR(F5="ACE",AND(F5="COS",B5<=--"11:00:00")),IF(J5<B5,"Late
","Early ")&TEXT(ABS(J5-B5),"hh:mm:ss"),""))

The problem is that this code it's working only for "COS" situation. For
"ACE" situation i have to change the referance "K5" and "L5" manually. But
it's time consuming. I need one code for both situations.

i have two groups
("COS" and "COS 1") (referance "K5" and "J5") with "time" (<11:00:00) and
(>11:00:00)
and
("ACE", "VAN" and "ACH") (referance "L5") and no "time"

Can this be done?

Thanks in advance!
 

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

If 4
IF question 12
This One Is Tricky Need Help !!!!! 2
Help !!! 3
Limited elapsed time study 1
Excel 2007 formula, multiple reference range 0
Applying colour to my Formula 7
Sum product 3

Top