Thank you, works fine. Regards, Phil -- View this message in context: http://r.789695.n4.nabble.com/Row-count-on-criteria-tp4632100p4632116.html Sent from the R help mailing list archive at Nabble.com.