riiiicjj. Why did you attach the incorrect first sheet? You already have a formula that delas with the situation whhere everything is in a nice ordered sheet. The formula broke down when you presented a batch of disorganised data.