Originally Posted by
Ochimus
Mgc26133,
Try the attached.
Rather than needing the whole Column, Col C is a 'dynamic' range (MOVEMENT) so the CF is applied only to rows with data, and expands automatically as you add new entries.
Cols K and L are also "dynamic" ranges, listing the Unique values in Cols A and B. They fill the DropLists in E2 and F2. So if you add a new vehicle to Col K. or another Category of work to Col L, they are added automatically in the DropLists.
Select a vehicle from E2 and the Work from F2. If there is a second instance, the cell in Col C fills.
CF formula is as follows:
=IF(A2=E$2,COUNTIFS($A$2:$A2,E$2,$C$2:$C2,$F$2))=2
(For each row in Col A with data, if the registration is what you selected in E2, count how many records up to that row are for that vehicle where the work is whatever you selected in F2. If this is the second instance, fill the cell)
If you want to look for a different frequency at any time (e.g. a third instance), just change the number at the end from =2 to =(whatever).
Ochimus
Bookmarks