Just because you work in the same building or in the same department with others and have to interact on a daily or weekly basis with one another does not mean it's a given that everyone will all get along and live happily ever after. It would be so "Polyanna...ish" to believe that is the case.
Even if up to this point you have always liked everyone you've dealt with in all the companies you've worked for and everyone's liked you (extreme Polyanna) - trust me there will come a day when you are tasked to work with someone on a project or on a team that may be a challenge to deal with. So, how do you handle a situation like that? Tempers are short, frustration is high and yet it is necessary to work with each other in some capacity. To begin with - when feeling frustrated stop and take a deep breath and relax your body and mind before saying or doing anything (I know easier said than done) and then decide how to best handle the situation to be most productive and professional for the company.
Teams are far more productive when everyone respects and enjoys working with one another, but when that isn't the case - try to use the experience as an opportunity to improve yourself and your attitude instead. If by doing so, it improves the overall working environment, then it's icing on the cake. In every situation we are faced with , we have a choice to make on how to act or what attitude to have but we cannot control or change that in anyone else. So even if your efforts do not change the other person's outlook or working relationship with you, at least you have had a better attitude and that's always a good thing.