In many occasions, users help the OP with comments in its question and many times a comment is just the right answer. When this happens to me, I tell the user that his comment help me solve my problem and ask him if he want to make its comment an answer and I will accept it. Like in this question for example:
Vectorize access to columns in R
But what should I do when I am the one that helped the OP and other user just collect what other users and me wrote in the comments, make it an answer and the OP accept it?