I do the same - I go by the value of each person's items (total cost divided by their portion of the dollar value).
You could also break it up by the number of items (total cost divided by their portion of the number of items).
But if some items are priced high for their size or are really small, you could use either method and adjust the figures a bit to be fairer to those who had the smaller items.