Rainbow: Nisha Rokubou no Shichinin, Mahou Shoujo Madoka★Magica Recommendations
both anime is about friendship, about friends who is helping each other,
Madoka is about girls, Rainbow - about boys
Madoka have tragic ending, Rainbow - happy ending
these anime is so much different from each other but it was my favorite before Madoka...
also the main character have died, nothing more related, no magic stuff, just slice of life but if you're looking sad, tragic anime based about friendship then i recommend you watch Rainbow.