Start by agreeing on which costs the group will share. If the original invitation was your treat, talk about a change before you buy groceries so everyone has a chance to decide. A simple text works: “Would everyone be comfortable putting in about $10 for dinner, or should we each bring a dish?”
Suppose groceries cost $64 and drinks cost $16. If eight people agree to split the $80 evenly, that’s $10 each. If one person already bought the drinks, count that $16 toward their share. After covering their own $10, they’re owed $6.
Search “group expense splitter” if several people are shopping. Enter who paid for each item before collecting money so nobody pays twice.