Good Afternoon! My brain is stumped on a “between the 2 numbers issue"….
Basics: Per Trip, no portion of LM leave can fall outside the trip window. If it does, 1 block under audit should flag “LM Error”. If the Leave Type is not LM or none is taken – the line doesn’t need to be evaluated (I put “no error” and a comment as to why on the example just for clarification of the post). Also, there can be more than one line of LM taken per trip.
Problem is I can’t get any array to correctly either jump past the blanks/non-LMs or correctly do the math to ID the errors.
These can work if I write one really long formula (6 times of the same thing)
=IF(E3<>"LM","", IF(OR(F3<B3,G3>C3),"LM Error",""))
=IF(E3<>"LM","", IF(F3<>MEDIAN(F3,B3,C3), "LM Error",""))
Doesn’t work (as an array):
=IF(E3:E5<>"LM","", IF(F3:F5<>MEDIAN(F3:F5,B3,C3), "LM Error",""))
I've tried a bunch of arrays adding, multiplying, using min/max etc. 20 something hours later, nothing….help please!
Note – first post, so if I goobered it, please take pity on me!
Basics: Per Trip, no portion of LM leave can fall outside the trip window. If it does, 1 block under audit should flag “LM Error”. If the Leave Type is not LM or none is taken – the line doesn’t need to be evaluated (I put “no error” and a comment as to why on the example just for clarification of the post). Also, there can be more than one line of LM taken per trip.
Problem is I can’t get any array to correctly either jump past the blanks/non-LMs or correctly do the math to ID the errors.
These can work if I write one really long formula (6 times of the same thing)
=IF(E3<>"LM","", IF(OR(F3<B3,G3>C3),"LM Error",""))
=IF(E3<>"LM","", IF(F3<>MEDIAN(F3,B3,C3), "LM Error",""))
Doesn’t work (as an array):
=IF(E3:E5<>"LM","", IF(F3:F5<>MEDIAN(F3:F5,B3,C3), "LM Error",""))
I've tried a bunch of arrays adding, multiplying, using min/max etc. 20 something hours later, nothing….help please!
Note – first post, so if I goobered it, please take pity on me!