I listen to tons of types of music like metal, electronic, classical, and soundtracks. When I'm feeling really sad or angry, I tend to not want to listen to upbeat music, but when I'm happy I'll listen to any music whether its upbeat or sad.
I think sad music is comforting when I'm not feeling well because it makes it seem as though I'm not alone. When I'm in a normal mood though, upbeat music makes me feel much better.