I think that in formal writing, there is almost always going to be a better way to say it. What that better way is will vary, depending on context. I say that as a northwesterner who has no accent to speak of and who has only use y'all a handful of times. Nobody says it here, except southern transplants.