According to Psychology Today, we choose friends because of how much they support us - not necessarily who they are. Perhaps we can deduce that the more likely you are to support others' dreams and goals, the more friends you'll have?
But when friendships don't work, it's time to move on - which can be harder than it sounds. Ending a friendship may be more difficult than breaking up with a partner.