The way to test this kind of question is to take the other person out of the the sentence and consider what you have left.
"It meant so much to John and me." Correct, because
"It meant so much to me" is correct.
"It meant so much to John and I." Incorrect, because
"It meant so much to I" is incorrect.
"John and I went to the store." Correct, becaus