As a starting point try in D4:
=IF(AND(C4>=MAX(C$3:C3),C4>MIN(C5:C$68)),"x","")
Almost out of 11 manually spotted formula identified 8 (but 1 "extra")
so may be:
=IF(AND(COUNTIF($C$3:$C$68,C4)>1,C3<>C4,C5<>C4),"x","")
10 out of 11 (but here 4 extra)
or may be
=IF(AND(C4>=MAX(C$3:C3),C4>MIN(C5:C$68)),IF(AND(C3<=C4,C4<=C5),"","x"),"")
(7/0)
or:
=IF(AND(COUNTIF($C$3:$C$68,C4)>1,C3<>C4,C5<>C4),IF(AND(C3<=C4,C4<=C5),"","x"),"")
(10/2)
Generally - the rules are not so obviuos for me, because instead of
one could probably mark
as it also follows:
Orders should be picked in ascending order, not necessarily sequentially. (e.g. 1,2,5,6 is fine)
Product types (Required Sequence) should be grouped (i.e. all 1s together, all 2s together etc.)
May be I am wrong, but to say it different way: the manual marking is based not on "fully objective rule" but a bit influenced by "perceived grouping of data" and the logics of human perception is not so easy to incorporate in excel formulas.
See attachement - may be this will push things a but further
Bookmarks