Share via

Why is my AverageIf Function not working?

Anonymous
2018-03-14T19:33:21+00:00

I am working in communications so I'm auditing our company blogs from leadership and trying to find the average views/likes/comments based on the type of content (Company strategy/insight, company update, customer spotlight, event recap, inspirational, instructional, personal reflection).

My function looks like this =AVERAGEIF(Breakdown!G:G,"Company Strategy/Insight",Breakdown!D:D) Where the "type of content" is in column G:G on the tab titled "Breakdown" and the views per post are in the D:D column on the "Breakdown" tab.

However, I went into my table to check for accuracy and filtered my table by "type of content" and took the average of the views and ended up with a very different answer. I've messed around with this for about an hour and I can't figure out why I keep getting two different answers.

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2018-03-14T20:04:03+00:00

Your text for "Company Strategy/Insight" may have leading/trailing spaces that is not being included in the AVERAGE function. Use the TRIM function in another column to clean the data in column G and then paste special values over top of column G and try again.

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful