Allie Schmitz / CNN
Now playing
02:55
The perfect resume is all about mind games
Now playing
03:21
Teachers under pandemic stress are quitting: I didn't feel safe
Now playing
03:01
A return to the office brings 'some anxieties, some anticipation'
Now playing
03:08
'I want women to be as rich as humanly possible': Meet TikTok's wealth coaches
Now playing
03:38
Stimulus package aims to get mothers back to work
Now playing
02:42
A challenging year for women: Millions are out of work
Branislav Nenin/Shutterstock
Now playing
02:27
Is working from home the new normal?
Shutterstock
Now playing
04:47
Permanent work from home is here. Will cities survive?
Now playing
03:09
Trivago CEO's son crashes live CNN interview
Now playing
02:43
What some companies are doing to establish WFH balance
Now playing
02:58
Childcare challenges force some working moms to put their careers on hold
CAMIO
Now playing
03:15
This AI technology tracks employees to enforce social distancing
BBC/Sky News
Now playing
01:14
Watch children interrupt live BBC, Sky News interviews
future office coronavirus covid 19 pandemic technology social distancing sebastian pkg intl ldn vpx_00004211.jpg
future office coronavirus covid 19 pandemic technology social distancing sebastian pkg intl ldn vpx_00004211.jpg
Now playing
02:42
Acrylic glass, masks, warning signs: Is this the office of the future?
Now playing
01:51
Five tips to look more professional on a video conference
Now playing
04:27
Working from home could shake up parenting dynamics

We all have at least one co-worker who constantly complains and never seems to have anything positive to say.

Emotions are contagious and negative attitudes can spread quickly. That’s bad news for workplace morale and productivity.

“It drains people’s energy and it sucks the joy out of being at work,” said Marie McIntyre, a career coach and author of “Secrets to Winning at Office Politics.”

Even though you can’t control what other people do, it is possible to prevent the negativity from affecting your own work.

Look for a pattern

If you work closely with a major griper, try and find the source of the problem, advised Lynn Taylor, a workplace expert and author of “Tame Your Terrible Office Tyrant.”

“Are they complaining out of inadequacy, loneliness, fear, fatigue? Is it happening at a certain time every day? Get clued in to that and that might help you nip it in the bud.”

Often when people are fearful of something, they turn to complaining as a coping method, so finding the root cause and helping to alleviate some of the fears can blunt the complaining.

Withdraw attention

Complainers need an audience, so if you don’t give them room to air their grievances they will go elsewhere.

“Allowing them to vent doesn’t get rid of the problem, it reinforces it,” said McIntyre. Changing the subject can be a good escape route. “The lovely thing about being at work is work is always an escape, you can just say, ‘I understand that is frustrating, but I have to get back to work.’”

And while it’s tempting to join in on the complaining, that will only add fuel to the fire and reinforce that you are open to such conversations.

Set boundaries

If you work closely with a neverending complainer and must meet frequently, set some clear limits.

“Have an agenda and stick to it,” said Hallie Crawford, a certified career coach. Let the person know you only have 30 minutes and structure the interaction as much as possible.

If the complainer comes into your office, a good way to limit the conversation is to stand up, she added.

Another way to deter a complainer is to explain how you are changing your approach to work situations. “Declare a personal resolution that you are going to stop complaining about things since it drags you down and you are trying to change your focus,” said McIntyre.

Approach delicately

It can be difficult to tell someone that their negative attitude is affecting your work.

Crawford suggested telling the person that you need to talk about a touchy subject and asking if they are open to having a conversation about it.