Simplified cell match in tick function